[Tizen] Implement partial update
[platform/core/uifw/dali-core.git] / dali / integration-api / render-surface.h
old mode 100644 (file)
new mode 100755 (executable)
index b0a3b37..bb36f60
@@ -48,6 +48,12 @@ class GraphicsInterface;
  */
 typedef Dali::Rect<int> PositionSize;
 
+/**
+ * @brief The Rect of partial updated area
+ */
+typedef Dali::Rect<int32_t> DamagedRect;
+
+
 namespace Integration
 {
 
@@ -189,6 +195,18 @@ public:
    */
   virtual Integration::StencilBufferAvailable GetStencilBufferRequired() = 0;
 
+  /**
+   * @brief Sets currentframe updated/damaged rects
+   * @return The Rect of partial updated area
+   */
+  virtual void SetDamagedRect( const DamagedRect& damagedRect, DamagedRect& mergedRect ) = 0;
+
+  /**
+   * @brief Gets buffer age
+   * @return current buffer age
+   */
+  virtual int32_t GetBufferAge() = 0;
+
 private:
 
   /**