X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fupdate%2Fcommon%2Fscene-graph-scene.h;h=eba4c0fb05d11c00eb8b8ad98604b3fd45b0d50d;hb=refs%2Fchanges%2F83%2F267183%2F4;hp=d8c8643444dac062ad3e1b7216856913c5cb2db9;hpb=3556f826b4ecd9de711de7d9489574885639b5d7;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/update/common/scene-graph-scene.h b/dali/internal/update/common/scene-graph-scene.h index d8c8643..eba4c0f 100644 --- a/dali/internal/update/common/scene-graph-scene.h +++ b/dali/internal/update/common/scene-graph-scene.h @@ -2,7 +2,7 @@ #define DALI_INTERNAL_SCENE_GRAPH_SCENE_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 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. @@ -24,6 +24,7 @@ #include #include #include +#include #include namespace Dali @@ -256,6 +257,26 @@ public: } /** + * @brief Set a root of the Scene + * + * @param layer The root layer + */ + void SetRoot(SceneGraph::Layer* layer) + { + mRoot = layer; + } + + /** + * @brief Get a root of the Scene + * + * @return The root layer + */ + SceneGraph::Layer* GetRoot() const + { + return mRoot; + } + + /** * @brief Get ItemsDirtyRects * * @return the ItemsDirtyRects @@ -293,6 +314,8 @@ private: Graphics::UniquePtr mRenderPassNoClear{nullptr}; ///< The render pass created to render the surface without clearing color Graphics::UniquePtr mRenderTarget{nullptr}; ///< This is created in Update/Render thread when surface is created/resized/replaced + SceneGraph::Layer* mRoot{nullptr}; ///< Root node + std::vector mClearValues{}; ///< Clear colors std::vector mItemsDirtyRects{}; ///< Dirty rect list };