bool ShouldRender(const Entity &entity, const std::optional< Rect > &stencil_coverage) const override
StencilCoverage GetStencilCoverage(const Entity &entity, const std::optional< Rect > ¤t_stencil_coverage) const override
Given the current screen space bounding rectangle of the stencil, return the expected stencil coverag...
std::optional< Rect > GetCoverage(const Entity &entity) const override
Get the screen space bounding rectangle that this contents affects.
bool CanInheritOpacity(const Entity &entity) const override
Whether or not this contents can accept the opacity peephole optimization.
void SetGeometry(std::unique_ptr< Geometry > geometry)
void SetClipOperation(Entity::ClipOperation clip_op)
void SetRestoreCoverage(std::optional< Rect > coverage)
The area on the pass texture where this clip restore will be applied. If unset, the entire pass textu...
bool Render(const ContentContext &renderer, const Entity &entity, RenderPass &pass) const override
std::optional< Rect > GetCoverage(const Entity &entity) const override
Get the screen space bounding rectangle that this contents affects.
void SetInheritedOpacity(Scalar opacity) override
Inherit the provided opacity.
StencilCoverage GetStencilCoverage(const Entity &entity, const std::optional< Rect > ¤t_stencil_coverage) const override
Given the current screen space bounding rectangle of the stencil, return the expected stencil coverag...
bool Render(const ContentContext &renderer, const Entity &entity, RenderPass &pass) const override
bool ShouldRender(const Entity &entity, const std::optional< Rect > &stencil_coverage) const override
bool CanInheritOpacity(const Entity &entity) const override
Whether or not this contents can accept the opacity peephole optimization.
void SetInheritedOpacity(Scalar opacity) override
Inherit the provided opacity.