Change RenderTaskList to behave like any other SceneGraph object
[platform/core/uifw/dali-core.git] / dali / internal / event / common / system-overlay-impl.h
index bed68c7..8632014 100644 (file)
@@ -1,21 +1,22 @@
 #ifndef __DALI_INTERNAL_SYSTEM_OVERLAY_H__
 #define __DALI_INTERNAL_SYSTEM_OVERLAY_H__
 
-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Flora License, Version 1.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://floralicense.org/license/
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an AS IS BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
+/*
+ * Copyright (c) 2014 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 
 // INTERNAL INCLUDES
 #include <dali/public-api/math/vector2.h>
@@ -32,7 +33,7 @@ namespace Internal
 
 class LayerList;
 class RenderTaskList;
-class Stage;
+class EventThreadServices;
 
 /**
  * Implementation of Dali::Integration::SystemOverlay
@@ -43,10 +44,10 @@ public:
 
   /**
    * Create the SystemOverlay; This should only be done once for each Dali core.
-   * @param[in] stage A reference to the stage.
+   * @param[in] eventThreadServices to send messaged to scene graph.
    * @return The newly allocated SystemOverlay.
    */
-  static SystemOverlay* New( Stage& stage );
+  static SystemOverlay* New( EventThreadServices& eventThreadServices );
 
   /**
    * Non-virtual destructor; not intended as a base class.
@@ -64,6 +65,11 @@ public:
   void Remove( Actor& actor );
 
   /**
+   * @copydoc Dali::Integration::SystemOverlay::SetOverlayRenderTasks()
+   */
+  void SetOverlayRenderTasks(RenderTaskList& taskList);
+
+  /**
    * @copydoc Dali::Integration::SystemOverlay::GetOverlayRenderTasks()
    */
   RenderTaskList& GetOverlayRenderTasks();
@@ -99,9 +105,9 @@ private:
 
   /**
    * Protected constructor; see also SystemOverlay::New().
-   * @param[in] stage A reference to the stage.
+   * @param[in] eventThreadServices to send messaged to the scene graph.
    */
-  SystemOverlay( Stage& stage );
+  SystemOverlay( EventThreadServices& eventThreadServices );
 
   /**
    * Second-phase construction.
@@ -120,7 +126,7 @@ private:
 
 private:
 
-  Stage& mStage;
+  EventThreadServices& mEventThreadServices;
 
   Vector2 mSize;