diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2017-06-22 14:33:21 -0700 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2017-07-18 10:45:12 +0200 |
commit | e35cbbae55ab01f33690b1bb2e918c5f8393b854 (patch) | |
tree | 9c4a1d27c7ef3e8e0edf5076ee1404f2a3c2aa29 /test/tile/annotation_tile.test.cpp | |
parent | 8ae70105463db78699ef3743fb24503ed8feb054 (diff) | |
download | qtlocation-mapboxgl-e35cbbae55ab01f33690b1bb2e918c5f8393b854.tar.gz |
[core] mutate style on annotation mutations immediately
Diffstat (limited to 'test/tile/annotation_tile.test.cpp')
-rw-r--r-- | test/tile/annotation_tile.test.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/tile/annotation_tile.test.cpp b/test/tile/annotation_tile.test.cpp index 813b813220..739307b78a 100644 --- a/test/tile/annotation_tile.test.cpp +++ b/test/tile/annotation_tile.test.cpp @@ -16,6 +16,7 @@ #include <mbgl/text/glyph_manager.hpp> #include <mbgl/map/backend_scope.hpp> #include <mbgl/gl/headless_backend.hpp> +#include <mbgl/style/style.hpp> #include <memory> @@ -27,10 +28,11 @@ public: TransformState transformState; util::RunLoop loop; ThreadPool threadPool { 1 }; - AnnotationManager annotationManager; + style::Style style { loop, fileSource, 1 }; + AnnotationManager annotationManager { style }; HeadlessBackend backend { test::sharedDisplay() }; BackendScope scope { backend }; - RenderStyle style { threadPool, fileSource }; + RenderStyle renderStyle { threadPool, fileSource }; ImageManager imageManager; GlyphManager glyphManager { fileSource }; @@ -92,7 +94,7 @@ TEST(AnnotationTile, Issue8289) { TransformState transformState; RenderedQueryOptions options; - tile.queryRenderedFeatures(result, queryGeometry, transformState, test.style, options); + tile.queryRenderedFeatures(result, queryGeometry, transformState, test.renderStyle, options); EXPECT_TRUE(result.empty()); } |