diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-07-10 17:53:35 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-07-11 15:36:28 +0300 |
commit | fa5646d112259758cee9fba0564a067376d07566 (patch) | |
tree | 3707f22455574b16c6a47019a10a306ed15f4cec /include | |
parent | 200af48754fdc30021108baf85ab6fe4e3e5ba85 (diff) | |
download | qtlocation-mapboxgl-fa5646d112259758cee9fba0564a067376d07566.tar.gz |
[core] Synchronize render passes and render tiles
Before this change render passes were assigned for the
whole layer at properties evaluation stage.
This caused problems, as layer render data are bound
to the tile and these data might differ from tile to
tile, depending on which tile has been updated by the
tile worker and which has not been yet updated.
This change takes into consideration the actual render
passes required for each tile and combines them for
the layer render passes. Naturally, this change also
introduces render pass check for each render layer in
`RenderLayer::render()` implementations.
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/style/layer_properties.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/style/layer_properties.hpp b/include/mbgl/style/layer_properties.hpp index c238faf02f..024301f554 100644 --- a/include/mbgl/style/layer_properties.hpp +++ b/include/mbgl/style/layer_properties.hpp @@ -16,6 +16,8 @@ public: // Returns constants mask for the data-driven properties. virtual unsigned long constantsMask() const { return 0u; } Immutable<Layer::Impl> baseImpl; + // Contains render passes used by the renderer, see `mbgl::RenderPass`. + uint8_t renderPasses = 0u; protected: LayerProperties(Immutable<Layer::Impl> impl) : baseImpl(std::move(impl)) {} |