X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fcommon%2Fscene-impl.cpp;h=7994cdf143a35f3bd2f5f4c1c153f68a45cba08f;hb=128cea946c9d6d4a76ab7bda08bfdd532be549b7;hp=6f72912109e0a0d48645b8084b9712af831d6fab;hpb=acc5890841e76f9a4b8c313664d25ed430233605;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/common/scene-impl.cpp b/dali/internal/event/common/scene-impl.cpp index 6f72912..7994cdf 100644 --- a/dali/internal/event/common/scene-impl.cpp +++ b/dali/internal/event/common/scene-impl.cpp @@ -41,7 +41,7 @@ namespace Dali { namespace Internal { -ScenePtr Scene::New(Size size, int orientation) +ScenePtr Scene::New(Size size, int32_t orientation) { ScenePtr scene = new Scene; @@ -93,7 +93,7 @@ Scene::~Scene() // When this destructor is called, the scene has either already been removed from Core or Core has already been destroyed } -void Scene::Initialize(Size size, int orientation) +void Scene::Initialize(Size size, int32_t orientation) { ThreadLocalStorage* tls = ThreadLocalStorage::GetInternal(); @@ -188,7 +188,7 @@ Dali::Layer Scene::GetLayer(uint32_t depth) const return Dali::Layer(mLayerList->GetLayer(depth)); } -CameraActor& Scene::GetDefaultCameraActor() +CameraActor& Scene::GetDefaultCameraActor() const { return *mDefaultCamera; } @@ -277,18 +277,23 @@ void Scene::EmitKeyEventSignal(const Dali::KeyEvent& event) } } -void Scene::SurfaceRotated(float width, float height, int orientation) +void Scene::SurfaceRotated(float width, float height, int32_t orientation) { mSurfaceOrientation = orientation; ChangedSurface(width, height, orientation); } -int Scene::GetSurfaceOrientation() +int32_t Scene::GetCurrentSurfaceOrientation() const { - return mSurfaceOrientation; + return mSceneObject->GetSurfaceOrientation(); } -void Scene::ChangedSurface(float width, float height, int orientation) +const Rect& Scene::GetCurrentSurfaceRect() const +{ + return mSceneObject->GetSurfaceRect(); +} + +void Scene::ChangedSurface(float width, float height, int32_t orientation) { Rect newSize(0, 0, static_cast(width), static_cast(height)); // truncated mSize.width = width; @@ -316,6 +321,17 @@ bool Scene::IsSurfaceRectChanged() const return mSceneObject->IsSurfaceRectChanged(); } +bool Scene::IsRotationCompletedAcknowledgementSet() const +{ + return mSceneObject->IsRotationCompletedAcknowledgementSet(); +} + +void Scene::SetRotationCompletedAcknowledgement() +{ + ThreadLocalStorage* tls = ThreadLocalStorage::GetInternal(); + SetRotationCompletedAcknowledgementMessage(tls->GetEventThreadServices(), *mSceneObject); +} + void Scene::SetSurfaceRenderTarget(Graphics::RenderTarget* renderTarget) { // Send the surface render target to SceneGraph::Scene