43 std::optional<Color> foreground_color,
45 std::optional<Scalar> alpha)>;
63 const Matrix& effect_transform,
65 const std::optional<Rect>& coverage_hint)
const override;
71 std::optional<Entity> CreateForegroundAdvancedBlend(
72 const std::shared_ptr<FilterInput>& input,
76 Color foreground_color,
78 std::optional<Scalar> alpha,
88 std::optional<Entity> CreateFramebufferAdvancedBlend(
93 std::optional<Color> foreground_color,
95 std::optional<Scalar> alpha,
102 std::optional<Entity> CreateForegroundPorterDuffBlend(
103 const std::shared_ptr<FilterInput>& input,
106 const Rect& coverage,
107 Color foreground_color,
109 std::optional<Scalar> alpha,
114 std::optional<Color> foreground_color_;
~BlendFilterContents() override
void SetBlendMode(BlendMode blend_mode)
std::optional< Entity > RenderFilter(const FilterInput::Vector &inputs, const ContentContext &renderer, const Entity &entity, const Matrix &effect_transform, const Rect &coverage, const std::optional< Rect > &coverage_hint) const override
Converts zero or more filter inputs into a render instruction.
void SetForegroundColor(std::optional< Color > color)
Sets a source color which is blended after all of the inputs have been blended.
std::function< std::optional< Entity >(const FilterInput::Vector &inputs, const ContentContext &renderer, const Entity &entity, const Rect &coverage, BlendMode blend_mode, std::optional< Color > foreground_color, ColorFilterContents::AbsorbOpacity absorb_opacity, std::optional< Scalar > alpha)> AdvancedBlendProc