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

Conversation

@cbracken
Copy link
Member

@cbracken cbracken commented May 26, 2023

This extracts an extra method from [FlutterMutatorView applyFlutterLayer:] to perform the final PlatformViewContainer and PlatformView re-nesting in the view stack, then apply transforms, and finally apply the outer axis-aligned master clip rect around the whole thing.

This is a refactoring for readability (primarily clearer parameterisation) and applies no semantic changes to the code. This is the last in a series of refactoring applied to this method.

Issue: flutter/flutter#124490

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 Hixie said 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.

This extracts an extra method from `[FlutterMutatorView
applyFlutterLayer:]` to perform the final PlatformViewContainer and
PlatformView re-nesting in the view stack, then apply transforms, and
finally apply the outer axis-aligned master clip rect around the whole
thing.

This is a refactoring for readability (primarily clearer
parameterisation) and applies no semantic changes to the code.

Issue: flutter/flutter#124490
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

@Hixie
Copy link
Contributor

Hixie commented May 26, 2023

test-exempt: code refactor with no semantic change

@cbracken cbracken added the autosubmit Merge PR when tree becomes green via auto submit App label May 26, 2023
@auto-submit auto-submit bot merged commit adfb3f1 into flutter:main May 26, 2023
@cbracken cbracken deleted the platformview-mutators-extract branch May 26, 2023 23:03
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 26, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 27, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request May 27, 2023
…127738)

flutter/engine@795db50...3426cb8

2023-05-27 [email protected] Roll Dart SDK from 14162b5f5a1a to e0caea366989 (3 revisions) (flutter/engine#42376)
2023-05-26 [email protected] Roll Fuchsia Mac SDK from c6-zqvlx2YtyGwGzJ... to f94C9eArSWIUjOTM6... (flutter/engine#42367)
2023-05-26 [email protected] Adding app lifecycle notification for macOS and Linux, add `hidden` state. (flutter/engine#40542)
2023-05-26 [email protected] Roll Dart SDK from bc65e3f5efa0 to 14162b5f5a1a (3 revisions) (flutter/engine#42366)
2023-05-26 [email protected] Roll Fuchsia Linux SDK from 9aZkaKhX4GslPUnbX... to 2-z8tqXe3ZkKqeb3e... (flutter/engine#42365)
2023-05-26 [email protected] Fix ci yaml roller caused by incorrect format (flutter/engine#42364)
2023-05-26 [email protected] [macOS] Extract more PlatformViewMutator code (flutter/engine#42361)
2023-05-26 [email protected] Enable bugprone-unchecked-optional-access, disable in files with warnings (flutter/engine#42359)
2023-05-26 [email protected] Roll Skia from ac897edeb16a to 8d475ae01f09 (9 revisions) (flutter/engine#42363)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from 9aZkaKhX4Gsl to 2-z8tqXe3ZkK
  fuchsia/sdk/core/mac-amd64 from c6-zqvlx2Yty to f94C9eArSWIU

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 [email protected],[email protected],[email protected] 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
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 needs tests platform-macos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants