From 104b591553968d86377c112c68782c201720536d Mon Sep 17 00:00:00 2001 From: xiaowei guan <60122246+xiaowei-guan@users.noreply.github.com> Date: Tue, 1 Dec 2020 09:02:45 +0800 Subject: [PATCH] Fix launch failure in sleep mode (#4) The app fails to launch if the device is in sleep mode and the request for vsync fails (tdm_client_vblank_wait returning error as HW vblank is not available). To prevent it, we need to call tdm_client_vblank_set_enable_fake(vblank, enable_fake) by setting enable_fake == 1. --- shell/platform/tizen/tizen_vsync_waiter.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/shell/platform/tizen/tizen_vsync_waiter.cc b/shell/platform/tizen/tizen_vsync_waiter.cc index e2bfd74d82772..9ee480a1aff1c 100644 --- a/shell/platform/tizen/tizen_vsync_waiter.cc +++ b/shell/platform/tizen/tizen_vsync_waiter.cc @@ -85,6 +85,7 @@ bool TizenVsyncWaiter::CreateTDMVblank() { return false; } + tdm_client_vblank_set_enable_fake(vblank_, 1); return true; }