// 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()
}
-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();
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()