Merge "Added previously ommited types of geometry: LINE_STRIP, LINE_LOOP in the ...
[platform/core/uifw/dali-core.git] / dali / internal / event / render-tasks / render-task-impl.h
index 7e4744c..4c434a2 100644 (file)
@@ -32,7 +32,7 @@ namespace Internal
 
 class Actor;
 class CameraActor;
-class EventToUpdate;
+class EventThreadServices;
 
 namespace SceneGraph
 {
@@ -162,6 +162,18 @@ public:
   const Vector4& GetClearColor() const;
 
   /**
+   * Set whether whether GL sync is required for native render target.
+   * @param[in] requiresSync whether whether GL sync is required.
+   */
+  void SetSyncRequired( bool requiresSync );
+
+  /**
+   * Query whether the sync object is required for native render target.
+   * @return True if the sync object is required, false otherwise.
+   */
+ bool IsSyncRequired() const;
+
+  /**
    * @copydoc Dali::RenderTask::SetClearEnabled()
    */
   void SetClearEnabled( bool enabled );
@@ -211,6 +223,16 @@ public:
    */
   bool IsSystemLevel() const;
 
+  /**
+   * @copydoc Dali::RenderTask::WorldToViewport()
+   */
+  bool WorldToViewport(const Vector3 &position, float& viewportX, float& viewportY) const;
+
+  /**
+   * @copydoc Dali::RenderTask::ViewportToLocal()
+   */
+  bool ViewportToLocal(Actor* actor, float viewportX, float viewportY, float &localX, float &localY) const;
+
 public: // Used by RenderTaskList, which owns the SceneGraph::RenderTasks
 
   /**
@@ -334,10 +356,9 @@ protected:
 
   /**
    * Construct a new RenderTask.
-   * @param[in] eventToUpdate Used to send messages to the update-thread.
    * @param[in] isSystemLevel Whether the RenderTask is on the system level task list.
    */
-  RenderTask( EventToUpdate& eventToUpdate, bool isSystemLevel );
+  RenderTask( bool isSystemLevel );
 
   /**
    * A reference counted object may only be deleted by calling Unreference()
@@ -415,8 +436,6 @@ protected:
 
 private:
 
-  EventToUpdate& mEventToUpdate;
-
   SceneGraph::RenderTask* mSceneObject; ///< Raw-pointer to the scene-graph object; not owned.
 
   Connector mSourceConnector; ///< Responsible for connecting/disconnecting source Nodes
@@ -438,6 +457,7 @@ private:
   bool mClearEnabled  : 1; ///< True if the render-task should be clear the color buffer.
   bool mCullMode      : 1; ///< True if the render-task's actors should be culled
   bool mIsSystemLevel : 1; ///< True if the render-task is on the system level task list.
+  bool mRequiresSync  : 1; ///< True if the GL sync is required to track the render of
 
   //Signals
   Dali::RenderTask::RenderTaskSignalType  mSignalFinished; ///< Signal emmited when the render task has been processed.