[Tizen] Implement partial update
[platform/core/uifw/dali-adaptor.git] / dali / integration-api / render-surface-interface.h
old mode 100644 (file)
new mode 100755 (executable)
index ad672ca..3b93431
@@ -66,8 +66,7 @@ public:
     mGraphics( nullptr ),
     mDisplayConnection( nullptr ),
     mDepthBufferRequired( Integration::DepthBufferAvailable::FALSE ),
-    mStencilBufferRequired( Integration::StencilBufferAvailable::FALSE ),
-    mBackgroundColor()
+    mStencilBufferRequired( Integration::StencilBufferAvailable::FALSE )
   {}
 
   /**
@@ -90,6 +89,12 @@ public:
   virtual void GetDpi( unsigned int& dpiHorizontal, unsigned int& dpiVertical ) = 0;
 
   /**
+   * @brief Return the orientation of the surface.
+   * @return The orientation
+   */
+  virtual int GetOrientation() const = 0;
+
+  /**
    * @brief InitializeGraphics the platform specific graphics surface interfaces
    */
   virtual void InitializeGraphics() = 0;
@@ -177,22 +182,16 @@ public:
   virtual Integration::StencilBufferAvailable GetStencilBufferRequired() = 0;
 
   /**
-   * @brief Sets the background color of the surface.
-   * @param[in] color The new background color
+   * @brief Sets currentframe damaged rects
+   * @param[in] Sets currentframe damaged rects
+   * @param[out] return merged rect
    */
-  virtual void SetBackgroundColor( Vector4 color ) override
-  {
-    mBackgroundColor = color;
-  }
+  virtual void SetDamagedRect( const Dali::DamagedRect& damagedRect, Dali::DamagedRect& mergedRectArray ) = 0;
 
   /**
-   * @brief Gets the background color of the surface.
-   * @return The background color
+   * @brief Gets buffer age
    */
-  virtual Vector4 GetBackgroundColor() override
-  {
-    return mBackgroundColor;
-  }
+  virtual int32_t GetBufferAge() = 0;
 
 public: