Revert "[Tizen] Do not call PreRender if rendering will be skipped"
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 14 Dec 2021 05:29:23 +0000 (14:29 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 14 Dec 2021 05:29:23 +0000 (14:29 +0900)
This reverts commit 10b06afe626b500690bd0788ac9eb2d0464c80af.

automated-tests/src/dali-adaptor/dali-test-suite-utils/test-application.cpp
dali/internal/adaptor/common/combined-update-render-controller.cpp

index e71166b..440270a 100644 (file)
@@ -220,7 +220,7 @@ bool TestApplication::PreRenderWithPartialUpdate(uint32_t intervalMilliseconds,
   DoUpdate(intervalMilliseconds, location);
 
   mCore->PreRender(mRenderStatus, false /*do not force clear*/, false /*do not skip rendering*/);
-  mCore->PreRender(mRenderStatus, mScene, damagedRects);
+  mCore->PreRender(mScene, damagedRects);
 
   return mStatus.KeepUpdating() || mRenderStatus.NeedsUpdate();
 }
index c8e0d1b..356cec0 100644 (file)
@@ -694,7 +694,7 @@ void CombinedUpdateRenderController::UpdateRenderThread()
           mDamagedRects.clear();
 
           // Collect damage rects
-          mCore.PreRender(windowRenderStatus, scene, mDamagedRects);
+          mCore.PreRender(scene, mDamagedRects);
 
           // Render off-screen frame buffers first if any
           mCore.RenderScene(windowRenderStatus, scene, true);
@@ -702,10 +702,7 @@ void CombinedUpdateRenderController::UpdateRenderThread()
           Rect<int> clippingRect; // Empty for fbo rendering
 
           // Switch to the context of the surface, merge damaged areas for previous frames
-          if(windowRenderStatus.NeedsUpdate())
-          {
-            windowSurface->PreRender(sceneSurfaceResized, mDamagedRects, clippingRect); // Switch GL context
-          }
+          windowSurface->PreRender(sceneSurfaceResized, mDamagedRects, clippingRect); // Switch GL context
 
           // Render the surface
           mCore.RenderScene(windowRenderStatus, scene, false, clippingRect);