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 module mojo { | 5 module mojo; |
6 | 6 |
7 struct CommandBufferState { | 7 struct CommandBufferState { |
8 int32 num_entries; | 8 int32 num_entries; |
9 int32 get_offset; | 9 int32 get_offset; |
10 int32 put_offset; | 10 int32 put_offset; |
11 int32 token; | 11 int32 token; |
12 int32 error; // TODO(piman): enum | 12 int32 error; // TODO(piman): enum |
13 int32 context_lost_reason; // TODO(piman): enum | 13 int32 context_lost_reason; // TODO(piman): enum |
14 uint32 generation; | 14 uint32 generation; |
15 }; | 15 }; |
(...skipping 15 matching lines...) Expand all Loading... |
31 DestroyTransferBuffer(int32 id); | 31 DestroyTransferBuffer(int32 id); |
32 Echo() => (); | 32 Echo() => (); |
33 | 33 |
34 // TODO(piman): sync points | 34 // TODO(piman): sync points |
35 }; | 35 }; |
36 | 36 |
37 interface CommandBufferClient { | 37 interface CommandBufferClient { |
38 DidDestroy(); | 38 DidDestroy(); |
39 LostContext(int32 lost_reason); // TODO(piman): enum | 39 LostContext(int32 lost_reason); // TODO(piman): enum |
40 }; | 40 }; |
41 | |
42 } | |
OLD | NEW |