diff options
Diffstat (limited to 'mojo/services/public/interfaces/gpu/command_buffer.mojom')
-rw-r--r-- | mojo/services/public/interfaces/gpu/command_buffer.mojom | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mojo/services/public/interfaces/gpu/command_buffer.mojom b/mojo/services/public/interfaces/gpu/command_buffer.mojom index 2b938c1..df4c036 100644 --- a/mojo/services/public/interfaces/gpu/command_buffer.mojom +++ b/mojo/services/public/interfaces/gpu/command_buffer.mojom @@ -21,9 +21,14 @@ interface CommandBufferSyncClient { DidMakeProgress(CommandBufferState? state); }; +interface CommandBufferSyncPointClient { + DidInsertSyncPoint(uint32 sync_point); +}; + [Client=CommandBufferClient] interface CommandBuffer { Initialize(CommandBufferSyncClient? sync_client, + CommandBufferSyncPointClient? sync_point_client, handle<shared_buffer>? shared_state); SetGetBuffer(int32 buffer); Flush(int32 put_offset); @@ -31,6 +36,12 @@ interface CommandBuffer { RegisterTransferBuffer( int32 id, handle<shared_buffer>? transfer_buffer, uint32 size); DestroyTransferBuffer(int32 id); + + // 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 |