This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Migrate PlatformViewIOS to ARC#55672
Merged
auto-submit[bot] merged 3 commits intoflutter:mainfrom Oct 28, 2024
cbracken:arc-platformviewios
Merged
Migrate PlatformViewIOS to ARC#55672auto-submit[bot] merged 3 commits intoflutter:mainfrom cbracken:arc-platformviewios
auto-submit[bot] merged 3 commits intoflutter:mainfrom
cbracken:arc-platformviewios
Conversation
cbracken
commented
Oct 5, 2024
| std::shared_ptr<IOSContext> ios_context_; | ||
| const std::shared_ptr<PlatformViewsController>& platform_views_controller_; | ||
| AccessibilityBridgeManager accessibility_bridge_; | ||
| fml::scoped_nsprotocol<FlutterTextInputPlugin*> text_input_plugin_; |
Member
Author
There was a problem hiding this comment.
This... wasn't used anywhere at all.
jmagman
reviewed
Oct 5, 2024
| ] | ||
| } | ||
|
|
||
| source_set("flutter_framework_source") { |
| auto ca_layer = fml::scoped_nsobject<CALayer>{[[flutter_view layer] retain]}; | ||
| FML_DCHECK(owner_controller_.isViewLoaded) << "FlutterViewController's view should be loaded " | ||
| "before attaching to PlatformViewIOS."; | ||
| FlutterView* flutter_view = static_cast<FlutterView*>(owner_controller_.view); |
Member
Author
There was a problem hiding this comment.
Yes, unfortunately since owner_controller_.view returns a UIView*.
jmagman
reviewed
Oct 5, 2024
Contributor
|
Is this blocked? |
Member
Author
|
This is queued up behind #55669, which should land today. |
Member
Author
|
Alright this is ready for review whenever people are ready to give it a look. We're finally at the end (compile/linker-wise), folks! |
stuartmorgan-g
approved these changes
Oct 28, 2024
Contributor
stuartmorgan-g
left a comment
There was a problem hiding this comment.
LGTM once the unrelated TODO is restored.
Migrates PlatformViewIOS from manual reference counting to ARC. Eliminates use of scoped_nsobject, scoped_nsprotocol, and WeakNSObject. Since this is the last non-ARC file in `flutter_framework_source`, this also eliminates the `flutter_framework_source` target, then also renames the `flutter_framework_source_arc` target to `flutter_framework_source` since... it's ALL ARC. No semantic changes, therefore no changes to tests. Issue: flutter/flutter#137801
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Oct 28, 2024
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Oct 28, 2024
auto-submit bot
pushed a commit
to flutter/flutter
that referenced
this pull request
Oct 28, 2024
flutter/engine@70671ba...ed587dc 2024-10-28 skia-flutter-autoroll@skia.org Roll Dart SDK from 69b50768d733 to c9180e9de9e8 (1 revision) (flutter/engine#56180) 2024-10-28 jonahwilliams@google.com [Impeller] fix initial layout for loadOp load and incorrect usage of host visible textures. (flutter/engine#56148) 2024-10-28 skia-flutter-autoroll@skia.org Roll Skia from 21035cd95b68 to bdd225968dab (1 revision) (flutter/engine#56178) 2024-10-28 chris@bracken.jp iOS/macOS: migrate darwin/common to ARC (flutter/engine#56155) 2024-10-28 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Pin local_engine mac builds to arm64 (#56172)" (flutter/engine#56179) 2024-10-28 chris@bracken.jp Migrate PlatformViewIOS to ARC (flutter/engine#55672) 2024-10-28 skia-flutter-autoroll@skia.org Roll Skia from 35ad4e89212f to 21035cd95b68 (1 revision) (flutter/engine#56176) 2024-10-28 aam@google.com Roll buildroot to pick up revert of debugging gen_snapshot prints (flutter/engine#56175) 2024-10-28 zanderso@users.noreply.github.com Pin local_engine mac builds to arm64 (flutter/engine#56172) 2024-10-28 zanderso@users.noreply.github.com Switch some mac_unopt tests from intel to arm hosts (flutter/engine#55882) 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 codefu@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
Migrates PlatformViewIOS from manual reference counting to ARC. Eliminates use of scoped_nsobject, scoped_nsprotocol, and WeakNSObject. Since this is the last non-ARC file in `flutter_framework_source`, this also eliminates the `flutter_framework_source` target, then also renames the `flutter_framework_source_arc` target to `flutter_framework_source` since... it's ALL ARC. No semantic changes, therefore no semantic changes to tests. Issue: flutter#137801 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Migrates PlatformViewIOS from manual reference counting to ARC. Eliminates use of scoped_nsobject, scoped_nsprotocol, and WeakNSObject.
Since this is the last non-ARC file in
flutter_framework_source, this also eliminates theflutter_framework_sourcetarget, then also renames theflutter_framework_source_arctarget toflutter_framework_sourcesince... it's ALL ARC.No semantic changes, therefore no semantic changes to tests.
Issue: flutter/flutter#137801
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.