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

Conversation

@bdero
Copy link
Member

@bdero bdero commented May 4, 2022

When SaveLayer is called, assign the new PaintPassDelegate to the actual subpass rather than the parent pass. This makes it so SaveLayer PaintPassDelegate configs won't get overridden by sibling SaveLayers in the same EntityPass.

Also fixed a problem I happened to notice where subpass coverage wasn't applying the savelayer bounds rect (causing coverage to be larger than necessary sometimes).

New Aiks playground AiksTest.SiblingSaveLayerBoundsAreRespected:

Before the fix, the three SaveLayers are drawn using the bounds of the last SaveLayer in the root EntityPass.
Screen Shot 2022-05-04 at 1 27 05 AM

After the fix, the bounds of each SaveLayer is respected.
Screen Shot 2022-05-04 at 1 02 08 AM

@bdero bdero merged commit 1b131cc into flutter:main May 4, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 4, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 4, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 4, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 4, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 4, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 5, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 5, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants