5#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_FILTER_CONTENTS_FILTER_INPUT_H_
6#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_FILTER_CONTENTS_FILTER_INPUT_H_
20 std::optional<Snapshot>
GetSnapshot(
const std::string& label,
23 std::optional<Rect> coverage_limit,
24 int32_t mip_count)
const override;
31 const Matrix& effect_transform,
32 const Rect& output_limit)
const override;
42 const std::shared_ptr<LazyGlyphAtlas>& lazy_glyph_atlas,
49 bool IsLeaf()
const override;
63 std::shared_ptr<FilterContents> filter_;
64 mutable std::optional<Snapshot> snapshot_;
virtual void SetRenderingMode(Entity::RenderingMode rendering_mode) override
Turns on subpass mode for filter inputs.
void PopulateGlyphAtlas(const std::shared_ptr< LazyGlyphAtlas > &lazy_glyph_atlas, Scalar scale) override
Matrix GetLocalTransform(const Entity &entity) const override
Get the local transform of this filter input. This transform is relative to the Entity transform spac...
void SetLeafInputs(const FilterInput::Vector &inputs) override
Replaces the inputs of all leaf FilterContents with a new set of inputs.
Matrix GetTransform(const Entity &entity) const override
Get the transform of this FilterInput. This is equivalent to calling entity.GetTransform() * GetLocal...
~FilterContentsFilterInput() override
std::optional< Snapshot > GetSnapshot(const std::string &label, const ContentContext &renderer, const Entity &entity, std::optional< Rect > coverage_limit, int32_t mip_count) const override
std::optional< Rect > GetSourceCoverage(const Matrix &effect_transform, const Rect &output_limit) const override
bool IsTranslationOnly() const override
bool IsLeaf() const override
Returns true unless this input is a FilterInput, which may take other inputs.
virtual void SetEffectTransform(const Matrix &matrix) override
Sets the effect transform of filter inputs.
Variant GetInput() const override
std::optional< Rect > GetCoverage(const Entity &entity) const override
unsigned useCenter Optional< SkMatrix > matrix
A 4x4 matrix using column-major storage.