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

[Impeller] Limit subpass textures and backdrop blurs to the current clip #42039

Merged
merged 2 commits into from
May 15, 2023

Conversation

bdero
Copy link
Member

@bdero bdero commented May 15, 2023

Part of flutter/flutter#126696.

  • Generalize the FilterContents coverage hint as a Contents property.
  • Incorporates the stencil coverage when creating subpass textures.
  • Set a coverage hint for backdrop filters.
  • Incorporate the coverage hint in the 2-pass Gaussian blur.

New backdrop blur playground:

Screen.Recording.2023-05-15.at.5.59.10.AM.mov

Frame capture showing the reduced pass sizes:

Screen.Recording.2023-05-15.at.6.05.21.AM.mov

@bdero bdero self-assigned this May 15, 2023
@bdero bdero force-pushed the bdero/backdrop-blur-clip branch from e55e686 to e0cc2c7 Compare May 15, 2023 13:23
@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 #42039 at sha e0cc2c7

Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

Do you have additionally follow up work for this already scoped out?

@bdero
Copy link
Member Author

bdero commented May 15, 2023

Yes, I'm planning the following assuming this one sticks without issues:

  1. Incorporate the coverage hint in all FilterContents.
  2. Supply coverage hint to all filters, not just backdrop filters.

@bdero bdero merged commit 75c60e6 into flutter:main May 15, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 15, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request May 15, 2023
…126876)

flutter/engine@00f20fb...027ca79

2023-05-15 [email protected] Use release_build and os dimension consistently. (flutter/engine#42012)
2023-05-15 [email protected] [Impeller] Add interactive DrawPaint blend test (flutter/engine#42031)
2023-05-15 [email protected] [Impeller] Limit subpass textures and backdrop blurs to the current clip (flutter/engine#42039)
2023-05-15 [email protected] Roll Dart SDK from c302a0252785 to d2b2ac829842 (1 revision) (flutter/engine#42051)
2023-05-15 [email protected] Upload xcresults to LUCI cloud storage (flutter/engine#41647)

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://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@chinmaygarde
Copy link
Member

chinmaygarde commented May 22, 2023

We aren't going to cherry pick this due to its size. cc @bdero @jonahwilliams

CaseyHillers pushed a commit to CaseyHillers/flutter that referenced this pull request May 24, 2023
…lutter#126876)

flutter/engine@00f20fb...027ca79

2023-05-15 [email protected] Use release_build and os dimension consistently. (flutter/engine#42012)
2023-05-15 [email protected] [Impeller] Add interactive DrawPaint blend test (flutter/engine#42031)
2023-05-15 [email protected] [Impeller] Limit subpass textures and backdrop blurs to the current clip (flutter/engine#42039)
2023-05-15 [email protected] Roll Dart SDK from c302a0252785 to d2b2ac829842 (1 revision) (flutter/engine#42051)
2023-05-15 [email protected] Upload xcresults to LUCI cloud storage (flutter/engine#41647)

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://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

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.
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants