summaryrefslogtreecommitdiff
path: root/src/mbgl/style/source_impl.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-09-19 15:54:13 +0200
committerKonstantin Käfer <mail@kkaefer.com>2016-10-27 18:14:53 -0700
commitef8017198ce8f0bd79ba5a5ed31e35a16e3433bb (patch)
tree66632219fe62c86edf9f8424004f99d1008dbc14 /src/mbgl/style/source_impl.hpp
parent91272992f3a7ca7baa124c3378f1c1e2b3e5bb76 (diff)
downloadqtlocation-mapboxgl-ef8017198ce8f0bd79ba5a5ed31e35a16e3433bb.tar.gz
[core] remove tiles for disabled sources
When no layer of a source is visible anymore, we are now evicting tiles that are still stored in that source and move them to the cache.
Diffstat (limited to 'src/mbgl/style/source_impl.hpp')
-rw-r--r--src/mbgl/style/source_impl.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/style/source_impl.hpp b/src/mbgl/style/source_impl.hpp
index 14ed9cd01c..9efe5205b3 100644
--- a/src/mbgl/style/source_impl.hpp
+++ b/src/mbgl/style/source_impl.hpp
@@ -48,6 +48,9 @@ public:
// re-placement of existing complete tiles.
void updateTiles(const UpdateParameters&);
+ // Removes all tiles (by putting them into the cache).
+ void removeTiles();
+
// Request that all loaded tiles re-run the layout operation on the existing source
// data with fresh style information.
void reloadTiles();
@@ -82,6 +85,7 @@ public:
protected:
void invalidateTiles();
+ void removeStaleTiles(const std::set<OverscaledTileID>&);
Source& base;
SourceObserver* observer = nullptr;