summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/common/gpu_control.h
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-02 07:07:37 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-02 07:07:37 +0000
commitfff7cb34cf590dad0b3251fad94f5d8e0b2a734a (patch)
tree1e4b05f8635a5ad41527867a6142c7c228a163c4 /gpu/command_buffer/common/gpu_control.h
parenta3216d6629ee0f00f0e46e2a5b26020006a2f4a0 (diff)
downloadchromium_src-fff7cb34cf590dad0b3251fad94f5d8e0b2a734a.zip
chromium_src-fff7cb34cf590dad0b3251fad94f5d8e0b2a734a.tar.gz
chromium_src-fff7cb34cf590dad0b3251fad94f5d8e0b2a734a.tar.bz2
Move Insert/SignalSyncPoint() to GpuControl
This moves InsertSyncPoint() and SignalSyncPoint() to the gpu::GpuControl interface to get a step closer to removing the WebGraphicsContext3D interface. R=piman,sievers Review URL: https://codereview.chromium.org/24925002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226412 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/common/gpu_control.h')
-rw-r--r--gpu/command_buffer/common/gpu_control.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/gpu_control.h b/gpu/command_buffer/common/gpu_control.h
index 61b5cb1..84a6373 100644
--- a/gpu/command_buffer/common/gpu_control.h
+++ b/gpu/command_buffer/common/gpu_control.h
@@ -7,6 +7,7 @@
#include <vector>
+#include "base/callback.h"
#include "gpu/command_buffer/common/mailbox.h"
#include "gpu/command_buffer/common/types.h"
#include "gpu/gpu_export.h"
@@ -41,6 +42,14 @@ class GPU_EXPORT GpuControl {
virtual bool GenerateMailboxNames(unsigned num,
std::vector<gpu::Mailbox>* names) = 0;
+ // Inserts a sync point, returning its ID. Sync point IDs are global and can
+ // be used for cross-context synchronization.
+ virtual uint32 InsertSyncPoint() = 0;
+
+ // Runs |callback| when a sync point is reached.
+ virtual void SignalSyncPoint(uint32 sync_point,
+ const base::Closure& callback) = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(GpuControl);
};