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

Unified Diff: mojo/services/public/interfaces/gpu/command_buffer.mojom

Issue 745043002: Implement future sync points in gpu service (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « mojo/services/gles2/command_buffer_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/public/interfaces/gpu/command_buffer.mojom
diff --git a/mojo/services/public/interfaces/gpu/command_buffer.mojom b/mojo/services/public/interfaces/gpu/command_buffer.mojom
index 1a2248db0641ecb93996ab1c0f43efb30db577a8..df4c03607e11770a12c8a7b56d2a8d473318521b 100644
--- a/mojo/services/public/interfaces/gpu/command_buffer.mojom
+++ b/mojo/services/public/interfaces/gpu/command_buffer.mojom
@@ -36,7 +36,12 @@ interface CommandBuffer {
RegisterTransferBuffer(
int32 id, handle<shared_buffer>? transfer_buffer, uint32 size);
DestroyTransferBuffer(int32 id);
- InsertSyncPoint(); // Sync point returned via DidInsertSyncPoint
+
+ // InsertSyncPoint returns the sync point returned via DidInsertSyncPoint.
+ // If |retire| is true, the sync point is retired on insertion. Otherwise,
+ // explicitly call RetireSyncPoint to retire it.
+ InsertSyncPoint(bool retire);
+ RetireSyncPoint(uint32 sync_point);
Echo() => ();
// TODO(piman): sync points
« no previous file with comments | « mojo/services/gles2/command_buffer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698