Ensure Scene is informed of the surface resizing in all cases 89/210789/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 24 Jul 2019 18:54:51 +0000 (19:54 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 24 Jul 2019 18:54:51 +0000 (19:54 +0100)
Change-Id: I9e3838b8bd88f1b05e6a0924bb04293c93cb5e86

dali/internal/window-system/common/window-impl.cpp

index 95f342b..9483164 100644 (file)
@@ -507,6 +507,8 @@ void Window::SetPositionSize( PositionSize positionSize )
   {
     Uint16Pair newSize( newRect.width, newRect.height );
 
+    SurfaceResized();
+
     mAdaptor->SurfaceResizePrepare( mSurface.get(), newSize );
 
     mResizedSignal.Emit( newSize );
@@ -581,6 +583,7 @@ void Window::OnFocusChanged( bool focusIn )
 void Window::OnOutputTransformed()
 {
   PositionSize positionSize = mSurface->GetPositionSize();
+  SurfaceResized();
   mAdaptor->SurfaceResizePrepare( mSurface.get(), Adaptor::SurfaceSize( positionSize.width, positionSize.height ) );
   mAdaptor->SurfaceResizeComplete( mSurface.get(), Adaptor::SurfaceSize( positionSize.width, positionSize.height ) );
 }
@@ -616,6 +619,8 @@ void Window::OnRotation( const RotationEvent& rotation )
 
   mWindowSurface->RequestRotation( mRotationAngle, mWindowWidth, mWindowHeight );
 
+  SurfaceResized();
+
   mAdaptor->SurfaceResizePrepare( mSurface.get(), Adaptor::SurfaceSize( mRotationAngle, mWindowHeight ) );
 
   // Emit signal