Remove unnecessray code 52/295652/1
authorHeeyong Song <heeyong.song@samsung.com>
Wed, 12 Jul 2023 07:15:16 +0000 (16:15 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Wed, 12 Jul 2023 07:15:16 +0000 (16:15 +0900)
We don't support partial update in the native render surface

Change-Id: I7065a9b5056632c005230e4367149dcdadc65976

dali/internal/window-system/tizen-wayland/native-render-surface-ecore-wl.cpp
dali/internal/window-system/tizen-wayland/native-render-surface-ecore-wl.h

index 1d8a871..19d7ed1 100644 (file)
@@ -237,18 +237,8 @@ void NativeRenderSurfaceEcoreWl::StartRender()
 
 bool NativeRenderSurfaceEcoreWl::PreRender(bool resizingSurface, const std::vector<Rect<int>>& damagedRects, Rect<int>& clippingRect)
 {
-  if(!clippingRect.IsEmpty())
-  {
-    mDamagedRects.assign(damagedRects.begin(), damagedRects.end());
-  }
-  else
-  {
-    mDamagedRects.clear();
-  }
-
-  // TODO: Need to support partial update
-  //  This is now done when the render pass for the render surface begins
-  //   MakeContextCurrent();
+  // Not support partial update
+  clippingRect = Rect<int32_t>(0, 0, mSurfaceSize.GetWidth(), mSurfaceSize.GetHeight());
   return true;
 }
 
@@ -258,7 +248,7 @@ void NativeRenderSurfaceEcoreWl::PostRender()
   if(eglGraphics)
   {
     Internal::Adaptor::EglImplementation& eglImpl = eglGraphics->GetEglImplementation();
-    eglImpl.SwapBuffers(mEGLSurface, mDamagedRects);
+    eglImpl.SwapBuffers(mEGLSurface);
   }
 
   if(mRenderNotification)
index 3a8968a..d7575e8 100644 (file)
@@ -188,7 +188,6 @@ private: // Data
   ColorDepth                            mColorDepth;
   tbm_format                            mTbmFormat;
   bool                                  mOwnSurface;
-  std::vector<Rect<int>>                mDamagedRects{}; ///< Keeps collected damaged render items rects for one render pass
 
   tbm_surface_queue_h                  mTbmQueue;
   ThreadSynchronizationInterface*      mThreadSynchronization; ///< A pointer to the thread-synchronization