| OLD | NEW |
| 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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
| 6 module mojo; | 6 module mojo; |
| 7 | 7 |
| 8 import "gpu/public/interfaces/gpu_capabilities.mojom"; | 8 import "gpu/interfaces/gpu_capabilities.mojom"; |
| 9 | 9 |
| 10 struct CommandBufferState { | 10 struct CommandBufferState { |
| 11 int32 num_entries; | 11 int32 num_entries; |
| 12 int32 get_offset; | 12 int32 get_offset; |
| 13 int32 put_offset; | 13 int32 put_offset; |
| 14 int32 token; | 14 int32 token; |
| 15 int32 error; // TODO(piman): enum | 15 int32 error; // TODO(piman): enum |
| 16 int32 context_lost_reason; // TODO(piman): enum | 16 int32 context_lost_reason; // TODO(piman): enum |
| 17 uint32 generation; | 17 uint32 generation; |
| 18 }; | 18 }; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 47 int32 id, handle<shared_buffer> transfer_buffer, uint32 size); | 47 int32 id, handle<shared_buffer> transfer_buffer, uint32 size); |
| 48 DestroyTransferBuffer(int32 id); | 48 DestroyTransferBuffer(int32 id); |
| 49 | 49 |
| 50 // InsertSyncPoint returns the sync point returned via DidInsertSyncPoint. | 50 // InsertSyncPoint returns the sync point returned via DidInsertSyncPoint. |
| 51 // If |retire| is true, the sync point is retired on insertion. Otherwise, | 51 // If |retire| is true, the sync point is retired on insertion. Otherwise, |
| 52 // explicitly call RetireSyncPoint to retire it. | 52 // explicitly call RetireSyncPoint to retire it. |
| 53 InsertSyncPoint(bool retire); | 53 InsertSyncPoint(bool retire); |
| 54 RetireSyncPoint(uint32 sync_point); | 54 RetireSyncPoint(uint32 sync_point); |
| 55 Echo() => (); | 55 Echo() => (); |
| 56 }; | 56 }; |
| OLD | NEW |