summaryrefslogtreecommitdiff
path: root/test/api/repeated_render.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/api/repeated_render.test.cpp')
-rw-r--r--test/api/repeated_render.test.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/api/repeated_render.test.cpp b/test/api/repeated_render.test.cpp
index 1bea05b1fb..67670916fc 100644
--- a/test/api/repeated_render.test.cpp
+++ b/test/api/repeated_render.test.cpp
@@ -12,15 +12,17 @@
#include <future>
+using namespace mbgl;
+
+
TEST(API, RepeatedRender) {
- using namespace mbgl;
util::RunLoop loop;
const auto style = util::read_file("test/fixtures/api/water.json");
- HeadlessBackend backend;
- OffscreenView view(backend.getContext(), { 256, 512 });
+ HeadlessBackend backend { test::sharedDisplay() };
+ OffscreenView view { backend.getContext(), { 256, 512 } };
#ifdef MBGL_ASSET_ZIP
// Regenerate with `cd test/fixtures/api/ && zip -r assets.zip assets/`
DefaultFileSource fileSource(":memory:", "test/fixtures/api/assets.zip");