X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fadaptor%2Fcommon%2Fcombined-update-render-controller.cpp;h=5ae0eccd721867a9ce2b7f3fa81ab0ff7de5ab11;hb=c1bb1606717a5a831a0e7bdaca8b4eb86dc5a89e;hp=a73104a7a03534e4411bd30e2fa1763c1da23be1;hpb=126df2d0eaeae2c65f2935ec334dfa2414498996;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/adaptor/common/combined-update-render-controller.cpp b/dali/internal/adaptor/common/combined-update-render-controller.cpp old mode 100644 new mode 100755 index a73104a..5ae0ecc --- a/dali/internal/adaptor/common/combined-update-render-controller.cpp +++ b/dali/internal/adaptor/common/combined-update-render-controller.cpp @@ -28,7 +28,9 @@ #include #include #include +#if defined(__GNUC__) #include +#endif namespace Dali { @@ -397,7 +399,9 @@ void CombinedUpdateRenderController::ProcessSleepRequest() void CombinedUpdateRenderController::UpdateRenderThread() { +#if defined(__GNUC__) SetThreadName("RenderThread\0"); +#endif // Install a function for logging mEnvironmentOptions.InstallLogFunction(); @@ -469,6 +473,7 @@ void CombinedUpdateRenderController::UpdateRenderThread() // If the new surface has a different display connection, then the context will be lost mAdaptorInterfaces.GetDisplayConnectionInterface().Initialize(); + newSurface->InitializeGraphics( mAdaptorInterfaces.GetGraphicsInterface(), mAdaptorInterfaces.GetDisplayConnectionInterface() ); newSurface->ReplaceGraphicsSurface(); SurfaceReplaced(); } @@ -515,13 +520,15 @@ void CombinedUpdateRenderController::UpdateRenderThread() } // Check resize - bool surfaceResized = ShouldSurfaceBeResized(); - if( DALI_UNLIKELY( surfaceResized ) ) + bool surfaceResized = false; + bool shouldSurfaceBeResized = ShouldSurfaceBeResized(); + if( DALI_UNLIKELY( shouldSurfaceBeResized ) ) { if( updateStatus.SurfaceRectChanged() ) { LOG_UPDATE_RENDER_TRACE_FMT( "Resizing Surface" ); SurfaceResized(); + surfaceResized = true; } } @@ -544,10 +551,10 @@ void CombinedUpdateRenderController::UpdateRenderThread() } } - RenderSurface* currentSurface = mAdaptorInterfaces.GetRenderSurfaceInterface(); + currentSurface = mAdaptorInterfaces.GetRenderSurfaceInterface(); if( currentSurface ) { - currentSurface->PreRender( mSurfaceResized ); + currentSurface->PreRender( surfaceResized ); } Integration::RenderStatus renderStatus; @@ -562,7 +569,7 @@ void CombinedUpdateRenderController::UpdateRenderThread() { if( currentSurface ) { - currentSurface->PostRender( isRenderingToFbo, ( mNewSurface != NULL ), mSurfaceResized ); + currentSurface->PostRender( isRenderingToFbo, ( mNewSurface != NULL ), surfaceResized ); } } @@ -624,6 +631,7 @@ void CombinedUpdateRenderController::UpdateRenderThread() // Inform core of context destruction & shutdown EGL mCore.ContextDestroyed(); + currentSurface = mAdaptorInterfaces.GetRenderSurfaceInterface(); if( currentSurface ) { currentSurface->DestroySurface();