提交 79d008ff 编写于 作者: M Michael Goderbauer 提交者: GitHub

Fix engine on iOS (#3871)

Related to https://github.com/flutter/engine/pull/3870.
上级 a64921e3
......@@ -62,7 +62,7 @@ class PlatformMessageResponseDarwin : public blink::PlatformMessageResponse {
UIStatusBarStyle _statusBarStyle;
blink::ViewportMetrics _viewportMetrics;
shell::TouchMapper _touchMapper;
std::unique_ptr<shell::PlatformViewIOS> _platformView;
std::shared_ptr<shell::PlatformViewIOS> _platformView;
fml::scoped_nsprotocol<FlutterPlatformPlugin*> _platformPlugin;
fml::scoped_nsprotocol<FlutterTextInputPlugin*> _textInputPlugin;
fml::scoped_nsprotocol<FlutterMethodChannel*> _localizationChannel;
......@@ -119,7 +119,7 @@ class PlatformMessageResponseDarwin : public blink::PlatformMessageResponse {
_orientationPreferences = UIInterfaceOrientationMaskAll;
_statusBarStyle = UIStatusBarStyleDefault;
_platformView =
std::make_unique<shell::PlatformViewIOS>(reinterpret_cast<CAEAGLLayer*>(self.view.layer));
std::make_shared<shell::PlatformViewIOS>(reinterpret_cast<CAEAGLLayer*>(self.view.layer));
_platformView->Attach();
_platformView->SetupResourceContextOnIOThread();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册