EGLint GetBufferAge( EGLSurface& eglSurface ) const;
/**
- * Forces full surface swap next frame, resets current partial update state.
- */
- void SetFullSwapNextFrame();
-
- /**
* Performs an OpenGL set damage command with damaged rects
*/
- virtual void SetDamage( EGLSurface& eglSurface, const std::vector<Rect<int>>& damagedRects, Rect<int>& clippingRect );
+ void SetDamageRegion( EGLSurface& eglSurface, std::vector< Rect< int > >& damagedRects );
/**
* Performs an OpenGL swap buffers command with damaged rects
*/
void WaitClient();
+ /**
+ * @brief Returns whether the partial update is required.
+ * @return true if the partial update is required.
+ */
+ bool IsPartialUpdateRequired() const;
+
private:
Vector<EGLint> mContextAttribs;
PFNEGLSETDAMAGEREGIONKHRPROC mEglSetDamageRegionKHR;
PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC mEglSwapBuffersWithDamageKHR;
- std::list<std::vector<Rect<int>>> mBufferDamagedRects;
- Rect<int> mSurfaceRect;
- bool mFullSwapNextFrame;
};
} // namespace Adaptor