X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-core.git;a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fcommon%2Fscene-impl.h;h=99a3e507cdd952423f3508ff30a94feb43b68aae;hp=01766dfff9f27831fcfb75f618724ecaaacda296;hb=79881246746f65474b24ea4fe14151ccef8df3f4;hpb=2fa249687dba04074502ee8b22fb738da437f5cd diff --git a/dali/internal/event/common/scene-impl.h b/dali/internal/event/common/scene-impl.h index 01766df..99a3e50 100644 --- a/dali/internal/event/common/scene-impl.h +++ b/dali/internal/event/common/scene-impl.h @@ -2,7 +2,7 @@ #define DALI_INTERNAL_SCENE_H /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -42,6 +41,11 @@ struct Event; namespace Internal { +namespace SceneGraph +{ +class Scene; +} + class EventProcessor; class Layer; class LayerList; @@ -62,7 +66,7 @@ public: /** * @copydoc Dali::Integration::Scene::New */ - static ScenePtr New( Integration::RenderSurface& surface ); + static ScenePtr New( Size size ); /** * virtual destructor @@ -115,19 +119,17 @@ public: Dali::Layer GetLayer(uint32_t depth) const; /** - * @copydoc Dali::Integration::Scene::SetSurface - */ - void SetSurface( Integration::RenderSurface& surface ); - - /** * Notify the surface has been resized. + * + * @param[in] width The new width of the set surface + * @param[in] height The new height of the set surface */ - void SurfaceResized(); + void SurfaceResized( float width, float height ); /** - * Notify the surface has been deleted. + * @copydoc Dali::Integration::Scene::SurfaceReplaced */ - void SurfaceDeleted(); + void SurfaceReplaced(); /** * @copydoc Dali::Integration::Scene::Discard @@ -135,12 +137,6 @@ public: void Discard(); /** - * Retrieve the render surface the scene is binded to. - * @return The render surface. - */ - Integration::RenderSurface* GetSurface() const; - - /** * Retrieve the ordered list of on-scene layers. * @return The layer-list. */ @@ -181,6 +177,13 @@ public: Vector4 GetBackgroundColor() const; /** + * @brief Get the Scene scene graph object + * + * @return the Scene scene graph object + */ + SceneGraph::Scene* GetSceneObject() const; + + /** * Used by the EventProcessor to emit key event signals. * @param[in] event The key event. */ @@ -267,8 +270,10 @@ private: /** * Second-phase constructor. + * + * @param[in] size The size of the set surface */ - void Initialize( Integration::RenderSurface& surface ); + void Initialize( Size size ); // Undefined Scene(const Scene&) = delete; @@ -277,7 +282,7 @@ private: Scene& operator=(const Scene& rhs) = delete; private: - Integration::RenderSurface* mSurface; + Internal::SceneGraph::Scene* mSceneObject; Size mSize; @@ -295,9 +300,6 @@ private: // The list of render-tasks IntrusivePtr mRenderTaskList; - // The frame buffer - FrameBufferPtr mFrameBuffer; - bool mDepthTreeDirty:1; ///< True if the depth tree needs recalculating EventProcessor mEventProcessor;