Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion impeller/aiks/aiks_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2988,7 +2988,7 @@ TEST_P(AiksTest, CanRenderForegroundAdvancedBlendWithMaskBlur) {
canvas.ClipRect(Rect::MakeXYWH(100, 150, 400, 400));
canvas.DrawCircle({400, 400}, 200,
{
.color = Color::White(),
.color = Color::Grey(),
.color_filter = ColorFilter::MakeBlend(
BlendMode::kColor, Color::Green()),
.mask_blur_descriptor =
Expand Down
6 changes: 6 additions & 0 deletions impeller/entity/contents/solid_rrect_blur_contents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,10 @@ bool SolidRRectBlurContents::Render(const ContentContext& renderer,
return true;
}

bool SolidRRectBlurContents::ApplyColorFilter(
const ColorFilterProc& color_filter_proc) {
color_ = color_filter_proc(color_);
return true;
}

} // namespace impeller
4 changes: 4 additions & 0 deletions impeller/entity/contents/solid_rrect_blur_contents.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ class SolidRRectBlurContents final : public Contents {
const Entity& entity,
RenderPass& pass) const override;

// |Contents|
[[nodiscard]] bool ApplyColorFilter(
const ColorFilterProc& color_filter_proc) override;

private:
std::optional<Rect> rect_;
Scalar corner_radius_;
Expand Down