+ for( SceneHolderPtr window : mWindows )
+ {
+ if ( window->IsVisible() )
+ {
+ allWindowsHidden = false;
+ break;
+ }
+ }
+
+ // Only pause the adaptor when all the windows are hidden
+ if( allWindowsHidden )
+ {
+ if( mState == RUNNING )
+ {
+ Pause();
+
+ // Adaptor cannot be resumed until any window is shown
+ mState = PAUSED_WHILE_HIDDEN;
+ }
+ else // mState is READY
+ {
+ // Pause the adaptor after the state gets RUNNING
+ mState = PAUSED_WHILE_INITIALIZING;
+ }
+ }
+ else
+ {
+ DALI_LOG_RELEASE_INFO( "Adaptor::OnWindowHidden: Some windows are shown. Don't pause adaptor.\n" );
+ }