| 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 import "mojo/services/public/interfaces/gpu/gpu_capabilities.mojom"; | 7 import "mojo/services/gpu/public/interfaces/gpu_capabilities.mojom"; |
| 8 | 8 |
| 9 struct CommandBufferState { | 9 struct CommandBufferState { |
| 10 int32 num_entries; | 10 int32 num_entries; |
| 11 int32 get_offset; | 11 int32 get_offset; |
| 12 int32 put_offset; | 12 int32 put_offset; |
| 13 int32 token; | 13 int32 token; |
| 14 int32 error; // TODO(piman): enum | 14 int32 error; // TODO(piman): enum |
| 15 int32 context_lost_reason; // TODO(piman): enum | 15 int32 context_lost_reason; // TODO(piman): enum |
| 16 uint32 generation; | 16 uint32 generation; |
| 17 }; | 17 }; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 44 RetireSyncPoint(uint32 sync_point); | 44 RetireSyncPoint(uint32 sync_point); |
| 45 Echo() => (); | 45 Echo() => (); |
| 46 | 46 |
| 47 // TODO(piman): sync points | 47 // TODO(piman): sync points |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 interface CommandBufferClient { | 50 interface CommandBufferClient { |
| 51 DidDestroy(); | 51 DidDestroy(); |
| 52 LostContext(int32 lost_reason); // TODO(piman): enum | 52 LostContext(int32 lost_reason); // TODO(piman): enum |
| 53 }; | 53 }; |
| OLD | NEW |