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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « mojo/services/gles2/command_buffer_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module mojo; 5 module mojo;
6 6
7 import "mojo/services/public/interfaces/gpu/gpu_capabilities.mojom"; 7 import "mojo/services/public/interfaces/gpu/gpu_capabilities.mojom";
8 8
9 struct CommandBufferState { 9 struct CommandBufferState {
10 int32 num_entries; 10 int32 num_entries;
(...skipping 18 matching lines...) Expand all
29 interface CommandBuffer { 29 interface CommandBuffer {
30 Initialize(CommandBufferSyncClient? sync_client, 30 Initialize(CommandBufferSyncClient? sync_client,
31 CommandBufferSyncPointClient? sync_point_client, 31 CommandBufferSyncPointClient? sync_point_client,
32 handle<shared_buffer>? shared_state); 32 handle<shared_buffer>? shared_state);
33 SetGetBuffer(int32 buffer); 33 SetGetBuffer(int32 buffer);
34 Flush(int32 put_offset); 34 Flush(int32 put_offset);
35 MakeProgress(int32 last_get_offset); 35 MakeProgress(int32 last_get_offset);
36 RegisterTransferBuffer( 36 RegisterTransferBuffer(
37 int32 id, handle<shared_buffer>? transfer_buffer, uint32 size); 37 int32 id, handle<shared_buffer>? transfer_buffer, uint32 size);
38 DestroyTransferBuffer(int32 id); 38 DestroyTransferBuffer(int32 id);
39 InsertSyncPoint(); // Sync point returned via DidInsertSyncPoint 39
40 // InsertSyncPoint returns the sync point returned via DidInsertSyncPoint.
41 // If |retire| is true, the sync point is retired on insertion. Otherwise,
42 // explicitly call RetireSyncPoint to retire it.
43 InsertSyncPoint(bool retire);
44 RetireSyncPoint(uint32 sync_point);
40 Echo() => (); 45 Echo() => ();
41 46
42 // TODO(piman): sync points 47 // TODO(piman): sync points
43 }; 48 };
44 49
45 interface CommandBufferClient { 50 interface CommandBufferClient {
46 DidDestroy(); 51 DidDestroy();
47 LostContext(int32 lost_reason); // TODO(piman): enum 52 LostContext(int32 lost_reason); // TODO(piman): enum
48 }; 53 };
OLDNEW
« 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