From e8fe30bb10a8bd9ff83def16047ce2d46540df49 Mon Sep 17 00:00:00 2001 From: seungho Date: Wed, 20 Apr 2022 14:39:12 +0900 Subject: [PATCH] [Tizen] make thread safe in update-render thread Change-Id: Ia03ac9ab7506e091ceb11cef2bc8eb05a415065d Signed-off-by: seungho --- .../adaptor/common/combined-update-render-controller.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dali/internal/adaptor/common/combined-update-render-controller.cpp b/dali/internal/adaptor/common/combined-update-render-controller.cpp index 82662a90..cacb4e6 100644 --- a/dali/internal/adaptor/common/combined-update-render-controller.cpp +++ b/dali/internal/adaptor/common/combined-update-render-controller.cpp @@ -587,6 +587,8 @@ void CombinedUpdateRenderController::UpdateRenderThread() { LOG_UPDATE_RENDER_TRACE; + bool uploadOnly = mUploadWithoutRendering; + // Performance statistics are logged upon a VSYNC tick so use this point for a VSync marker AddPerformanceMarker( PerformanceInterface::VSYNC ); @@ -666,7 +668,7 @@ void CombinedUpdateRenderController::UpdateRenderThread() updateStatus, renderToFboEnabled, isRenderingToFbo, - mUploadWithoutRendering); + uploadOnly); AddPerformanceMarker( PerformanceInterface::UPDATE_END ); unsigned int keepUpdatingStatus = updateStatus.KeepUpdating(); @@ -729,9 +731,9 @@ void CombinedUpdateRenderController::UpdateRenderThread() AddPerformanceMarker( PerformanceInterface::RENDER_START ); // Upload shared resources - mCore.PreRender( renderStatus, mForceClear, mUploadWithoutRendering ); + mCore.PreRender( renderStatus, mForceClear, uploadOnly ); - if ( !mUploadWithoutRendering ) + if ( !uploadOnly ) { // Go through each window WindowContainer windows; @@ -778,7 +780,7 @@ void CombinedUpdateRenderController::UpdateRenderThread() } } - mCore.PostRender( mUploadWithoutRendering ); + mCore.PostRender( uploadOnly ); ////////////////////////////// // DELETE SURFACE -- 2.7.4