virtual void GetDpi( unsigned int& dpiHorizontal, unsigned int& dpiVertical ) override;
/**
+ * @brief Return the orientation of the surface.
+ * @return The orientation
+ */
+ virtual int GetOrientation() const override;
+
+ /**
* @copydoc Dali::Integration::RenderSurface::InitializeGraphics()
*/
virtual void InitializeGraphics() override;
*/
virtual Integration::StencilBufferAvailable GetStencilBufferRequired() override;
+ /**
+ * @copydoc Dali::Integration::RenderSurface::SetDamagedRect()
+ */
+ virtual void SetDamagedRect( const Dali::DamagedRect& damagedRect, Dali::DamagedRect& mergedRect ) override;
+
+ /**
+ * @copydoc Dali::Integration::RenderSurface::GetBufferAge()
+ */
+ virtual int32_t GetBufferAge() override;
+
private:
/**
*/
void ProcessRotationRequest();
+ /*
+ * @brief MergeRect
+ */
+ std::vector<int32_t> MergeRect( const Rect<int32_t>& damagedRectArray, int bufferAge );
+
protected:
// Undefined
OutputSignalType mOutputTransformedSignal;
int mRotationAngle;
int mScreenRotationAngle;
+ int mBufferAge;
+ int mPreBufferAge;
bool mOwnSurface; ///< Whether we own the surface (responsible for deleting it)
bool mRotationSupported;
bool mRotationFinished;
uint32_t mDpiHorizontal;
uint32_t mDpiVertical;
+ Rect<int32_t> mPreDamagedRect[5]; ///< The GPU driver can has up to four buffers. And one is for area calculation.
}; // class WindowRenderSurface
} // namespace Adaptor