Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DisplayList] Optimize ClipRRect and ClipPath to ClipOval when appropriate #54088

Merged

Conversation

flar
Copy link
Contributor

@flar flar commented Jul 24, 2024

Fixes: flutter/flutter#151850

Re-adding an optimization originally included in #53642 that detects when ClipRRect and ClipPath operations are actually ovals and redirects them to the ClipOval path during recording to save space and reduce the need for dispatchers to do the same detections and optimizations.

@flar
Copy link
Contributor Author

flar commented Jul 24, 2024

Since this change was originally part of a PR that had to be reverted, this (more focused) PR will be put through the "Large Scale Scuba Changes" process to prevent a large triage operation upstream.

Copy link
Member

@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

Please let me know if you need anything for the LSSC.

@flar flar force-pushed the displaylist-optimize-cliprrect-clippath branch from 449d50e to 706f4a3 Compare July 26, 2024 00:39
@flar flar force-pushed the displaylist-optimize-cliprrect-clippath branch from 706f4a3 to f65ca5f Compare July 26, 2024 00:42
@flar
Copy link
Contributor Author

flar commented Jul 26, 2024

A dry run of this PR into upstream tests didn't show any of the breakages from the original PR. It's possible that we got something wrong in the dry run, but I'm going to merge this speculatively to find out. It should be a simple revert if we find otherwise...

@flar flar added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 26, 2024
@auto-submit auto-submit bot merged commit e28f875 into flutter:main Jul 26, 2024
29 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 26, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Jul 26, 2024
…152388)

flutter/engine@354abf2...e28f875

2024-07-26 flar@google.com [DisplayList] Optimize ClipRRect and ClipPath to ClipOval when appropriate (flutter/engine#54088)
2024-07-26 darkwater124@gmail.com Set GLArea.has-alpha = true (flutter/engine#54053)

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 jonahwilliams@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://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
TytaniumDev pushed a commit to TytaniumDev/flutter that referenced this pull request Aug 7, 2024
…lutter#152388)

flutter/engine@354abf2...e28f875

2024-07-26 flar@google.com [DisplayList] Optimize ClipRRect and ClipPath to ClipOval when appropriate (flutter/engine#54088)
2024-07-26 darkwater124@gmail.com Set GLArea.has-alpha = true (flutter/engine#54053)

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 jonahwilliams@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://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
Buchimi pushed a commit to Buchimi/flutter that referenced this pull request Sep 2, 2024
…lutter#152388)

flutter/engine@354abf2...e28f875

2024-07-26 flar@google.com [DisplayList] Optimize ClipRRect and ClipPath to ClipOval when appropriate (flutter/engine#54088)
2024-07-26 darkwater124@gmail.com Set GLArea.has-alpha = true (flutter/engine#54053)

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 jonahwilliams@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://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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DisplayList] ClipPath/RRect do not recognize and optimize ovals
2 participants