diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-06-06 11:26:52 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-06-10 19:36:47 +0300 |
commit | 737665bc070e9db4544b5d78ca69baf72ec958dc (patch) | |
tree | b16f5e0c771765362ade518e4b440d4b8fabc322 /src/mbgl/tile | |
parent | f5631d8ef5a1307e50975ab2f767dd7ee544f466 (diff) | |
download | qtlocation-mapboxgl-737665bc070e9db4544b5d78ca69baf72ec958dc.tar.gz |
[core] Refactor tile pyramid
Tile pyramid is no longer operating with `RenderTiles` and does not perform
rendering operations (upload, finish render).
Render tiles belong to rendering, and tile pyramid belongs to orchestration.
Diffstat (limited to 'src/mbgl/tile')
-rw-r--r-- | src/mbgl/tile/tile.hpp | 4 |
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; }; |