-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] Move drawAtlas golden tests to display list. #53398
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. |
|
Golden file changes are available for triage from new commit, Click here to view. |
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, I think parameter comments would help reading the tests but they weren't there before so no requirement to add them.
|
|
||
| builder.Scale(GetContentScale().x, GetContentScale().y); | ||
| builder.DrawAtlas(atlas, transforms.data(), texture_coordinates.data(), | ||
| nullptr, 4, DlBlendMode::kSrcOver, |
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.
| nullptr, 4, DlBlendMode::kSrcOver, | |
| /*colors=*/nullptr, /*count=*/4, DlBlendMode::kSrcOver, |
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.Scale(GetContentScale().x, GetContentScale().y); | ||
| builder.DrawAtlas(atlas, transforms.data(), texture_coordinates.data(), | ||
| nullptr, 4, DlBlendMode::kSrcOver, | ||
| DlImageSampling::kNearestNeighbor, nullptr); |
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.
| DlImageSampling::kNearestNeighbor, nullptr); | |
| DlImageSampling::kNearestNeighbor, /*cullRect=*/nullptr); |
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
| auto size = atlas->impeller_texture()->GetSize(); | ||
| std::vector<SkRect> texture_coordinates = { | ||
| SkRect::MakeLTRB(0, 0, size.width, size.height)}; | ||
| std::vector<SkRSXform> transforms = {MakeTranslation(0, 0)}; |
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.
No action required: "SkRSXform", really skia?
|
Goldens look reasonable to me too, nothing was obviously broken to me. |
|
Golden file changes are available for triage from new commit, Click here to view. |
…150399) flutter/engine@a4f266f...1c4e5e2 2024-06-17 [email protected] [DisplayList] Create DrawDashedLine for paragraph code (flutter/engine#53411) 2024-06-17 [email protected] [Impeller] Update Android CPU profiling instructions. (flutter/engine#53437) 2024-06-17 [email protected] [Impeller] move draw vertices to dl unittests. (flutter/engine#53400) 2024-06-17 [email protected] [Impeller] Link CPU profiling docs from the main README. (flutter/engine#53435) 2024-06-17 [email protected] Roll Dart SDK from 1ce6b4d54247 to 51bbba0da7d3 (1 revision) (flutter/engine#53432) 2024-06-17 [email protected] [Impeller] Move drawAtlas golden tests to display list. (flutter/engine#53398) 2024-06-17 [email protected] [flatland] Handle fence overflow in flatland_connection.cc (flutter/engine#53366) 2024-06-17 [email protected] Roll Skia from 0dda1054f543 to 2b9bc16df969 (1 revision) (flutter/engine#53431) 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 [email protected],[email protected],[email protected] 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
Part of flutter/flutter#142054
Moves all of the drawAtlas tests for aiks and entities into DL. This might change some of the entity goldens but ... these are easy to eyeball so it should be fine IMO.