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

Commit d456124

Browse files
author
jonahwilliams
committed
++
1 parent 489c399 commit d456124

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

impeller/aiks/aiks_unittests.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3143,13 +3143,14 @@ TEST_P(AiksTest, CanCanvasDrawPictureWithBackdropFilter) {
31433143
});
31443144
auto image = std::make_shared<Image>(CreateTextureForFixture("kalimba.jpg"));
31453145
Paint paint;
3146-
paint.color = Color::Red();
3146+
paint.color = Color::Red().WithAlpha(0.5);
31473147
subcanvas.DrawImage(image, Point::MakeXY(100.0, 100.0), paint);
31483148

31493149
auto picture = subcanvas.EndRecordingAsPicture();
31503150

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

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

0 commit comments

Comments
 (0)