From fa5646d112259758cee9fba0564a067376d07566 Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Wed, 10 Jul 2019 17:53:35 +0300 Subject: [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. --- include/mbgl/style/layer_properties.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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 baseImpl; + // Contains render passes used by the renderer, see `mbgl::RenderPass`. + uint8_t renderPasses = 0u; protected: LayerProperties(Immutable impl) : baseImpl(std::move(impl)) {} -- cgit v1.2.1