mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Impeller] Better demonstrate blur and draw picture? (flutter/engine#45388)
The current goldens are changing a lot, this should be stabler. though not sure if it looks quite right.
This commit is contained in:
parent
be8bb23633
commit
17b261d8f5
@ -3127,7 +3127,8 @@ TEST_P(AiksTest, CanCanvasDrawPictureWithAdvancedBlend) {
|
||||
auto picture = subcanvas.EndRecordingAsPicture();
|
||||
|
||||
Canvas canvas;
|
||||
canvas.Translate({200, 200});
|
||||
canvas.DrawPaint({.color = Color::Black()});
|
||||
canvas.DrawCircle(Point::MakeXY(150, 150), 25, {.color = Color::Red()});
|
||||
canvas.DrawPicture(picture);
|
||||
|
||||
ASSERT_TRUE(OpenPlaygroundHere(canvas.EndRecordingAsPicture()));
|
||||
@ -3143,13 +3144,14 @@ TEST_P(AiksTest, CanCanvasDrawPictureWithBackdropFilter) {
|
||||
});
|
||||
auto image = std::make_shared<Image>(CreateTextureForFixture("kalimba.jpg"));
|
||||
Paint paint;
|
||||
paint.color = Color::Red();
|
||||
paint.color = Color::Red().WithAlpha(0.5);
|
||||
subcanvas.DrawImage(image, Point::MakeXY(100.0, 100.0), paint);
|
||||
|
||||
auto picture = subcanvas.EndRecordingAsPicture();
|
||||
|
||||
Canvas canvas;
|
||||
canvas.Translate({200, 200});
|
||||
canvas.DrawPaint({.color = Color::Black()});
|
||||
canvas.DrawCircle(Point::MakeXY(150, 150), 25, {.color = Color::Red()});
|
||||
canvas.DrawPicture(picture);
|
||||
|
||||
ASSERT_TRUE(OpenPlaygroundHere(canvas.EndRecordingAsPicture()));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user