Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 1e968c6

Browse files
author
Jonah Williams
authored
[Impeller] Better demonstrate blur and draw picture? (#45388)
The current goldens are changing a lot, this should be stabler. though not sure if it looks quite right.
1 parent eabe8fb commit 1e968c6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

impeller/aiks/aiks_unittests.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3127,7 +3127,8 @@ TEST_P(AiksTest, CanCanvasDrawPictureWithAdvancedBlend) {
31273127
auto picture = subcanvas.EndRecordingAsPicture();
31283128

31293129
Canvas canvas;
3130-
canvas.Translate({200, 200});
3130+
canvas.DrawPaint({.color = Color::Black()});
3131+
canvas.DrawCircle(Point::MakeXY(150, 150), 25, {.color = Color::Red()});
31313132
canvas.DrawPicture(picture);
31323133

31333134
ASSERT_TRUE(OpenPlaygroundHere(canvas.EndRecordingAsPicture()));
@@ -3143,13 +3144,14 @@ TEST_P(AiksTest, CanCanvasDrawPictureWithBackdropFilter) {
31433144
});
31443145
auto image = std::make_shared<Image>(CreateTextureForFixture("kalimba.jpg"));
31453146
Paint paint;
3146-
paint.color = Color::Red();
3147+
paint.color = Color::Red().WithAlpha(0.5);
31473148
subcanvas.DrawImage(image, Point::MakeXY(100.0, 100.0), paint);
31483149

31493150
auto picture = subcanvas.EndRecordingAsPicture();
31503151

31513152
Canvas canvas;
3152-
canvas.Translate({200, 200});
3153+
canvas.DrawPaint({.color = Color::Black()});
3154+
canvas.DrawCircle(Point::MakeXY(150, 150), 25, {.color = Color::Red()});
31533155
canvas.DrawPicture(picture);
31543156

31553157
ASSERT_TRUE(OpenPlaygroundHere(canvas.EndRecordingAsPicture()));

0 commit comments

Comments
 (0)