summaryrefslogtreecommitdiff
path: root/src/mbgl/map/tile_worker.hpp
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2015-10-27 17:46:19 -0400
committerAnsis Brammanis <brammanis@gmail.com>2016-01-06 14:10:23 -0800
commitdc1630f50d1a3493acd2afe42aa2b8dd2e8876fb (patch)
treed5553632ec84bb67793e814e82a3237f09ea2e2c /src/mbgl/map/tile_worker.hpp
parent9d6cb1361c84fbc6736b2842037d8a3cff580d1a (diff)
downloadqtlocation-mapboxgl-dc1630f50d1a3493acd2afe42aa2b8dd2e8876fb.tar.gz
[core] always add labels to buffers in MapMode::Still
To minimize label clipping.
Diffstat (limited to 'src/mbgl/map/tile_worker.hpp')
-rw-r--r--src/mbgl/map/tile_worker.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mbgl/map/tile_worker.hpp b/src/mbgl/map/tile_worker.hpp
index d25b6e50f2..74894a9eb8 100644
--- a/src/mbgl/map/tile_worker.hpp
+++ b/src/mbgl/map/tile_worker.hpp
@@ -3,6 +3,7 @@
#include <mapbox/variant.hpp>
+#include <mbgl/map/mode.hpp>
#include <mbgl/map/tile_data.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/util/ptr.hpp>
@@ -44,7 +45,8 @@ public:
SpriteStore&,
GlyphAtlas&,
GlyphStore&,
- const std::atomic<TileData::State>&);
+ const std::atomic<TileData::State>&,
+ const MapMode);
~TileWorker();
TileParseResult parseAllLayers(std::vector<std::unique_ptr<StyleLayer>>,
@@ -67,6 +69,7 @@ private:
GlyphAtlas& glyphAtlas;
GlyphStore& glyphStore;
const std::atomic<TileData::State>& state;
+ const MapMode mode;
bool partialParse = false;