Fix the issue that splash screen is displayed late 65/212265/3
authorjaekuk, lee <juku1999@samsung.com>
Mon, 19 Aug 2019 12:31:37 +0000 (21:31 +0900)
committerjaekuk lee <juku1999@samsung.com>
Tue, 20 Aug 2019 01:20:58 +0000 (01:20 +0000)
Due to 2sec delay timer, splash screen runs after 2sec.
Fix it for splash screen to be displayed without delay
if splash screen is active.

Ref : https://review.tizen.org/gerrit/212258

Change-Id: I70b5e506f3e428535d0cdba2ef0065e850a14cde
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
runtime/browser/splash_screen.h
runtime/browser/web_application.cc

index bde9894258586268e70388f989e0730b3e94cf4b..dc43fb3146dfb983d3fed9fb29f7d654eab6f3b6 100755 (executable)
@@ -39,6 +39,7 @@ class SplashScreen {
                std::shared_ptr<const wgt::parse::LaunchScreenInfo> ss_info,
                const std::string& app_path);
   void HideSplashScreen(HideReason reason);
+  bool IsActive() const { return is_active_; }
 
  private:
   std::pair<int, int> GetDimensions(NativeWindow* window);
index 7a51b7be86f73ea68151c76d43d300d257064a62..fc96f42794628873d8988be7cc588990ab56a3ce 100755 (executable)
@@ -1567,9 +1567,13 @@ void WebApplication::OnUsermediaPermissionRequest(
 
 void WebApplication::SetTimeoutFirstFrameDelay() {
   LOGGER(DEBUG);
-  firstframe_delay_timer_ = ecore_timer_add(
-    FirstFrameDelayWaitTime,
-    FirstFrameDelayTimerCallback, this);
+  if(splash_screen_->IsActive()) {
+    FirstFrameDelayTimerCallback(this);
+  } else {
+    firstframe_delay_timer_ = ecore_timer_add(
+      FirstFrameDelayWaitTime,
+      FirstFrameDelayTimerCallback, this);
+  }
 }
 
 Eina_Bool WebApplication::FirstFrameDelayTimerCallback(void* data) {