summaryrefslogtreecommitdiff
path: root/src/mbgl/style/source_impl.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-09-05 19:03:27 +0200
committerKonstantin Käfer <mail@kkaefer.com>2016-09-05 19:03:27 +0200
commit46b73b8a2cf5748596ab6023e2cb1f2ce45d2b0d (patch)
treedb1f2b4075c076bcd1e964ddb7414b81b6808464 /src/mbgl/style/source_impl.cpp
parent51b2033fce5ca4d016b67b94abc50c1822c139fe (diff)
downloadqtlocation-mapboxgl-46b73b8a2cf5748596ab6023e2cb1f2ce45d2b0d.tar.gz
[core] Source::update => Source::{load,parse}Tiles, Source::load => Source::loadDescription
Diffstat (limited to 'src/mbgl/style/source_impl.cpp')
-rw-r--r--src/mbgl/style/source_impl.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mbgl/style/source_impl.cpp b/src/mbgl/style/source_impl.cpp
index 6f4772bfac..595eaf97e5 100644
--- a/src/mbgl/style/source_impl.cpp
+++ b/src/mbgl/style/source_impl.cpp
@@ -77,11 +77,9 @@ const std::map<UnwrappedTileID, RenderTile>& Source::Impl::getRenderTiles() cons
return renderTiles;
}
-bool Source::Impl::update(const UpdateParameters& parameters) {
- bool allTilesUpdated = true;
-
- if (!loaded || parameters.animationTime <= updated) {
- return allTilesUpdated;
+void Source::Impl::loadTiles(const UpdateParameters& parameters) {
+ if (!loaded) {
+ return;
}
const uint16_t tileSize = getTileSize();
@@ -163,7 +161,10 @@ bool Source::Impl::update(const UpdateParameters& parameters) {
++retainIt;
}
}
+}
+bool Source::Impl::parseTiles(const UpdateParameters& parameters) {
+ bool allTilesUpdated = true;
const PlacementConfig newConfig{ parameters.transformState.getAngle(),
parameters.transformState.getPitch(),
parameters.debugOptions & MapDebugOptions::Collision };