[Tizen] Implement partial update
[platform/core/uifw/dali-adaptor.git] / dali / internal / window-system / common / window-render-surface.cpp
index 1b18498..0ac8bf3 100755 (executable)
@@ -457,11 +457,10 @@ std::vector<int32_t> WindowRenderSurface::MergeRect( const Rect<int32_t>& damage
 }
 
 
-Rect<int32_t> WindowRenderSurface::SetDamagedRect( const Rect<int32_t>& damagedRect )
+void WindowRenderSurface::SetDamagedRect( const Dali::DamagedRect& damagedRect, Dali::DamagedRect& mergedRect )
 {
   auto eglGraphics = static_cast<EglGraphics *>( mGraphics );
   std::vector<int32_t> rectArray;
-  Rect<int32_t> mergedDamagedRect;
   if( eglGraphics )
   {
     Internal::Adaptor::EglImplementation& eglImpl = eglGraphics->GetEglImplementation();
@@ -479,13 +478,11 @@ Rect<int32_t> WindowRenderSurface::SetDamagedRect( const Rect<int32_t>& damagedR
 
   if( !rectArray.empty() )
   {
-    mergedDamagedRect.x = rectArray[0];
-    mergedDamagedRect.y = rectArray[1];
-    mergedDamagedRect.width = rectArray[2];
-    mergedDamagedRect.height = rectArray[3];
+    mergedRect.x = rectArray[0];
+    mergedRect.y = rectArray[1];
+    mergedRect.width = rectArray[2];
+    mergedRect.height = rectArray[3];
   }
-
-  return mergedDamagedRect;
 }
 
 int32_t WindowRenderSurface::GetBufferAge()