summaryrefslogtreecommitdiffstats
path: root/chromium/content/common/gpu/sync_point_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/common/gpu/sync_point_manager.h')
-rw-r--r--chromium/content/common/gpu/sync_point_manager.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/chromium/content/common/gpu/sync_point_manager.h b/chromium/content/common/gpu/sync_point_manager.h
index 04591828bf7..77a4e6d0b75 100644
--- a/chromium/content/common/gpu/sync_point_manager.h
+++ b/chromium/content/common/gpu/sync_point_manager.h
@@ -22,7 +22,7 @@ class SyncPointManager : public base::RefCountedThreadSafe<SyncPointManager> {
SyncPointManager();
// Generates a sync point, returning its ID. This can me called on any thread.
- // IDs start at 1.
+ // IDs start at a random number. Never return 0.
uint32 GenerateSyncPoint();
// Retires a sync point. This will call all the registered callbacks for this
@@ -35,6 +35,8 @@ class SyncPointManager : public base::RefCountedThreadSafe<SyncPointManager> {
// called on the main thread.
void AddSyncPointCallback(uint32 sync_point, const base::Closure& callback);
+ bool IsSyncPointRetired(uint32 sync_point);
+
private:
friend class base::RefCountedThreadSafe<SyncPointManager>;
typedef std::vector<base::Closure> ClosureList;