X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fwindow-system%2Fcommon%2Fwindow-render-surface.cpp;h=e9288ca5f5b61e735a68b47faa84879d69805f49;hb=69b74827fa48f54d41fb723a7df43e60cc86fe36;hp=eff87457e2e21e73a3e76b2615e31b467f6886fe;hpb=cf85e088106c0322d31b219afb7208b6002f4068;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/window-system/common/window-render-surface.cpp b/dali/internal/window-system/common/window-render-surface.cpp index eff8745..e9288ca 100755 --- a/dali/internal/window-system/common/window-render-surface.cpp +++ b/dali/internal/window-system/common/window-render-surface.cpp @@ -23,18 +23,17 @@ #include // INTERNAL INCLUDES -#include -#include -#include +#include +#include #include #include +#include +#include #include #include #include -#include #include - namespace Dali { namespace Internal @@ -256,10 +255,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 +456,10 @@ std::vector WindowRenderSurface::MergeRect( const Rect& damage } -Rect WindowRenderSurface::SetDamagedRect( const Rect& damagedRect ) +void WindowRenderSurface::SetDamagedRect( const Dali::DamagedRect& damagedRect, Dali::DamagedRect& mergedRect ) { auto eglGraphics = static_cast( mGraphics ); std::vector rectArray; - Rect mergedDamagedRect; if( eglGraphics ) { Internal::Adaptor::EglImplementation& eglImpl = eglGraphics->GetEglImplementation(); @@ -481,13 +477,11 @@ Rect WindowRenderSurface::SetDamagedRect( const Rect& 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()