-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] Move Gradient tests to display list. #53345
Conversation
|
Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change). If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review. |
chinmaygarde
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the "AiksTests" that test with DL so that the names are consistent for goldens? Presumably, they can be renamed later.
gaaclarke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, there are a few minor critiques, cleanups and nitpicks.
| namespace testing { | ||
|
|
||
| namespace { | ||
| void CanRenderLinearGradient(AiksTest* aiks_test, DlTileMode tile_mode) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| void CanRenderLinearGradient(AiksTest* aiks_test, DlTileMode tile_mode) { | |
| /// Test body for linear gradient tile mode tests (ex. CanRenderLinearGradientClamp). | |
| void CanRenderLinearGradient(AiksTest* aiks_test, DlTileMode tile_mode) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe just move it next to the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
|
||
| TEST_P(AiksTest, CanRenderLinearGradientWithDitheringEnabled) { | ||
| CanRenderLinearGradientWithDithering(this); | ||
| } // namespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| } // namespace | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| builder.Translate(100, 100); | ||
|
|
||
| std::vector<DlColor> colors = { | ||
| DlColor(Color{0x1f / 255.0, 0.0, 0x5c / 255.0, 1.0}.ToARGB()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This pattern is repeated many times in this file. It is worth factoring it out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as a follow up I want to add a new constructor to DlColor so we can just replace the impeller colors here.
| static Matrix matrix = { | ||
| 1, 0, 0, 0, // | ||
| 0, 1, 0, 0, // | ||
| 0, 0, 1, 0, // | ||
| 0, 0, 0, 1 // | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| static Matrix matrix = { | |
| 1, 0, 0, 0, // | |
| 0, 1, 0, 0, // | |
| 0, 0, 1, 0, // | |
| 0, 0, 0, 1 // | |
| }; | |
| static Matrix matrix; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| static Matrix matrix = { | ||
| 1, 0, 0, 0, // | ||
| 0, 1, 0, 0, // | ||
| 0, 0, 1, 0, // | ||
| 0, 0, 0, 1 // | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| static Matrix matrix = { | |
| 1, 0, 0, 0, // | |
| 0, 1, 0, 0, // | |
| 0, 0, 1, 0, // | |
| 0, 0, 0, 1 // | |
| }; | |
| static Matrix matrix; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
|
||
| bool GoldenPlaygroundTest::OpenPlaygroundHere( | ||
| AiksDlPlaygroundCallback | ||
| callback) { // NOLINT(performance-unnecessary-value-param) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why NOLINT? Just make this a const reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
|
||
| bool GoldenPlaygroundTest::OpenPlaygroundHere( | ||
| AiksDlPlaygroundCallback | ||
| callback) { // NOLINT(performance-unnecessary-value-param) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| ASSERT_TRUE(aiks_test->OpenPlaygroundHere(builder.Build())); | ||
| } | ||
|
|
||
| static Matrix ToMatrix(const SkMatrix& m) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| static Matrix ToMatrix(const SkMatrix& m) { | |
| Matrix ToMatrix(const SkMatrix& m) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Yep. |
gaaclarke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
|
Golden file changes are available for triage from new commit, Click here to view. |
flutter/engine@c7fcbfc...4cb3025 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from 0fe7f7ac43c5 to ecc64fb82374 (1 revision) (flutter/engine#53374) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from 9ea9f37e8e1d to 0fe7f7ac43c5 (1 revision) (flutter/engine#53373) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from b12af56eb100 to 9ea9f37e8e1d (1 revision) (flutter/engine#53372) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from 704f70b7d756 to b12af56eb100 (1 revision) (flutter/engine#53371) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from 69a53db434a6 to 704f70b7d756 (2 revisions) (flutter/engine#53370) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from b2f163ae11bf to 69a53db434a6 (8 revisions) (flutter/engine#53365) 2024-06-13 jonahwilliams@google.com [Impeller] Move Gradient tests to display list. (flutter/engine#53345) 2024-06-13 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from 5VG7IYkpANkfxMKYx... to pGxbL7JoNb3yAYFw4... (flutter/engine#53363) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from be6a57569a92 to b2f163ae11bf (5 revisions) (flutter/engine#53357) 2024-06-13 15619084+vashworth@users.noreply.github.com Give mac_host_engine tests a longer timeout and allow to run on Mac-14 (flutter/engine#53355) 2024-06-13 codefu@google.com 'Starter Project': port planet fragment shader to impeller tests (flutter/engine#53362) 2024-06-12 skia-flutter-autoroll@skia.org Roll Skia from 1ba0c3ebc7a5 to be6a57569a92 (1 revision) (flutter/engine#53353) 2024-06-12 skia-flutter-autoroll@skia.org Roll Dart SDK from 24fbead7105d to aa2265e5a192 (1 revision) (flutter/engine#53352) 2024-06-12 skia-flutter-autoroll@skia.org Roll Skia from 52d829ac6a0b to 1ba0c3ebc7a5 (1 revision) (flutter/engine#53351) 2024-06-12 skia-flutter-autoroll@skia.org Roll Skia from 5bfbacc89543 to 52d829ac6a0b (1 revision) (flutter/engine#53350) 2024-06-12 skia-flutter-autoroll@skia.org Roll Skia from 51eabd0d1e44 to 5bfbacc89543 (1 revision) (flutter/engine#53349) 2024-06-12 skia-flutter-autoroll@skia.org Roll Dart SDK from b61536f05f99 to 24fbead7105d (1 revision) (flutter/engine#53348) 2024-06-12 skia-flutter-autoroll@skia.org Roll Dart SDK from 269125c33a35 to b61536f05f99 (1 revision) (flutter/engine#53347) 2024-06-12 jonahwilliams@google.com [Impeller] disabling the color write mask seems to improve performance on iOS compared to just the blend options. (flutter/engine#53322) 2024-06-11 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from LS0Ff8PwQEGXzO0iA... to 5VG7IYkpANkfxMKYx... (flutter/engine#53346) 2024-06-11 skia-flutter-autoroll@skia.org Roll Dart SDK from ab4d5a0b789d to 269125c33a35 (1 revision) (flutter/engine#53344) 2024-06-11 30870216+gaaclarke@users.noreply.github.com [Impeller] makes bgra10xr test more comprehensive (flutter/engine#53320) 2024-06-11 skia-flutter-autoroll@skia.org Roll Skia from af907b24d873 to 51eabd0d1e44 (1 revision) (flutter/engine#53343) 2024-06-11 jonahwilliams@google.com [Impeller] add missing position to exp canvas text. (flutter/engine#53339) 2024-06-11 skia-flutter-autoroll@skia.org Roll Skia from 4cbc1129e587 to af907b24d873 (1 revision) (flutter/engine#53341) 2024-06-11 yjbanov@google.com Revert "[web] switch from .didGain/LoseAccessibilityFocus to .focus (� (flutter/engine#53342) 2024-06-11 jonahwilliams@google.com [Impeller] move some tests from aiks to display list. (flutter/engine#53336) 2024-06-11 skia-flutter-autoroll@skia.org Roll Skia from b5f974ec2dcd to 4cbc1129e587 (1 revision) (flutter/engine#53340) Also rolling transitive DEPS: fuchsia/sdk/core/linux-amd64 from LS0Ff8PwQEGX to pGxbL7JoNb3y If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC chinmaygarde@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…50199) flutter/engine@c7fcbfc...4cb3025 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from 0fe7f7ac43c5 to ecc64fb82374 (1 revision) (flutter/engine#53374) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from 9ea9f37e8e1d to 0fe7f7ac43c5 (1 revision) (flutter/engine#53373) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from b12af56eb100 to 9ea9f37e8e1d (1 revision) (flutter/engine#53372) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from 704f70b7d756 to b12af56eb100 (1 revision) (flutter/engine#53371) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from 69a53db434a6 to 704f70b7d756 (2 revisions) (flutter/engine#53370) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from b2f163ae11bf to 69a53db434a6 (8 revisions) (flutter/engine#53365) 2024-06-13 jonahwilliams@google.com [Impeller] Move Gradient tests to display list. (flutter/engine#53345) 2024-06-13 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from 5VG7IYkpANkfxMKYx... to pGxbL7JoNb3yAYFw4... (flutter/engine#53363) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from be6a57569a92 to b2f163ae11bf (5 revisions) (flutter/engine#53357) 2024-06-13 15619084+vashworth@users.noreply.github.com Give mac_host_engine tests a longer timeout and allow to run on Mac-14 (flutter/engine#53355) 2024-06-13 codefu@google.com 'Starter Project': port planet fragment shader to impeller tests (flutter/engine#53362) 2024-06-12 skia-flutter-autoroll@skia.org Roll Skia from 1ba0c3ebc7a5 to be6a57569a92 (1 revision) (flutter/engine#53353) 2024-06-12 skia-flutter-autoroll@skia.org Roll Dart SDK from 24fbead7105d to aa2265e5a192 (1 revision) (flutter/engine#53352) 2024-06-12 skia-flutter-autoroll@skia.org Roll Skia from 52d829ac6a0b to 1ba0c3ebc7a5 (1 revision) (flutter/engine#53351) 2024-06-12 skia-flutter-autoroll@skia.org Roll Skia from 5bfbacc89543 to 52d829ac6a0b (1 revision) (flutter/engine#53350) 2024-06-12 skia-flutter-autoroll@skia.org Roll Skia from 51eabd0d1e44 to 5bfbacc89543 (1 revision) (flutter/engine#53349) 2024-06-12 skia-flutter-autoroll@skia.org Roll Dart SDK from b61536f05f99 to 24fbead7105d (1 revision) (flutter/engine#53348) 2024-06-12 skia-flutter-autoroll@skia.org Roll Dart SDK from 269125c33a35 to b61536f05f99 (1 revision) (flutter/engine#53347) 2024-06-12 jonahwilliams@google.com [Impeller] disabling the color write mask seems to improve performance on iOS compared to just the blend options. (flutter/engine#53322) 2024-06-11 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from LS0Ff8PwQEGXzO0iA... to 5VG7IYkpANkfxMKYx... (flutter/engine#53346) 2024-06-11 skia-flutter-autoroll@skia.org Roll Dart SDK from ab4d5a0b789d to 269125c33a35 (1 revision) (flutter/engine#53344) 2024-06-11 30870216+gaaclarke@users.noreply.github.com [Impeller] makes bgra10xr test more comprehensive (flutter/engine#53320) 2024-06-11 skia-flutter-autoroll@skia.org Roll Skia from af907b24d873 to 51eabd0d1e44 (1 revision) (flutter/engine#53343) 2024-06-11 jonahwilliams@google.com [Impeller] add missing position to exp canvas text. (flutter/engine#53339) 2024-06-11 skia-flutter-autoroll@skia.org Roll Skia from 4cbc1129e587 to af907b24d873 (1 revision) (flutter/engine#53341) 2024-06-11 yjbanov@google.com Revert "[web] switch from .didGain/LoseAccessibilityFocus to .focus (â�¦ (flutter/engine#53342) 2024-06-11 jonahwilliams@google.com [Impeller] move some tests from aiks to display list. (flutter/engine#53336) 2024-06-11 skia-flutter-autoroll@skia.org Roll Skia from b5f974ec2dcd to 4cbc1129e587 (1 revision) (flutter/engine#53340) Also rolling transitive DEPS: fuchsia/sdk/core/linux-amd64 from LS0Ff8PwQEGX to pGxbL7JoNb3y If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC chinmaygarde@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…50199) flutter/engine@c7fcbfc...4cb3025 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from 0fe7f7ac43c5 to ecc64fb82374 (1 revision) (flutter/engine#53374) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from 9ea9f37e8e1d to 0fe7f7ac43c5 (1 revision) (flutter/engine#53373) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from b12af56eb100 to 9ea9f37e8e1d (1 revision) (flutter/engine#53372) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from 704f70b7d756 to b12af56eb100 (1 revision) (flutter/engine#53371) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from 69a53db434a6 to 704f70b7d756 (2 revisions) (flutter/engine#53370) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from b2f163ae11bf to 69a53db434a6 (8 revisions) (flutter/engine#53365) 2024-06-13 jonahwilliams@google.com [Impeller] Move Gradient tests to display list. (flutter/engine#53345) 2024-06-13 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from 5VG7IYkpANkfxMKYx... to pGxbL7JoNb3yAYFw4... (flutter/engine#53363) 2024-06-13 skia-flutter-autoroll@skia.org Roll Skia from be6a57569a92 to b2f163ae11bf (5 revisions) (flutter/engine#53357) 2024-06-13 15619084+vashworth@users.noreply.github.com Give mac_host_engine tests a longer timeout and allow to run on Mac-14 (flutter/engine#53355) 2024-06-13 codefu@google.com 'Starter Project': port planet fragment shader to impeller tests (flutter/engine#53362) 2024-06-12 skia-flutter-autoroll@skia.org Roll Skia from 1ba0c3ebc7a5 to be6a57569a92 (1 revision) (flutter/engine#53353) 2024-06-12 skia-flutter-autoroll@skia.org Roll Dart SDK from 24fbead7105d to aa2265e5a192 (1 revision) (flutter/engine#53352) 2024-06-12 skia-flutter-autoroll@skia.org Roll Skia from 52d829ac6a0b to 1ba0c3ebc7a5 (1 revision) (flutter/engine#53351) 2024-06-12 skia-flutter-autoroll@skia.org Roll Skia from 5bfbacc89543 to 52d829ac6a0b (1 revision) (flutter/engine#53350) 2024-06-12 skia-flutter-autoroll@skia.org Roll Skia from 51eabd0d1e44 to 5bfbacc89543 (1 revision) (flutter/engine#53349) 2024-06-12 skia-flutter-autoroll@skia.org Roll Dart SDK from b61536f05f99 to 24fbead7105d (1 revision) (flutter/engine#53348) 2024-06-12 skia-flutter-autoroll@skia.org Roll Dart SDK from 269125c33a35 to b61536f05f99 (1 revision) (flutter/engine#53347) 2024-06-12 jonahwilliams@google.com [Impeller] disabling the color write mask seems to improve performance on iOS compared to just the blend options. (flutter/engine#53322) 2024-06-11 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from LS0Ff8PwQEGXzO0iA... to 5VG7IYkpANkfxMKYx... (flutter/engine#53346) 2024-06-11 skia-flutter-autoroll@skia.org Roll Dart SDK from ab4d5a0b789d to 269125c33a35 (1 revision) (flutter/engine#53344) 2024-06-11 30870216+gaaclarke@users.noreply.github.com [Impeller] makes bgra10xr test more comprehensive (flutter/engine#53320) 2024-06-11 skia-flutter-autoroll@skia.org Roll Skia from af907b24d873 to 51eabd0d1e44 (1 revision) (flutter/engine#53343) 2024-06-11 jonahwilliams@google.com [Impeller] add missing position to exp canvas text. (flutter/engine#53339) 2024-06-11 skia-flutter-autoroll@skia.org Roll Skia from 4cbc1129e587 to af907b24d873 (1 revision) (flutter/engine#53341) 2024-06-11 yjbanov@google.com Revert "[web] switch from .didGain/LoseAccessibilityFocus to .focus (â�¦ (flutter/engine#53342) 2024-06-11 jonahwilliams@google.com [Impeller] move some tests from aiks to display list. (flutter/engine#53336) 2024-06-11 skia-flutter-autoroll@skia.org Roll Skia from b5f974ec2dcd to 4cbc1129e587 (1 revision) (flutter/engine#53340) Also rolling transitive DEPS: fuchsia/sdk/core/linux-amd64 from LS0Ff8PwQEGX to pGxbL7JoNb3y If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC chinmaygarde@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Migrate almost all of the gradient unittests to display list. Removes tests for disabled dithering and the dithering flag, as it has not been possible to disable dithering on gradients for months and months.
Part of flutter/flutter#142054