#include "ui/gfx/rect.h"
namespace gpu {
-struct ManagedMemoryStats;
class ContextSupport {
public:
// Clients aren't expected to draw to an invisible surface.
virtual void SetSurfaceVisible(bool visible) = 0;
- virtual void SendManagedMemoryStats(const ManagedMemoryStats& stats) = 0;
-
virtual void Swap() = 0;
virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) = 0;
- virtual void SetSwapBuffersCompleteCallback(
- const base::Closure& callback) = 0;
-
// Schedule a texture to be presented as an overlay synchronously with the
// primary surface during the next buffer swap.
// This method is not stateful and needs to be re-scheduled every frame.
const gfx::Rect& display_bounds,
const gfx::RectF& uv_rect) = 0;
+ virtual uint32 InsertFutureSyncPointCHROMIUM() = 0;
+ virtual void RetireSyncPointCHROMIUM(uint32 sync_point) = 0;
+
protected:
ContextSupport() {}
virtual ~ContextSupport() {}