[Tizen] Fix the sync issue of window rotation.
[platform/core/uifw/dali-core.git] / dali / internal / update / common / scene-graph-scene.cpp
index 9b7ddcc..2008992 100644 (file)
@@ -31,7 +31,8 @@ namespace SceneGraph
 Scene::Scene()
 : mContext( nullptr ),
   mFrameRenderedCallbacks(),
-  mFramePresentedCallbacks()
+  mFramePresentedCallbacks(),
+  mSurfaceOrientation( 0 )
 {
 }
 
@@ -88,6 +89,16 @@ void Scene::GetFramePresentedCallback( Dali::Integration::Scene::FrameCallbackCo
   mFramePresentedCallbacks.clear();
 }
 
+void Scene::SetSurfaceOrientation( int orientation )
+{
+  mSurfaceOrientation = orientation;
+}
+
+int Scene::GetSurfaceOrientation() const
+{
+  return mSurfaceOrientation;
+}
+
 } //SceneGraph
 
 } //Internal