// 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()
return true;
}
-std::vector<int32_t> WindowRenderSurface::MergeRect( Rect<int32_t> damagedRect, int bufferAge )
+std::vector<int32_t> WindowRenderSurface::MergeRect( const Rect<int32_t>& damagedRect, int bufferAge )
{
std::vector<int32_t> mergedRectArray;
// merge bounding
}
-Rect<int32_t> WindowRenderSurface::SetDamagedRect( 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;
}
-int WindowRenderSurface::GetBufferAge()
+int32_t WindowRenderSurface::GetBufferAge()
{
- auto result = mBufferAge = 0;
+ int result = mBufferAge = 0;
auto eglGraphics = static_cast<EglGraphics *>( mGraphics );
if( eglGraphics )
{