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 1d8a8715d4c4f9bed6b617e295453f40d6537c77..19d7ed1fa7c76fe732b0e0b93e18a99c87031113 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 3a8968a4ed971ec7ba9c3a215c79a00248e6e1be..d7575e84e70b24c7687461d26f8908fb846342fb 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