Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: gpu/command_buffer/common/gpu_control.h

Issue 24925002: Move Insert/SignalSyncPoint() to GpuControl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/common/gpu_control.h
diff --git a/gpu/command_buffer/common/gpu_control.h b/gpu/command_buffer/common/gpu_control.h
index 503c745b434ff8e1181649e7a10e6a64e9eeafed..b47d85f81198ba1a94d11a28abd64b7394a7ad36 100644
--- a/gpu/command_buffer/common/gpu_control.h
+++ b/gpu/command_buffer/common/gpu_control.h
@@ -5,6 +5,7 @@
#ifndef GPU_COMMAND_BUFFER_COMMON_GPU_CONTROL_H_
#define GPU_COMMAND_BUFFER_COMMON_GPU_CONTROL_H_
+#include "base/callback.h"
#include "gpu/command_buffer/common/types.h"
#include "gpu/gpu_export.h"
@@ -33,6 +34,14 @@ class GPU_EXPORT GpuControl {
// Destroy a gpu memory buffer. The ID must be positive.
virtual void DestroyGpuMemoryBuffer(int32 id) = 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 or the context is destroyed.
no sievers 2013/09/27 18:13:04 Does it really currently really run it when the co
+ virtual void SignalSyncPoint(uint32 sync_point,
+ const base::Closure& callback) = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(GpuControl);
};

Powered by Google App Engine
This is Rietveld 408576698