[Tizen] Revert "Support screen rotation"
[platform/core/uifw/dali-adaptor.git] / adaptors / common / adaptor-impl.cpp
index 600a2a3..748012e 100644 (file)
@@ -393,17 +393,10 @@ void Adaptor::FeedKeyEvent( KeyEvent& keyEvent )
 
 void Adaptor::ReplaceSurface( Any nativeWindow, RenderSurface& surface )
 {
-  PositionSize positionSize = surface.GetPositionSize();
-
-  // let the core know the surface size has changed
-  mCore->SurfaceResized( positionSize.width, positionSize.height );
-
-  mResizedSignal.Emit( mAdaptor );
-
   mNativeWindow = nativeWindow;
   mSurface = &surface;
 
-  // flush the event queue to give the update-render thread chance
+  // flush the event queue to give update and render threads chance
   // to start processing messages for new camera setup etc as soon as possible
   ProcessCoreEvents();
 
@@ -702,7 +695,7 @@ void Adaptor::OnDamaged( const DamageArea& area )
   RequestUpdate();
 }
 
-void Adaptor::SurfaceResizePrepare( Dali::Adaptor::SurfaceSize surfaceSize )
+void Adaptor::SurfaceSizeChanged( Dali::Adaptor::SurfaceSize surfaceSize )
 {
   // let the core know the surface size has changed
   mCore->SurfaceResized( surfaceSize.GetWidth(), surfaceSize.GetHeight() );
@@ -710,16 +703,6 @@ void Adaptor::SurfaceResizePrepare( Dali::Adaptor::SurfaceSize surfaceSize )
   mResizedSignal.Emit( mAdaptor );
 }
 
-void Adaptor::SurfaceResizeComplete( Dali::Adaptor::SurfaceSize surfaceSize )
-{
-  // flush the event queue to give the update-render thread chance
-  // to start processing messages for new camera setup etc as soon as possible
-  ProcessCoreEvents();
-
-  // this method blocks until the render thread has completed the resizing.
-  mThreadController->ResizeSurface();
-}
-
 void Adaptor::NotifySceneCreated()
 {
   GetCore().SceneCreated();