This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
[canvaskit] Fix incorrect clipping with Opacity scene layer #55751
Merged
auto-submit
merged 2 commits into
flutter:main
from
harryterkelsen:canvaskit-opacity-layer-bounds-fix
Oct 8, 2024
Merged
[canvaskit] Fix incorrect clipping with Opacity scene layer #55751
auto-submit
merged 2 commits into
flutter:main
from
harryterkelsen:canvaskit-opacity-layer-bounds-fix
Oct 8, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yjbanov
approved these changes
Oct 8, 2024
Contributor
yjbanov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
|
@eyebrowsoffire a similar fix may be needed in skwasm since the screenshot golden in skwasm is clipping |
Contributor
Author
|
mac_unopt tests seem super flaky |
|
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. |
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Oct 9, 2024
zanderso
pushed a commit
to flutter/flutter
that referenced
this pull request
Oct 9, 2024
…156478) flutter/engine@db0c0b7...4a97943 2024-10-09 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from TlU-It6X_ZLrNqMjW... to xGr5ZkxX3CajAY1xu... (flutter/engine#55770) 2024-10-09 skia-flutter-autoroll@skia.org Roll Skia from a077e78e531f to e0bb55353b27 (3 revisions) (flutter/engine#55768) 2024-10-09 chinmaygarde@google.com [Impeller] libImpeller: Allow fetching OpenGL texture handle. (flutter/engine#55753) 2024-10-09 skia-flutter-autoroll@skia.org Roll Fuchsia Test Scripts from jCde9sMKJ3YAdG2DH... to _fkA2GjLQH4bc_n2p... (flutter/engine#55762) 2024-10-09 skia-flutter-autoroll@skia.org Roll Skia from 701b6e4b4bc4 to a077e78e531f (3 revisions) (flutter/engine#55761) 2024-10-09 matanlurey@users.noreply.github.com Release`onTrimMemoryListener` after `ImageReaderSurfaceProducer` released. (flutter/engine#55760) 2024-10-09 bdero@google.com [Flutter GPU] Get the GLES backend/Windows working. (flutter/engine#55694) 2024-10-08 1961493+harryterkelsen@users.noreply.github.com [canvaskit] Fix incorrect clipping with Opacity scene layer (flutter/engine#55751) 2024-10-08 matanlurey@users.noreply.github.com Refactor multi-file build parsing into a single `BuildPlan` class. (flutter/engine#55720) Also rolling transitive DEPS: fuchsia/sdk/core/linux-amd64 from TlU-It6X_ZLr to xGr5ZkxX3Caj 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,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
nick9822
pushed a commit
to nick9822/flutter
that referenced
this pull request
Dec 18, 2024
…engine#55751) Fixes opacity layer incorrectly clipping its children when there are complex transforms applied to them. Since the opacity saveLayer only applies to children which actually draw, it doesn't need to have tight bounds anyways. Pre-requisite for re-enabling tests here: flutter#110785 BEFORE:  AFTER:  BEFORE:  AFTER:  [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
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
platform-web
Code specifically for the web engine
will affect goldens
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Fixes opacity layer incorrectly clipping its children when there are complex transforms applied to them. Since the opacity saveLayer only applies to children which actually draw, it doesn't need to have tight bounds anyways.
Pre-requisite for re-enabling tests here: flutter/flutter#110785
BEFORE:

AFTER:

BEFORE:

AFTER:

Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.