[4.0] Add logs when adaptor is paused or resumed 76/166776/2
authorHeeyong Song <heeyong.song@samsung.com>
Fri, 12 Jan 2018 00:51:33 +0000 (09:51 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Fri, 12 Jan 2018 04:20:09 +0000 (04:20 +0000)
Change-Id: I9885b8e28cdaa1cfd0fb1b27ffc5285847442046

adaptors/common/adaptor-impl.cpp
adaptors/common/application-impl.cpp
adaptors/ecore/wayland/window-impl-ecore-wl.cpp

index ff2479b..1c220cd 100644 (file)
@@ -328,6 +328,8 @@ void Adaptor::Start()
 // Dali::Internal::Adaptor::Adaptor::Pause
 void Adaptor::Pause()
 {
+  DALI_LOG_RELEASE_INFO( "Adaptor::Pause: mState [%d]\n", mState );
+
   // Only pause the adaptor if we're actually running.
   if( RUNNING == mState )
   {
@@ -354,6 +356,8 @@ void Adaptor::Pause()
 // Dali::Internal::Adaptor::Adaptor::Resume
 void Adaptor::Resume()
 {
+  DALI_LOG_RELEASE_INFO( "Adaptor::Resume: mState [%d]\n", mState );
+
   // Only resume the adaptor if we are in the suspended state.
   if( PAUSED == mState )
   {
@@ -739,6 +743,8 @@ void Adaptor::RequestProcessEventsOnIdle( bool forceProcess )
 
 void Adaptor::OnWindowShown()
 {
+  DALI_LOG_RELEASE_INFO( "Adaptor::OnWindowShown: mState [%d]\n", mState );
+
   if ( PAUSED_WHILE_HIDDEN == mState )
   {
     // Adaptor can now be resumed
@@ -753,6 +759,8 @@ void Adaptor::OnWindowShown()
 
 void Adaptor::OnWindowHidden()
 {
+  DALI_LOG_RELEASE_INFO( "Adaptor::OnWindowHidden: mState [%d]\n", mState );
+
   if ( RUNNING == mState )
   {
     Pause();
index dcbce52..ebbbfa0 100644 (file)
@@ -298,6 +298,8 @@ void Application::OnTerminate()
 
 void Application::OnPause()
 {
+  DALI_LOG_RELEASE_INFO( "Application::OnPause\n" );
+
   // A DALi app should handle Pause/Resume events.
   // DALi just delivers the framework Pause event to the application, but not actually pause DALi core.
   // Pausing DALi core only occurs on the Window Hidden framework event
@@ -307,6 +309,8 @@ void Application::OnPause()
 
 void Application::OnResume()
 {
+  DALI_LOG_RELEASE_INFO( "Application::OnResume\n" );
+
   // Emit the signal first so the application can queue any messages before we do an update/render
   // This ensures we do not just redraw the last frame before pausing if that's not required
   Dali::Application application(this);
index ca805b5..b3343f8 100644 (file)
@@ -164,7 +164,7 @@ struct Window::EventHandler
           {
             observer->OnWindowHidden();
           }
-          DALI_LOG_RELEASE_INFO( "Window (%p) Iconified\n", handler->mEcoreWindow);
+          DALI_LOG_RELEASE_INFO( "EcoreEventWindowIconifyStateChanged: Iconified, mVisible [%d]\n", handler->mWindow->mVisible );
         }
         else
         {
@@ -173,7 +173,7 @@ struct Window::EventHandler
           {
             observer->OnWindowShown();
           }
-          DALI_LOG_RELEASE_INFO( "Window (%p) Deiconified\n", handler->mEcoreWindow );
+          DALI_LOG_RELEASE_INFO( "EcoreEventWindowIconifyStateChanged: Deiconified, mVisible [%d]\n", handler->mWindow->mVisible );
         }
         handled = ECORE_CALLBACK_DONE;
       }
@@ -926,13 +926,14 @@ void Window::Show()
   mVisible = true;
   ecore_wl_window_show( mEventHandler->mEcoreWindow );
 
+  DALI_LOG_RELEASE_INFO( "Window::Show: mIconified [%d]\n", mIconified );
+
   if( !mIconified )
   {
     if( mAdaptor )
     {
       WindowVisibilityObserver* observer( mAdaptor );
       observer->OnWindowShown();
-      DALI_LOG_RELEASE_INFO( "Window (%p) ::Show() \n", mEventHandler->mEcoreWindow);
     }
   }
 }
@@ -942,13 +943,14 @@ void Window::Hide()
   mVisible = false;
   ecore_wl_window_hide( mEventHandler->mEcoreWindow );
 
+  DALI_LOG_RELEASE_INFO( "Window::Hide: mIconified [%d]\n", mIconified );
+
   if( !mIconified )
   {
     if( mAdaptor )
     {
       WindowVisibilityObserver* observer( mAdaptor );
       observer->OnWindowHidden();
-      DALI_LOG_RELEASE_INFO( "Window (%p) ::Hide() \n", mEventHandler->mEcoreWindow);
     }
   }
 }