|
41 | 41 | #import "flutter/shell/platform/darwin/ios/framework/Source/profiler_metrics_ios.h" |
42 | 42 | #import "flutter/shell/platform/darwin/ios/framework/Source/vsync_waiter_ios.h" |
43 | 43 | #import "flutter/shell/platform/darwin/ios/platform_view_ios.h" |
44 | | -#import "flutter/shell/platform/darwin/ios/rendering_api_selection.h" |
45 | 44 | #include "flutter/shell/profiling/sampling_profiler.h" |
46 | 45 |
|
47 | 46 | FLUTTER_ASSERT_ARC |
@@ -200,7 +199,6 @@ @implementation FlutterEngine { |
200 | 199 | // -destroyContext must wait for this group to drain before it is safe to free _shell. |
201 | 200 | dispatch_group_t _firstFrameWaiters; |
202 | 201 |
|
203 | | - flutter::IOSRenderingAPI _renderingApi; |
204 | 202 | std::shared_ptr<flutter::SamplingProfiler> _profiler; |
205 | 203 |
|
206 | 204 | FlutterBinaryMessengerRelay* _binaryMessenger; |
@@ -343,14 +341,9 @@ - (void)sceneWillConnect:(NSNotification*)notification API_AVAILABLE(ios(13.0)) |
343 | 341 | } |
344 | 342 |
|
345 | 343 | - (void)recreatePlatformViewsController { |
346 | | - _renderingApi = flutter::GetRenderingAPIForProcess(); |
347 | 344 | _platformViewsController = [[FlutterPlatformViewsController alloc] init]; |
348 | 345 | } |
349 | 346 |
|
350 | | -- (flutter::IOSRenderingAPI)platformViewsRenderingAPI { |
351 | | - return _renderingApi; |
352 | | -} |
353 | | - |
354 | 347 | - (void)dealloc { |
355 | 348 | /// Notify plugins of dealloc. This should happen first in dealloc since the |
356 | 349 | /// plugins may be talking to things like the binaryMessenger. |
@@ -926,9 +919,9 @@ - (BOOL)createShell:(NSString*)entrypoint |
926 | 919 | [strongSelf recreatePlatformViewsController]; |
927 | 920 | strongSelf.platformViewsController.taskRunner = [[FlutterFMLTaskRunner alloc] |
928 | 921 | initWithTaskRunner:shell.GetTaskRunners().GetPlatformTaskRunner()]; |
929 | | - return std::make_unique<flutter::PlatformViewIOS>( |
930 | | - shell, strongSelf->_renderingApi, strongSelf.platformViewsController, |
931 | | - shell.GetTaskRunners(), shell.GetIsGpuDisabledSyncSwitch()); |
| 922 | + return std::make_unique<flutter::PlatformViewIOS>(shell, strongSelf.platformViewsController, |
| 923 | + shell.GetTaskRunners(), |
| 924 | + shell.GetIsGpuDisabledSyncSwitch()); |
932 | 925 | }; |
933 | 926 |
|
934 | 927 | flutter::Shell::CreateCallback<flutter::Rasterizer> on_create_rasterizer = |
|
0 commit comments