From 5cc3d7a73328d6df9c16d27d6aca5b49ba085351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Tue, 2 Apr 2019 16:34:32 +0200 Subject: [core] move GLContextMode to RendererBackend --- test/gl/context.test.cpp | 2 +- test/renderer/backend_scope.test.cpp | 5 ++++- test/text/local_glyph_rasterizer.test.cpp | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/gl/context.test.cpp b/test/gl/context.test.cpp index 4e41af55d1..b8fe895c44 100644 --- a/test/gl/context.test.cpp +++ b/test/gl/context.test.cpp @@ -90,7 +90,7 @@ TEST(GLContextMode, Shared) { ThreadPool threadPool(4); - HeadlessFrontend frontend { 1, threadPool, {}, GLContextMode::Shared }; + HeadlessFrontend frontend { 1, threadPool, {}, gfx::ContextMode::Shared }; Map map(frontend, MapObserver::nullObserver(), threadPool, MapOptions().withMapMode(MapMode::Static).withSize(frontend.getSize()), diff --git a/test/renderer/backend_scope.test.cpp b/test/renderer/backend_scope.test.cpp index f5c43a34a1..3646afce48 100644 --- a/test/renderer/backend_scope.test.cpp +++ b/test/renderer/backend_scope.test.cpp @@ -7,8 +7,11 @@ using namespace mbgl; -class StubRendererBackend: public gl::RendererBackend { +class StubRendererBackend : public gl::RendererBackend { public: + StubRendererBackend() : gl::RendererBackend(gfx::ContextMode::Unique) { + } + void activate() override { if (activateFunction) activateFunction(); } diff --git a/test/text/local_glyph_rasterizer.test.cpp b/test/text/local_glyph_rasterizer.test.cpp index 26e4a2eb1d..f21ac0b883 100644 --- a/test/text/local_glyph_rasterizer.test.cpp +++ b/test/text/local_glyph_rasterizer.test.cpp @@ -34,7 +34,7 @@ namespace { class LocalGlyphRasterizerTest { public: LocalGlyphRasterizerTest(const optional fontFamily) - : frontend(1, threadPool, optional(), GLContextMode::Unique, fontFamily) + : frontend(1, threadPool, optional(), gfx::ContextMode::Unique, fontFamily) { } -- cgit v1.2.1