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

Conversation

@harryterkelsen
Copy link
Contributor

@harryterkelsen harryterkelsen commented Oct 8, 2024

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:
Screenshot 2024-10-08 at 11 00 14 AM

AFTER:
Screenshot 2024-10-08 at 11 06 22 AM

BEFORE:
failing_opacity

AFTER:
working_opacity

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@github-actions github-actions bot added the platform-web Code specifically for the web engine label Oct 8, 2024
@harryterkelsen harryterkelsen requested a review from yjbanov October 8, 2024 20:39
Copy link
Contributor

@yjbanov yjbanov left a comment

Choose a reason for hiding this comment

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

lgtm

@harryterkelsen
Copy link
Contributor Author

@eyebrowsoffire a similar fix may be needed in skwasm since the screenshot golden in skwasm is clipping

@harryterkelsen
Copy link
Contributor Author

mac_unopt tests seem super flaky

@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 #55751 at sha 0d00567

@harryterkelsen harryterkelsen added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 8, 2024
@auto-submit auto-submit bot merged commit 2d0eac0 into flutter:main Oct 8, 2024
31 checks passed
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:
![Screenshot 2024-10-08 at 11 00 14�AM](https://github.com/user-attachments/assets/cf4c6296-7730-4db6-96f6-e22f32e28d94)

AFTER:
![Screenshot 2024-10-08 at 11 06 22�AM](https://github.com/user-attachments/assets/6a680e2c-23d0-41e2-9de5-1c9667a785ab)

BEFORE:
![failing_opacity](https://github.com/user-attachments/assets/d8acf075-c92d-4f8a-aa1a-476f46f1c931)

AFTER:
![working_opacity](https://github.com/user-attachments/assets/3e589deb-d8b6-4466-9e19-95daff870bfb)

[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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants