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

Conversation

flar
Copy link
Contributor

@flar flar commented Jun 5, 2023

This reverts commit 2553def.

Fixes flutter/flutter#125338

This PR should fix the blendmode/color analysis that caused failures for #41463 as well as the bounds failures for inverted rectangles that caused failures for #42330 (incorporating the fix from #42556).

The description from the previous PR updated with the new name of the DL property:


This optimization avoids recording unnecessary render operations that will not affect the output and also eliminates the need for "draw detection" mechanisms like DlOpSpy and CanvasSpy by remembering if any non-transparent operations were included. The DlOpSpy unit tests were updated to check if the results from that object match the new DisplayList::modifies_transparent_black() method.

Fixes flutter/flutter#125338

In addition, this change will unblock some other Issues:

@flar
Copy link
Contributor Author

flar commented Jun 6, 2023

The only change in this PR compared to the previous version (#42330) is the 2-line change adding 2 calls to SkRect::makeSorted when the DisplayListBuilder::drawRect and DisplayListBuilder::drawOval methods make the method call to AccumulateOpBounds, as inherited from the "unordered rectangles" bug fix PR.

(That change does not appear in a separate commit because it had to be conflict-merged with the other PR when pulling forward.)

@flar flar requested a review from jonahwilliams June 6, 2023 20:45
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

@zanderso
Copy link
Member

zanderso commented Jun 8, 2023

From PR triage: This is waiting on the Engine rolls to get unblocked to help isolate any issues rolling to the framework or g3.

@flar flar added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 11, 2023
@auto-submit auto-submit bot merged commit 9bb0a59 into flutter:main Jun 11, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 11, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Jun 11, 2023
…128673)

flutter/engine@788437e...9bb0a59

2023-06-11 flar@google.com Reland "add non-rendering operation culling to DisplayListBuilder" (#41463) (flutter/engine#42584)

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 jacksongardner@google.com,rmistry@google.com,zra@google.com 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
bdero added a commit that referenced this pull request Jun 30, 2023
bdero added a commit that referenced this pull request Jun 30, 2023
…lder" (#41463)" (#43358)

Reverts #42584. (Thanks to @jonahwilliams for bisecting)

With this change, layers are getting clipped incorrectly when rendering
platform views in Wondrous.
kjlubick pushed a commit to kjlubick/engine that referenced this pull request Jul 14, 2023
…lder" (flutter#41463)" (flutter#43358)

Reverts flutter#42584. (Thanks to @jonahwilliams for bisecting)

With this change, layers are getting clipped incorrectly when rendering
platform views in Wondrous.
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
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[DisplayList] Improve DisplayList detection of non-operations
3 participants