[Tizen] Implement partial update
[platform/core/uifw/dali-adaptor.git] / dali / internal / window-system / common / window-render-surface.cpp
index eff8745..0ac8bf3 100755 (executable)
@@ -256,10 +256,8 @@ void WindowRenderSurface::CreateSurface()
   // Check rotation capability
   mRotationSupported = mWindowBase->IsEglWindowRotationSupported();
 
-  int screenWidth, screenHeight;
-  WindowSystem::GetScreenSize( screenWidth, screenHeight );
-  DALI_LOG_RELEASE_INFO("WindowRenderSurface::CreateSurface: w = %d h = %d screenWidth = %d screenHeight = %d angle = %d screen rotation = %d\n",
-      mPositionSize.width, mPositionSize.height, screenWidth, screenHeight, mRotationAngle, mScreenRotationAngle );
+  DALI_LOG_RELEASE_INFO("WindowRenderSurface::CreateSurface: w = %d h = %d angle = %d screen rotation = %d\n",
+      mPositionSize.width, mPositionSize.height, mRotationAngle, mScreenRotationAngle );
 }
 
 void WindowRenderSurface::DestroySurface()
@@ -459,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();
@@ -481,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()