[Tizen] Add GetRenderTaskList to SceneHolder 17/298517/2
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 5 Jun 2023 08:51:24 +0000 (17:51 +0900)
committerseungho baek <sbsh.baek@samsung.com>
Tue, 12 Sep 2023 11:20:08 +0000 (20:20 +0900)
Change-Id: I9261d97923f842859f088a97d529185b710bfe21

dali/integration-api/adaptor-framework/scene-holder-impl.cpp
dali/integration-api/adaptor-framework/scene-holder-impl.h
dali/integration-api/adaptor-framework/scene-holder.cpp
dali/integration-api/adaptor-framework/scene-holder.h
dali/internal/window-system/common/window-impl.cpp
dali/internal/window-system/common/window-impl.h
dali/public-api/adaptor-framework/window.cpp

index 24d88c1..32749aa 100644 (file)
@@ -27,6 +27,7 @@
 #include <dali/public-api/actors/actor.h>
 #include <dali/public-api/actors/layer.h>
 #include <dali/public-api/common/dali-common.h>
+#include <dali/public-api/render-tasks/render-task-list.h>
 
 // INTERNAL INCLUDES
 #include <dali/internal/adaptor/common/adaptor-impl.h>
@@ -375,6 +376,11 @@ void SceneHolder::AddFramePresentedCallback(std::unique_ptr<CallbackBase> callba
   DALI_LOG_RELEASE_INFO("SceneHolder::AddFramePresentedCallback:: Added [%d]\n", frameId);
 }
 
+Dali::RenderTaskList SceneHolder::GetRenderTaskList() const
+{
+  return mScene.GetRenderTaskList();
+}
+
 Dali::Integration::SceneHolder SceneHolder::Get(Dali::Actor actor)
 {
   SceneHolder* sceneHolderImpl = nullptr;
index 8cb30c3..f4b2216 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTEGRATION_INTERNAL_SCENEHOLDER_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.
@@ -236,6 +236,11 @@ public:
   void CreateRenderTarget();
 
   /**
+   * @copydoc Dali::Integration::SceneHolder::GetRenderTaskList()
+   */
+  Dali::RenderTaskList GetRenderTaskList() const;
+
+  /**
    * @copydoc Dali::Integration::SceneHolder::Get()
    */
   static Dali::Integration::SceneHolder Get(Dali::Actor actor);
index 0fbf66e..33baa43 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -23,6 +23,7 @@
 #include <dali/integration-api/events/touch-event-integ.h>
 #include <dali/integration-api/events/wheel-event-integ.h>
 #include <dali/public-api/events/wheel-event.h>
+#include <dali/public-api/render-tasks/render-task-list.h>
 
 // INTERNAL INCLUDES
 #include <dali/integration-api/adaptor-framework/scene-holder-impl.h>
@@ -104,6 +105,11 @@ void SceneHolder::FeedKeyEvent(Dali::KeyEvent& keyEvent)
   GetImplementation(*this).FeedKeyEvent(event);
 }
 
+RenderTaskList SceneHolder::GetRenderTaskList()
+{
+  return GetImplementation(*this).GetRenderTaskList();
+}
+
 SceneHolder SceneHolder::Get(Actor actor)
 {
   return Internal::Adaptor::SceneHolder::Get(actor);
index eed2515..20c8aba 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTEGRATION_SCENEHOLDER_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.
@@ -33,6 +33,7 @@ class TouchEvent;
 class WheelEvent;
 struct TouchPoint;
 class KeyEvent;
+class RenderTaskList;
 
 namespace Internal DALI_INTERNAL
 {
@@ -158,6 +159,12 @@ public:
   void FeedKeyEvent(Dali::KeyEvent& keyEvent);
 
   /**
+   * @brief Retrieves the list of render-tasks.
+   * @return A valid handle to a RenderTaskList
+   */
+  RenderTaskList GetRenderTaskList();
+
+  /**
    * @brief Retrieve the SceneHolder that the given actor is added to.
    *
    * @param[in] actor The actor
index 7e0a6ab..465aa12 100644 (file)
@@ -28,8 +28,6 @@
 #include <dali/public-api/actors/camera-actor.h>
 #include <dali/public-api/actors/layer.h>
 #include <dali/public-api/adaptor-framework/window-enumerations.h>
-#include <dali/public-api/render-tasks/render-task-list.h>
-#include <dali/public-api/render-tasks/render-task.h>
 #include <dali/public-api/rendering/frame-buffer.h>
 #include <thread>
 
@@ -324,11 +322,6 @@ Dali::Layer Window::GetLayer(uint32_t depth) const
   return mScene.GetLayer(depth);
 }
 
-Dali::RenderTaskList Window::GetRenderTaskList() const
-{
-  return mScene.GetRenderTaskList();
-}
-
 std::string Window::GetNativeResourceId() const
 {
   return mWindowBase->GetNativeWindowResourceId();
index 089bcd8..eb2cd9b 100644 (file)
@@ -25,7 +25,6 @@
 #include <dali/public-api/object/base-object.h>
 #include <dali/public-api/object/property-array.h>
 #include <dali/public-api/object/ref-object.h>
-#include <dali/public-api/render-tasks/render-task-list.h>
 
 // INTERNAL INCLUDES
 #include <dali/devel-api/adaptor-framework/window-devel.h>
@@ -166,11 +165,6 @@ public:
   Dali::Layer GetLayer(uint32_t depth) const;
 
   /**
-   * @copydoc Dali::DevelWindow::GetRenderTaskList()
-   */
-  Dali::RenderTaskList GetRenderTaskList() const;
-
-  /**
    * @brief Get window resource ID assigned by window manager
    * @return The resource ID of the window
    */
index eb03a52..f33f7db 100644 (file)
@@ -20,6 +20,7 @@
 
 // EXTERNAL INCLUDES
 #include <dali/integration-api/debug.h>
+#include <dali/public-api/render-tasks/render-task-list.h>
 
 // INTERNAL INCLUDES
 #include <dali/internal/window-system/common/orientation-impl.h>