X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fadaptor%2Fcommon%2Fadaptor-impl.cpp;h=50d63ec58b3cd0229a3e979097cc9af2a819d86f;hb=c986e42cc14e021d9cd0070d9083c8ec453aabc4;hp=3416ed8f2eeb3a7fee7577d3e7971680570f9a34;hpb=ae5ebea9bccaf7db4da5b0fd76b628dcf9f1fb46;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/adaptor/common/adaptor-impl.cpp b/dali/internal/adaptor/common/adaptor-impl.cpp index 3416ed8..50d63ec 100755 --- a/dali/internal/adaptor/common/adaptor-impl.cpp +++ b/dali/internal/adaptor/common/adaptor-impl.cpp @@ -41,6 +41,7 @@ #include #include #include +#include #include #include // Temporary until Core is abstracted @@ -397,7 +398,7 @@ void Adaptor::Start() Dali::TizenPlatform::ImageLoader::SetMaxTextureSize( mGLES.GetMaxTextureSize() ); std::string systemCachePath = GetSystemCachePath(); - if( systemCachePath.c_str() != NULL ) + if( ! systemCachePath.empty() ) { const int dir_err = system( std::string( "mkdir " + systemCachePath ).c_str() ); if (-1 == dir_err) @@ -889,11 +890,10 @@ void Adaptor::RequestUpdate( bool forceUpdate ) case PAUSED: case PAUSED_WHILE_HIDDEN: { - // When Dali applications are partially visible behind the lock-screen, - // the indicator must be updated (therefore allow updates in the PAUSED state) if( forceUpdate ) { - mThreadController->RequestUpdateOnce(); + // Update (and resource upload) without rendering + mThreadController->RequestUpdateOnce( UpdateMode::SKIP_RENDER ); } break; } @@ -1064,7 +1064,7 @@ void Adaptor::RequestUpdateOnce() { if( mThreadController ) { - mThreadController->RequestUpdateOnce(); + mThreadController->RequestUpdateOnce( UpdateMode::NORMAL ); } }