 |
Flutter Impeller
|
|
Go to the documentation of this file.
66 const std::optional<Snapshot>& snapshot,
68 uint32_t stencil_depth = 0);
81 const std::optional<Rect>& current_stencil_coverage)
const;
83 bool ShouldRender(
const std::optional<Rect>& stencil_coverage)
const;
85 void SetContents(std::shared_ptr<Contents> contents);
87 const std::shared_ptr<Contents>&
GetContents()
const;
117 std::shared_ptr<Contents> contents_;
119 uint32_t stencil_depth_ = 0u;
void SetTransformation(const Matrix &transformation)
static constexpr BlendMode kLastPipelineBlendMode
uint32_t GetStencilDepth() const
void SetBlendMode(BlendMode blend_mode)
Capture & GetCapture() const
static std::optional< Entity > FromSnapshot(const std::optional< Snapshot > &snapshot, BlendMode blend_mode=BlendMode::kSourceOver, uint32_t stencil_depth=0)
Create an entity that can be used to render a given snapshot.
static bool IsBlendModeDestructive(BlendMode blend_mode)
Returns true if the blend mode is "destructive", meaning that even fully transparent source colors wo...
void IncrementStencilDepth(uint32_t increment)
void SetCapture(Capture capture) const
const Matrix & GetTransformation() const
void SetContents(std::shared_ptr< Contents > contents)
bool CanInheritOpacity() const
bool Render(const ContentContext &renderer, RenderPass &parent_pass) const
bool SetInheritedOpacity(Scalar alpha)
static constexpr BlendMode kLastAdvancedBlendMode
const std::shared_ptr< Contents > & GetContents() const
Contents::StencilCoverage GetStencilCoverage(const std::optional< Rect > ¤t_stencil_coverage) const
BlendMode GetBlendMode() const
Render passes encode render commands directed as one specific render target into an underlying comman...
std::optional< Color > AsBackgroundColor(ISize target_size) const
std::optional< Rect > GetCoverage() const
void SetStencilDepth(uint32_t stencil_depth)
Scalar DeriveTextScale() const
A 4x4 matrix using column-major storage.
bool ShouldRender(const std::optional< Rect > &stencil_coverage) const