Index: gpu/command_buffer/service/sync_point_manager.cc |
diff --git a/gpu/command_buffer/service/sync_point_manager.cc b/gpu/command_buffer/service/sync_point_manager.cc |
index cd8c49088b4e79405f3abe814db9b7da70525a9b..4ba8a0e2422eb6d35c8aacc224a12f6cf6350d6f 100644 |
--- a/gpu/command_buffer/service/sync_point_manager.cc |
+++ b/gpu/command_buffer/service/sync_point_manager.cc |
@@ -81,4 +81,10 @@ bool SyncPointManager::IsSyncPointRetired(uint32 sync_point) { |
} |
} |
+bool SyncPointManager::WasSyncPointGenerated(uint32 sync_point) { |
+ base::AutoLock lock(lock_); |
+ |
+ return next_sync_point_ - 1 - sync_point < 0x80000000; |
+} |
+ |
} // namespace gpu |