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

[macOS] Extract more PlatformViewMutator code #42361

Merged
merged 1 commit into from May 26, 2023

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
27 checks passed
@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 skia-flutter-autoroll@skia.org Roll Dart SDK from 14162b5f5a1a to e0caea366989 (3 revisions) (flutter/engine#42376)
2023-05-26 skia-flutter-autoroll@skia.org Roll Fuchsia Mac SDK from c6-zqvlx2YtyGwGzJ... to f94C9eArSWIUjOTM6... (flutter/engine#42367)
2023-05-26 gspencergoog@users.noreply.github.com Adding app lifecycle notification for macOS and Linux, add `hidden` state. (flutter/engine#40542)
2023-05-26 skia-flutter-autoroll@skia.org Roll Dart SDK from bc65e3f5efa0 to 14162b5f5a1a (3 revisions) (flutter/engine#42366)
2023-05-26 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from 9aZkaKhX4GslPUnbX... to 2-z8tqXe3ZkKqeb3e... (flutter/engine#42365)
2023-05-26 54558023+keyonghan@users.noreply.github.com Fix ci yaml roller caused by incorrect format (flutter/engine#42364)
2023-05-26 chris@bracken.jp [macOS] Extract more PlatformViewMutator code (flutter/engine#42361)
2023-05-26 zanderso@users.noreply.github.com Enable bugprone-unchecked-optional-access, disable in files with warnings (flutter/engine#42359)
2023-05-26 skia-flutter-autoroll@skia.org 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 bdero@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
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 needs tests platform-macos
Projects
None yet
3 participants