Call RequestUpdateOnce in OnWindowShown() 91/208491/2
authorHeeyong Song <heeyong.song@samsung.com>
Tue, 25 Jun 2019 06:26:25 +0000 (15:26 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Wed, 3 Jul 2019 05:02:29 +0000 (14:02 +0900)
Rendering should be done when a window is shown.
But the Adaptor may be in the running state (when other windows are shown). So call RequestUpdateOnce() in that case.

Change-Id: I5c3725fd171c0d93fdfbf00362e239fb66716fb6

dali/internal/adaptor/common/adaptor-impl.cpp

index db49850..d1c1a5d 100755 (executable)
@@ -845,6 +845,13 @@ void Adaptor::OnWindowShown()
     // Force a render task
     RequestUpdateOnce();
   }
+  else if( RUNNING == mState )
+  {
+    // Force a render task
+    RequestUpdateOnce();
+
+    DALI_LOG_RELEASE_INFO( "Adaptor::OnWindowShown: Update requested.\n" );
+  }
   else
   {
     DALI_LOG_RELEASE_INFO( "Adaptor::OnWindowShown: Adaptor is not paused state.[%d]\n", mState );