summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-06-14 16:21:02 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-06-22 08:04:39 -0700
commitbe7e9bbb8d54c775127f53d793c117c4bf5e2764 (patch)
tree2621c4aa950956af9e48205bda13960ac2ce8584 /test
parente4201e207c3a6b33da64fdc2f9a00ec08586dc09 (diff)
downloadqtlocation-mapboxgl-be7e9bbb8d54c775127f53d793c117c4bf5e2764.tar.gz
[core] Refactor CustomLayer internals
Move the responsibility for initialization/deinitialization/rendering to RenderCustomLayer. This eliminates special case code from Map and Style.
Diffstat (limited to 'test')
-rw-r--r--test/tile/annotation_tile.test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/tile/annotation_tile.test.cpp b/test/tile/annotation_tile.test.cpp
index a69735d23e..6d00a3236a 100644
--- a/test/tile/annotation_tile.test.cpp
+++ b/test/tile/annotation_tile.test.cpp
@@ -14,6 +14,8 @@
#include <mbgl/annotation/annotation_tile.hpp>
#include <mbgl/renderer/image_manager.hpp>
#include <mbgl/text/glyph_manager.hpp>
+#include <mbgl/map/backend_scope.hpp>
+#include <mbgl/gl/headless_backend.hpp>
#include <memory>
@@ -26,6 +28,8 @@ public:
util::RunLoop loop;
ThreadPool threadPool { 1 };
AnnotationManager annotationManager;
+ HeadlessBackend backend { test::sharedDisplay() };
+ BackendScope scope { backend };
RenderStyle style { threadPool, fileSource };
ImageManager imageManager;
GlyphManager glyphManager { fileSource };