From aeaefbaddf3144abf8fb5edd0ebddf211248f0f1 Mon Sep 17 00:00:00 2001 From: xster Date: Thu, 20 Jul 2017 10:54:08 -0700 Subject: [PATCH] Always schedule a frame on app did become active (#3910) --- shell/common/engine.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shell/common/engine.cc b/shell/common/engine.cc index 6be1ac4d9..9f15f3397 100644 --- a/shell/common/engine.cc +++ b/shell/common/engine.cc @@ -327,6 +327,12 @@ bool Engine::HandleLifecyclePlatformMessage(blink::PlatformMessage* message) { activity_running_ = true; 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; } -- GitLab