summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/client/context_support.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/client/context_support.h')
-rw-r--r--gpu/command_buffer/client/context_support.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gpu/command_buffer/client/context_support.h b/gpu/command_buffer/client/context_support.h
index dcb0842..6a897208 100644
--- a/gpu/command_buffer/client/context_support.h
+++ b/gpu/command_buffer/client/context_support.h
@@ -6,6 +6,7 @@
#define GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_
#include "base/callback.h"
+#include "ui/gfx/rect.h"
namespace gpu {
struct ManagedMemoryStats;
@@ -26,6 +27,12 @@ class ContextSupport {
virtual void SendManagedMemoryStats(const ManagedMemoryStats& stats) = 0;
+ virtual void Swap() = 0;
+ virtual void PartialSwapBuffers(gfx::Rect sub_buffer) = 0;
+
+ virtual void SetSwapBuffersCompleteCallback(
+ const base::Closure& callback) = 0;
+
protected:
ContextSupport() {}
virtual ~ContextSupport() {}