| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ui/mojo/geometry/geometry.mojom"; | 7 import "ui/mojo/geometry/geometry.mojom"; |
| 8 import "components/mus/public/interfaces/quads.mojom"; | 8 import "components/mus/public/interfaces/quads.mojom"; |
| 9 | 9 |
| 10 enum ResourceFormat { | 10 // See src/cc/resources/resource_format.h |
| 11 RGBA_8888, | 11 [Native=True] |
| 12 RGBA_4444, | 12 enum ResourceFormat; |
| 13 BGRA_8888, | |
| 14 ALPHA_8, | |
| 15 LUMINANCE_8, | |
| 16 RGB_565, | |
| 17 ETC1, | |
| 18 }; | |
| 19 | 13 |
| 20 // See src/gpu/command_buffer/common/constants.h | 14 // See src/gpu/command_buffer/common/constants.h |
| 21 enum CommandBufferNamespace { | 15 [Native=True] |
| 22 INVALID = -1, | 16 enum CommandBufferNamespace; |
| 23 | |
| 24 GPU_IO, | |
| 25 IN_PROCESS, | |
| 26 MOJO, | |
| 27 MOJO_LOCAL, | |
| 28 OLD_SYNC_POINTS, | |
| 29 | |
| 30 NUM_COMMAND_BUFFER_NAMESPACES | |
| 31 }; | |
| 32 | 17 |
| 33 // See src/gpu/command_buffer/common/sync_token.h | 18 // See src/gpu/command_buffer/common/sync_token.h |
| 34 struct SyncToken { | 19 struct SyncToken { |
| 35 bool verified_flush; | 20 bool verified_flush; |
| 36 CommandBufferNamespace namespace_id; | 21 CommandBufferNamespace namespace_id; |
| 37 int32 extra_data_field; | 22 int32 extra_data_field; |
| 38 uint64 command_buffer_id; | 23 uint64 command_buffer_id; |
| 39 uint64 release_count; | 24 uint64 release_count; |
| 40 }; | 25 }; |
| 41 | 26 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 interface Surface { | 79 interface Surface { |
| 95 // After the submitted frame is drawn for the first time, the receiver will | 80 // After the submitted frame is drawn for the first time, the receiver will |
| 96 // respond to the SubmitFrame message. Clients should use this acknowledgement | 81 // respond to the SubmitFrame message. Clients should use this acknowledgement |
| 97 // to ratelimit frame submissions. | 82 // to ratelimit frame submissions. |
| 98 SubmitCompositorFrame(CompositorFrame frame) => (); | 83 SubmitCompositorFrame(CompositorFrame frame) => (); |
| 99 }; | 84 }; |
| 100 | 85 |
| 101 interface SurfaceClient { | 86 interface SurfaceClient { |
| 102 ReturnResources(array<ReturnedResource> resources); | 87 ReturnResources(array<ReturnedResource> resources); |
| 103 }; | 88 }; |
| OLD | NEW |