Revert "[Tizen] Support Client Rotation and Screen Rotation"
[platform/core/uifw/dali-core.git] / dali / internal / event / common / scene-impl.cpp
index a157ae7..4b53d79 100644 (file)
@@ -64,7 +64,6 @@ Scene::Scene( const Size& size )
   mSurfaceSize( Vector2::ZERO ),
   mDpi( Vector2::ZERO ),
   mBackgroundColor( DEFAULT_BACKGROUND_COLOR ),
-  mSurfaceOrientation( 0 ),
   mDepthTreeDirty( false ),
   mEventProcessor( *this, ThreadLocalStorage::GetInternal()->GetGestureEventProcessor() )
 {
@@ -197,7 +196,7 @@ Actor& Scene::GetDefaultRootActor()
   return *mRootLayer;
 }
 
-void Scene::SetSurface( Integration::RenderSurface& surface, bool forceUpdate )
+void Scene::SetSurface( Integration::RenderSurface& surface )
 {
   mSurface = &surface;
   if ( mSurface )
@@ -207,22 +206,18 @@ void Scene::SetSurface( Integration::RenderSurface& surface, bool forceUpdate )
     mFrameBuffer = Dali::Internal::FrameBuffer::New( surface, Dali::FrameBuffer::Attachment::NONE );
     defaultRenderTask->SetFrameBuffer( mFrameBuffer );
 
-    SurfaceResized( forceUpdate );
+    SurfaceResized();
   }
 }
 
-void Scene::SurfaceResized( bool forceUpdate )
+void Scene::SurfaceResized()
 {
   if( mSurface )
   {
     const float fWidth = static_cast<float>( mSurface->GetPositionSize().width );
     const float fHeight = static_cast<float>( mSurface->GetPositionSize().height );
-    const int orientation = mSurface->GetOrientation();
 
-    if( ( fabsf( mSurfaceSize.width - fWidth ) > Math::MACHINE_EPSILON_1 )
-        || ( fabsf( mSurfaceSize.height - fHeight ) > Math::MACHINE_EPSILON_1 )
-        || ( orientation != mSurfaceOrientation )
-        || (forceUpdate) )
+    if( ( fabsf( mSurfaceSize.width - fWidth ) > Math::MACHINE_EPSILON_1 ) || ( fabsf( mSurfaceSize.height - fHeight ) > Math::MACHINE_EPSILON_1 ) )
     {
       Rect<int32_t> newSize( 0, 0, static_cast<int32_t>( mSurface->GetPositionSize().width ), static_cast<int32_t>( mSurface->GetPositionSize().height ) );
 
@@ -232,18 +227,14 @@ void Scene::SurfaceResized( bool forceUpdate )
       mSize.width = mSurfaceSize.width;
       mSize.height = mSurfaceSize.height;
 
-      mSurfaceOrientation = orientation;
-
       // Calculates the aspect ratio, near and far clipping planes, field of view and camera Z position.
       mDefaultCamera->SetPerspectiveProjection( mSurfaceSize );
-      mDefaultCamera->RotateProjection( mSurfaceOrientation );
 
       mRootLayer->SetSize( mSize.width, mSize.height );
 
       ThreadLocalStorage* tls = ThreadLocalStorage::GetInternal();
       SceneGraph::UpdateManager& updateManager = tls->GetUpdateManager();
       SetDefaultSurfaceRectMessage( updateManager, newSize ); // truncated
-      SetDefaultSurfaceOrientationMessage( updateManager, mSurfaceOrientation );
 
       RenderTaskPtr defaultRenderTask = mRenderTaskList->GetTask( 0u );