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

[Impeller] fix plus blend mode in porterduff shader. #51792

Merged
merged 8 commits into from
Apr 2, 2024

Conversation

jonahwilliams
Copy link
Member

DrawAtlas already has the optimization in #51778 and so it is still rendering incorrectly with wide gamut.

@jonahwilliams
Copy link
Member Author

flutter_01

@jonahwilliams jonahwilliams requested a review from gaaclarke March 29, 2024 23:23
@jonahwilliams
Copy link
Member Author

After:

flutter_02

Note: I have no idea why the position changes some times, I think that is just a bug in the widget but 🤷‍♂️

@@ -1446,6 +1446,45 @@ TEST_P(EntityTest, DrawAtlasNoColor) {
ASSERT_TRUE(OpenPlaygroundHere(std::move(e)));
}

TEST_P(EntityTest, F16WideGamutDrawAtlasPlus) {
Copy link
Member

Choose a reason for hiding this comment

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

This isn't going to be wide gamut, the name of the test has to end with "WideGamut". Can you add an assert that it is applied like the other ones please.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@@ -1446,6 +1446,48 @@ TEST_P(EntityTest, DrawAtlasNoColor) {
ASSERT_TRUE(OpenPlaygroundHere(std::move(e)));
}

TEST_P(EntityTest, DrawAtlasPlusWideGamut) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Did I need to opt this into a golden somewhere?

Copy link
Member

Choose a reason for hiding this comment

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

Aiks unittests are the only ones that generate goldens.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ahh duh

@jonahwilliams jonahwilliams requested a review from gaaclarke April 2, 2024 17:43
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!

@jonahwilliams jonahwilliams added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 2, 2024
@auto-submit auto-submit bot merged commit ff2b811 into flutter:main Apr 2, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 2, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Apr 2, 2024
…146157)

flutter/engine@5bf8b94...c60b00a

2024-04-02 [email protected] Allow creating slimpeller engine variants. (flutter/engine#51824)
2024-04-02 [email protected] [Impeller] fix plus blend mode in porterduff shader. (flutter/engine#51792)

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants