[Tizen] Fix window rotation issue 26/276126/1 accepted/tizen/6.5/unified/20220629.152558 submit/tizen_6.5/20220616.150849 submit/tizen_6.5/20220628.104132
authorHeeyong Song <heeyong.song@samsung.com>
Fri, 10 Jun 2022 01:15:11 +0000 (10:15 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Fri, 10 Jun 2022 01:42:44 +0000 (10:42 +0900)
Pause the Adaptor
The window is rotated or resized
ForceNextUpdate - it may be by texture uploading
  CombinedUpdateRenderController::mUploadWithoutRendering = true;
So rendering is skipped

We should render the scene to send an ack to the window server in case of the window rotaion even though the Adaptor is paused.

Change-Id: Ibd3ea8eb7a91a601537a89b6db5b72955c54a45b

dali/internal/adaptor/common/combined-update-render-controller.cpp

index a06def3..4af34f8 100644 (file)
@@ -545,7 +545,8 @@ void CombinedUpdateRenderController::UpdateRenderThread()
     LOG_UPDATE_RENDER_TRACE;
 
     // For thread safe
-    bool uploadOnly = mUploadWithoutRendering;
+    bool         uploadOnly     = mUploadWithoutRendering;
+    unsigned int surfaceResized = mSurfaceResized;
 
     // Performance statistics are logged upon a VSYNC tick so use this point for a VSync marker
     AddPerformanceMarker(PerformanceInterface::VSYNC);
@@ -673,7 +674,7 @@ void CombinedUpdateRenderController::UpdateRenderThread()
     // Upload shared resources
     mCore.PreRender(renderStatus, mForceClear);
 
-    if(!uploadOnly)
+    if(!uploadOnly || surfaceResized)
     {
       // Go through each window
       WindowContainer windows;