diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-11-06 15:26:12 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-01 11:16:57 -0800 |
commit | b7674040ab768318c5accce50067550a7da4bea9 (patch) | |
tree | 500ae9289c8024c55c1406fe9ff6689247055fff /src/mbgl/map | |
parent | bafbf6c04b1bfd5da84411f52a72e26783f3bcb7 (diff) | |
download | qtlocation-mapboxgl-b7674040ab768318c5accce50067550a7da4bea9.tar.gz |
[core] Privatize layers and sources
Diffstat (limited to 'src/mbgl/map')
-rw-r--r-- | src/mbgl/map/map_context.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp index 17d91ab861..2a338e738b 100644 --- a/src/mbgl/map/map_context.cpp +++ b/src/mbgl/map/map_context.cpp @@ -277,9 +277,7 @@ void MapContext::setSourceTileCacheSize(size_t size) { if (size != sourceCacheSize) { sourceCacheSize = size; if (!style) return; - for (const auto &source : style->sources) { - source->setCacheSize(sourceCacheSize); - } + style->setSourceTileCacheSize(size); asyncInvalidate.send(); } } @@ -287,9 +285,7 @@ void MapContext::setSourceTileCacheSize(size_t size) { void MapContext::onLowMemory() { assert(util::ThreadContext::currentlyOn(util::ThreadType::Map)); if (!style) return; - for (const auto &source : style->sources) { - source->onLowMemory(); - } + style->onLowMemory(); asyncInvalidate.send(); } @@ -300,7 +296,6 @@ void MapContext::setSprite(const std::string& name, std::shared_ptr<const Sprite void MapContext::onTileDataChanged() { assert(util::ThreadContext::currentlyOn(util::ThreadType::Map)); - updateFlags |= Update::Repaint; asyncUpdate.send(); } |