[Tizen] Revert "Support multiple window rendering"
[platform/core/uifw/dali-core.git] / dali / internal / event / common / event-thread-services.h
index eb2d345..8089950 100644 (file)
@@ -2,7 +2,7 @@
 #define __DALI_INTERNAL_EVENT_THREAD_SERVICES_H__
 
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 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.
@@ -29,6 +29,11 @@ namespace Dali
 
 class BaseObject;
 
+namespace Integration
+{
+class RenderController;
+}
+
 namespace Internal
 {
 
@@ -74,6 +79,13 @@ public:
   virtual SceneGraph::UpdateManager& GetUpdateManager() = 0;
 
   /**
+   * @brief Get a reference to the RenderController
+   *
+   * @return the render controller
+   */
+  virtual Integration::RenderController& GetRenderController() = 0;
+
+  /**
    * Reserve space for another message in the queue; this must then be initialized by the caller.
    * The message will be read from the update-thread after the next FlushMessages is called.
    * @post Calling this method may invalidate any previously returned slots.
@@ -81,7 +93,7 @@ public:
    * @param[in] updateScene A flag, when true denotes that the message will cause the scene-graph node tree to require an update.
    * @return A pointer to the first char allocated for the message.
    */
-  virtual unsigned int* ReserveMessageSlot( std::size_t size, bool updateScene = true ) = 0;
+  virtual uint32_t* ReserveMessageSlot( uint32_t size, bool updateScene = true ) = 0;
 
   /**
    * @return the current event-buffer index.
@@ -89,6 +101,18 @@ public:
   virtual BufferIndex GetEventBufferIndex() const  = 0;
 
   /**
+   * @brief Indicate that the next rendering is really required.
+   */
+  virtual void ForceNextUpdate() = 0;
+
+  /**
+   * @brief Check if the next rendering is really required.
+   *
+   * @return true if the next rendering is really required.
+   */
+  virtual bool IsNextUpdateForced() = 0;
+
+  /**
    * @return true if core is still running and we can send messages
    */
   static bool IsCoreRunning();