[Tizen] Update RenderState in PreRender
[platform/core/uifw/dali-core.git] / dali / integration-api / core.h
index 686a1ec..a5051e5 100644 (file)
@@ -81,7 +81,6 @@ public:
   UpdateStatus()
   : keepUpdating(false),
     needsNotification(false),
-    surfaceRectChanged(false),
     secondsFromLastFrame(0.0f)
   {
   }
@@ -107,15 +106,6 @@ public:
   }
 
   /**
-   * Query wheter the default surface rect is changed or not.
-   * @return true if the default surface rect is changed.
-   */
-  bool SurfaceRectChanged()
-  {
-    return surfaceRectChanged;
-  }
-
-  /**
    * This method is provided so that FPS can be easily calculated with a release version
    * of Core.
    * @return the seconds from last frame as float
@@ -128,7 +118,6 @@ public:
 public:
   uint32_t keepUpdating; ///< A bitmask of KeepUpdating values
   bool     needsNotification;
-  bool     surfaceRectChanged;
   float    secondsFromLastFrame;
 };
 
@@ -362,7 +351,7 @@ public:
    * @param[in] scene The scene to be rendered.
    * @param[out] damagedRects containing damaged render items rects for this pass.
    */
-  void PreRender(Integration::Scene& scene, std::vector<Rect<int>>& damagedRects);
+  void PreRender(RenderStatus& status, Integration::Scene& scene, std::vector<Rect<int>>& damagedRects);
 
   /**
    * Render a scene in the next frame. This method should be preceded by a call up PreRender.
@@ -403,14 +392,16 @@ public:
    *
    * Note, Core does not take ownership of this processor.
    * @param[in] processor The process to register
+   * @param[in] postProcessor set this processor required to be called after size negotiation. Default is false.
    */
-  void RegisterProcessor(Processor& processor);
+  void RegisterProcessor(Processor& processor, bool postProcessor = false);
 
   /**
    * @brief Unregister a processor
    * @param[in] processor The process to unregister
+   * @param[in] postProcessor True if the processor to be unregister is for post processor.
    */
-  void UnregisterProcessor(Processor& processor);
+  void UnregisterProcessor(Processor& processor, bool postProcessor = false);
 
   /**
    * @brief Gets the Object registry.