Android benchmark frame time (#1958)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
@@ -15,11 +15,6 @@ namespace gfx {
|
||||
// of readStillImage.
|
||||
class HeadlessBackend : public gfx::Renderable {
|
||||
public:
|
||||
enum class SwapBehaviour {
|
||||
NoFlush,
|
||||
Flush
|
||||
};
|
||||
|
||||
// Factory.
|
||||
static std::unique_ptr<HeadlessBackend> Create(const Size size = {256, 256},
|
||||
SwapBehaviour swapBehavior = SwapBehaviour::NoFlush,
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace gfx {
|
||||
|
||||
template <>
|
||||
std::unique_ptr<gfx::HeadlessBackend> Backend::Create<gfx::Backend::Type::OpenGL>(
|
||||
const Size size, gfx::HeadlessBackend::SwapBehaviour swapBehavior, const gfx::ContextMode contextMode) {
|
||||
const Size size, gfx::Renderable::SwapBehaviour swapBehavior, const gfx::ContextMode contextMode) {
|
||||
return std::make_unique<gl::HeadlessBackend>(size, swapBehavior, contextMode);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user