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 mus.mojom; | 5 module mus.mojom; |
6 | 6 |
7 import "components/mus/public/interfaces/gpu_capabilities.mojom"; | 7 import "components/mus/public/interfaces/gpu_capabilities.mojom"; |
8 import "ui/mojo/geometry/geometry.mojom"; | 8 import "ui/mojo/geometry/geometry.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 }; |
19 | 19 |
20 interface CommandBufferSyncClient { | 20 interface CommandBufferSyncClient { |
21 // |capabilities| is null if |success| is false. | 21 // |capabilities| is null if |success| is false. |
22 DidInitialize(bool success, GpuCapabilities? capabilities); | 22 DidInitialize(bool success, |
| 23 int32 command_buffer_namespace, |
| 24 uint64 command_buffer_id, |
| 25 GpuCapabilities? capabilities); |
23 DidMakeProgress(CommandBufferState state); | 26 DidMakeProgress(CommandBufferState state); |
24 }; | 27 }; |
25 | 28 |
26 interface CommandBufferSyncPointClient { | 29 interface CommandBufferSyncPointClient { |
27 DidInsertSyncPoint(uint32 sync_point); | 30 DidInsertSyncPoint(uint32 sync_point); |
28 }; | 31 }; |
29 | 32 |
30 interface CommandBufferLostContextObserver { | 33 interface CommandBufferLostContextObserver { |
31 DidLoseContext(int32 context_lost_reason); | 34 DidLoseContext(int32 context_lost_reason); |
32 }; | 35 }; |
(...skipping 24 matching lines...) Expand all Loading... |
57 Echo() => (); | 60 Echo() => (); |
58 | 61 |
59 CreateImage(int32 id, | 62 CreateImage(int32 id, |
60 handle memory_handle, | 63 handle memory_handle, |
61 int32 type, | 64 int32 type, |
62 mojo.Size size, | 65 mojo.Size size, |
63 int32 format, | 66 int32 format, |
64 int32 internal_format); | 67 int32 internal_format); |
65 DestroyImage(int32 id); | 68 DestroyImage(int32 id); |
66 }; | 69 }; |
OLD | NEW |