summaryrefslogtreecommitdiff
path: root/src/mbgl/tile/tile.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/tile/tile.hpp')
-rw-r--r--src/mbgl/tile/tile.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/tile/tile.hpp b/src/mbgl/tile/tile.hpp
index 1bb38f5c96..95ee0bc37e 100644
--- a/src/mbgl/tile/tile.hpp
+++ b/src/mbgl/tile/tile.hpp
@@ -131,6 +131,9 @@ public:
OverscaledTileID id;
optional<Timestamp> modified;
optional<Timestamp> expires;
+ // Indicates whether this tile is used for the currently visible layers on the map.
+ // Re-initialized at every source update.
+ bool usedByRenderedLayers = false;
protected:
bool triedOptional = false;
@@ -138,6 +141,7 @@ protected:
bool pending = false;
bool loaded = false;
+
TileObserver* observer = nullptr;
};