Bug/stencil tiles (#1871)

This commit is contained in:
Tim Sylvester
2023-11-16 09:33:29 -08:00
committed by GitHub
parent 127506c135
commit 3df14ab59d
14 changed files with 77 additions and 115 deletions

View File

@@ -13,10 +13,12 @@ namespace mbgl {
class LayerGroupBase;
class PaintParameters;
class RenderOrchestrator;
class RenderTile;
class RenderTree;
class TileLayerGroup;
using LayerGroupBasePtr = std::shared_ptr<LayerGroupBase>;
using RenderTiles = std::shared_ptr<const std::vector<std::reference_wrapper<const RenderTile>>>;
namespace gfx {
class Context;
@@ -127,9 +129,15 @@ public:
std::size_t clearDrawables() override;
void setStencilTiles(RenderTiles);
protected:
struct Impl;
std::unique_ptr<Impl> impl;
// When stencil clipping is enabled for the layer, this is the set
// of tile IDs that need to be rendered to the stencil buffer.
RenderTiles stencilTiles;
};
/**