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

[Impeller] Apply some recent color filter fixes to BlendFilterContents::CreateForegroundAdvancedBlend #55470

Merged
merged 4 commits into from
Sep 27, 2024

Conversation

jason-simmons
Copy link
Member

Some recent changes affecting color filters (#55411, #55448) need to be done for both Porter-Duff and advanced blend modes

…s::CreateForegroundAdvancedBlend

Some recent changes affecting color filters (flutter#55411, flutter#55448) need to be done for both Porter-Duff and advanced blend modes
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.

The code looks good to me and are reasonable. The changes to the tests haven't produced any golden changes though so I don't think we are accurately reproducing the problem that this fixes. Did you see any difference locally?

@jason-simmons
Copy link
Member Author

This issue reproduces locally on a Moto G4 using the GLES back end, and the fix has been verified on that platform.

This code path only applies to devices that do not support framebuffer fetch, causing BlendFilterContents::RenderFilter to call CreateForegroundAdvancedBlend. I don't know whether any of the test environments produce goldens without framebuffer fetch.

@gaaclarke
Copy link
Member

This code path only applies to devices that do not support framebuffer fetch, causing

Ahh okay. Thanks for remembering that. We can artificially fall back to non-freambuffer fetch support by mocking out the capabilities. We've done it in the past in another test. I'll see if I can find it. So, you'd just duplicate this test, then force it to do the fallback by mocking out the capabilites.

@gaaclarke
Copy link
Member

Here's how we did it in the past to force non-decal sampling support:

std::shared_ptr<const Capabilities> old_capabilities =

@jason-simmons
Copy link
Member Author

Added the suggested test - PTAL

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, thanks jason

@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 #55470 at sha c0de581

@jason-simmons jason-simmons added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 27, 2024
@auto-submit auto-submit bot merged commit 9c8e5cb into flutter:main Sep 27, 2024
33 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 27, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 28, 2024
…155857)

flutter/engine@f9e4ed2...9c8e5cb

2024-09-27 [email protected] [Impeller] Apply some recent color filter fixes to BlendFilterContents::CreateForegroundAdvancedBlend (flutter/engine#55470)

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] 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
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Oct 1, 2024
…lutter#155857)

flutter/engine@f9e4ed2...9c8e5cb

2024-09-27 [email protected] [Impeller] Apply some recent color filter fixes to BlendFilterContents::CreateForegroundAdvancedBlend (flutter/engine#55470)

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] 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