提交 aeaefbad 编写于 作者: X xster 提交者: GitHub

Always schedule a frame on app did become active (#3910)

上级 5fcfb995
...@@ -327,6 +327,12 @@ bool Engine::HandleLifecyclePlatformMessage(blink::PlatformMessage* message) { ...@@ -327,6 +327,12 @@ bool Engine::HandleLifecyclePlatformMessage(blink::PlatformMessage* message) {
activity_running_ = true; activity_running_ = true;
StartAnimatorIfPossible(); StartAnimatorIfPossible();
} }
// Always schedule a frame when the app does become active as per API
// recommendation https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1622956-applicationdidbecomeactive?language=objc
if (state == "AppLifecycleState.resumed" && have_surface_) {
ScheduleFrame();
}
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册