diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-06-18 18:23:03 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-07-01 15:21:08 -0700 |
commit | 4eff674c1d4caaf0ce624fe5db086f0d79d0d31f (patch) | |
tree | a6bef058da89bb8bba0047620b0e43a55c0385f7 /src/mbgl/map/live_tile_data.cpp | |
parent | 424629d7fc777d274541629eecd252e404eadf2b (diff) | |
download | qtlocation-mapboxgl-4eff674c1d4caaf0ce624fe5db086f0d79d0d31f.tar.gz |
Revert "Do not hold a reference to the Style at the [Live|Vector]TileData"
This reverts commit 044454417b61bdd102a376c1125ad6ee3a5eacd4.
Diffstat (limited to 'src/mbgl/map/live_tile_data.cpp')
-rw-r--r-- | src/mbgl/map/live_tile_data.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mbgl/map/live_tile_data.cpp b/src/mbgl/map/live_tile_data.cpp index ccae542ee2..4935c01345 100644 --- a/src/mbgl/map/live_tile_data.cpp +++ b/src/mbgl/map/live_tile_data.cpp @@ -10,8 +10,7 @@ using namespace mbgl; LiveTileData::LiveTileData(const TileID& id_, AnnotationManager& annotationManager_, - const std::vector<util::ptr<StyleLayer>>& layers_, - Worker& workers_, + Style& style_, GlyphAtlas& glyphAtlas_, GlyphStore& glyphStore_, SpriteAtlas& spriteAtlas_, @@ -19,7 +18,7 @@ LiveTileData::LiveTileData(const TileID& id_, const SourceInfo& source_, float angle_, bool collisionDebug_) - : VectorTileData::VectorTileData(id_, layers_, workers_, glyphAtlas_, glyphStore_, + : VectorTileData::VectorTileData(id_, style_, glyphAtlas_, glyphStore_, spriteAtlas_, sprite_, source_, angle_, collisionDebug_), annotationManager(annotationManager_) { // live features are always ready @@ -44,7 +43,7 @@ void LiveTileData::parse() { // Parsing creates state that is encapsulated in TileParser. While parsing, // the TileParser object writes results into this objects. All other state // is going to be discarded afterwards. - TileParser parser(*tile, *this, layers, glyphAtlas, glyphStore, spriteAtlas, sprite); + TileParser parser(*tile, *this, style, glyphAtlas, glyphStore, spriteAtlas, sprite); parser.parse(); } catch (const std::exception& ex) { Log::Error(Event::ParseTile, "Live-parsing [%d/%d/%d] failed: %s", id.z, id.x, id.y, ex.what()); |