Fix surface deletion order issue
[platform/core/uifw/dali-core.git] / dali / internal / event / common / scene-impl.h
index 52ea356..c431fee 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_SCENE_H
 
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
@@ -105,6 +105,11 @@ public:
   Dali::Layer GetRootLayer() const;
 
   /**
+   * @copydoc Dali::Integration::Scene::GetOverlayLayer
+   */
+  Dali::Layer GetOverlayLayer();
+
+  /**
    * @copydoc Dali::Integration::Scene::GetLayerCount
    */
   uint32_t GetLayerCount() const;
@@ -128,6 +133,11 @@ public:
   void SurfaceReplaced();
 
   /**
+   * @copydoc Dali::Integration::Scene::RemoveSceneObject
+   */
+  void RemoveSceneObject();
+
+  /**
    * @copydoc Dali::Integration::Scene::Discard
    */
   void Discard();
@@ -380,6 +390,8 @@ private:
 
   LayerPtr mRootLayer;
 
+  LayerPtr mOverlayLayer;
+
   // Ordered list of currently on-stage layers
   OwnerPointer<LayerList> mLayerList;