// Copyright (C) 2009-2020, Panagiotis Christopoulos Charitos and contributors. // All rights reserved. // Code licensed under the BSD License. // http://www.anki3d.org/LICENSE #include #include #include namespace anki { TimestampQuery* TimestampQuery::newInstance(GrManager* manager) { TimestampQueryImpl* impl = manager->getAllocator().newInstance(manager, "N/A"); const Error err = impl->init(); if(err) { manager->getAllocator().deleteInstance(impl); impl = nullptr; } return impl; } TimestampQueryResult TimestampQuery::getResult(Second& timestamp) const { return static_cast(this)->getResultInternal(timestamp); } } // end namespace anki