[iOS] Remove dead RasterThreadMerger plumbing from platform views#189753
Merged
Conversation
IOSExternalViewEmbedder::SupportsDynamicThreadMerging() returns false, so the raster thread merger is never engaged on iOS. This deletes two no-op overrides in FlutterPlatformViewsController: * `postPrerollActionWithThreadMerger:` ignores its merger argument and unconditionally returns PostPrerollResult::kSuccess, which is exactly the base-class default of ExternalViewEmbedder::PostPrerollAction. * `endFrameWithResubmit:threadMerger: has an empty body, matching the base-class default of ExternalViewEmbedder::EndFrame. Also deletes the IOSExternalViewEmbedder overrides that existed only to forward to them. We now fall back to the base-class defaults which were identical. BeginFrame is pure virtual, so we still need its empty override. This removes fml::RefPtr<fml::RasterThreadMerger> and flutter::PostPrerollResult from the ObjC embedding surface. This is pure no-op cleanup stemming from the fact that we now run only in thread-merged mode on iOS, and cleanup that makes an eventual migration to the embedder API easier. Issue: flutter#112232
Contributor
There was a problem hiding this comment.
Code Review
This pull request removes the PostPrerollAction and EndFrame methods from IOSExternalViewEmbedder, along with the corresponding postPrerollActionWithThreadMerger: and endFrameWithResubmit:threadMerger: methods from FlutterPlatformViewsController. I have no feedback to provide as there are no review comments.
Contributor
|
test-exempt: removing code |
This was referenced Jul 22, 2026
auto-submit Bot
pushed a commit
to flutter/packages
that referenced
this pull request
Jul 22, 2026
flutter/flutter@1ac2e82...2a2a79d 2026-07-22 [email protected] Clear cached directional focus history on a non-directional focus request (flutter/flutter#187957) 2026-07-22 [email protected] ci: Include root pubspec.yaml in pub cache key (flutter/flutter#189826) 2026-07-22 [email protected] Remove codecov badge from README (flutter/flutter#189728) 2026-07-22 [email protected] Clean android engine/embedding tests (flutter/flutter#189276) 2026-07-22 [email protected] Add barrierBuilder support to showDialog and showGeneralDialog (flutter/flutter#187992) 2026-07-22 [email protected] Fix Mockito dynamic agent loading warnings in Robolectric tests (flutter/flutter#189804) 2026-07-22 [email protected] [iOS] Remove dead RasterThreadMerger plumbing from platform views (flutter/flutter#189753) 2026-07-22 [email protected] Add OverlayPortal.overlayChildLayoutBuilder sample (flutter/flutter#188930) 2026-07-22 [email protected] Automate recurring tasks via workflows - localizations (flutter/flutter#189750) 2026-07-21 [email protected] [iOS] Remove dead parameters and no-op overrides (flutter/flutter#189754) 2026-07-21 [email protected] [iOS] Inject DisplayLinkManager into FlutterViewController (flutter/flutter#189764) 2026-07-21 [email protected] Support custom BoxBorder animation in BoxDecoration (flutter/flutter#186348) 2026-07-21 [email protected] Rename CpuArch.x86_64 to CpuArch.x64 (flutter/flutter#189478) 2026-07-21 [email protected] Roll Skia from 569534e9fa59 to 5e183e5aeac5 (3 revisions) (flutter/flutter#189795) 2026-07-21 [email protected] Roll Dart SDK from 3b2f5ad7718d to 1e65011ee004 (4 revisions) (flutter/flutter#189791) 2026-07-21 [email protected] Run delete-bot-branches.yaml on `pull_request_target` instead of `pull_request` so that we can access secrets. (flutter/flutter#189793) 2026-07-21 [email protected] Batch release directory correction (flutter/flutter#189738) 2026-07-21 [email protected] [flutter_test][Test cross imports] Move TestWidgetsApp to flutter_test (flutter/flutter#189435) 2026-07-21 [email protected] Fix null-deref/double-dispose in StretchingOverscrollIndicator (#189589) (flutter/flutter#189667) 2026-07-21 [email protected] Roll Packages from 611899b to 8260a1e (10 revisions) (flutter/flutter#189782) 2026-07-21 [email protected] [iOS] Inject DisplayLinkManager into FlutterMetalLayer (flutter/flutter#189752) 2026-07-21 [email protected] Derive the SkImage size used by ImageEncodingImpeller::ConvertDlImageToSkImage from the size of the underlying texture, not the size of the DlImage (flutter/flutter#189739) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: 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
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
IOSExternalViewEmbedder::SupportsDynamicThreadMerging() returns false, so the raster thread merger is never engaged on iOS.
This deletes two no-op overrides in FlutterPlatformViewsController:
postPrerollActionWithThreadMerger:ignores its merger argument and unconditionally returns PostPrerollResult::kSuccess, which is exactly the base-class default of ExternalViewEmbedder::PostPrerollAction.Also deletes the IOSExternalViewEmbedder overrides that existed only to forward to them. We now fall back to the base-class defaults which were identical. BeginFrame is pure virtual, so we still need its empty override. This removes fml::RefPtrfml::RasterThreadMerger and flutter::PostPrerollResult from the ObjC embedding surface.
This is pure no-op cleanup stemming from the fact that we now run only in thread-merged mode on iOS, and cleanup that makes an eventual migration to the embedder API easier.
No test changes since there are no semantic changes; covered by existing tests.
Issue: #112232
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.