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

Conversation

@jonahwilliams
Copy link
Contributor

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.

@flutter-dashboard
Copy link

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.

Changes reported for pull request #53398 at sha 630392d

@jonahwilliams jonahwilliams requested a review from gaaclarke June 14, 2024 18:43
@flutter-dashboard
Copy link

Golden file changes are available for triage from new commit, Click here to view.

Changes reported for pull request #53398 at sha 4462a03

Copy link
Member

@gaaclarke gaaclarke left a 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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nullptr, 4, DlBlendMode::kSrcOver,
/*colors=*/nullptr, /*count=*/4, DlBlendMode::kSrcOver,

Copy link
Contributor Author

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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
DlImageSampling::kNearestNeighbor, nullptr);
DlImageSampling::kNearestNeighbor, /*cullRect=*/nullptr);

Copy link
Contributor Author

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)};
Copy link
Member

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?

@gaaclarke
Copy link
Member

Goldens look reasonable to me too, nothing was obviously broken to me.

@flutter-dashboard
Copy link

Golden file changes are available for triage from new commit, Click here to view.

Changes reported for pull request #53398 at sha bef357e

@jonahwilliams jonahwilliams added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 17, 2024
@auto-submit auto-submit bot merged commit dec5f63 into flutter:main Jun 17, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 17, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 17, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 18, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Jun 18, 2024
…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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App e: impeller will affect goldens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants