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 cc.mojom; | 5 module cc.mojom; |
6 | 6 |
7 import "cc/ipc/filter_operations.mojom"; | 7 import "cc/ipc/filter_operations.mojom"; |
8 import "cc/ipc/shared_quad_state.mojom"; | 8 import "cc/ipc/shared_quad_state.mojom"; |
9 import "cc/ipc/surface_id.mojom"; | 9 import "cc/ipc/surface_id.mojom"; |
10 import "ui/gfx/geometry/mojo/geometry.mojom"; | 10 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 11 import "ui/gfx/mojo/buffer_types.mojom"; |
11 import "ui/gfx/mojo/transform.mojom"; | 12 import "ui/gfx/mojo/transform.mojom"; |
12 | 13 |
13 struct DebugBorderQuadState { | 14 struct DebugBorderQuadState { |
14 // Debug border color. | 15 // Debug border color. |
15 uint32 color; | 16 uint32 color; |
16 | 17 |
17 // Debug border width. | 18 // Debug border width. |
18 int32 width; | 19 int32 width; |
19 }; | 20 }; |
20 | 21 |
(...skipping 18 matching lines...) Expand all Loading... |
39 }; | 40 }; |
40 | 41 |
41 struct SolidColorQuadState { | 42 struct SolidColorQuadState { |
42 uint32 color; | 43 uint32 color; |
43 bool force_anti_aliasing_off; | 44 bool force_anti_aliasing_off; |
44 }; | 45 }; |
45 | 46 |
46 struct StreamVideoQuadState { | 47 struct StreamVideoQuadState { |
47 uint32 resource_id; | 48 uint32 resource_id; |
48 gfx.mojom.Size resource_size_in_pixels; | 49 gfx.mojom.Size resource_size_in_pixels; |
| 50 gfx.mojom.BufferFormat format; |
49 gfx.mojom.Transform matrix; | 51 gfx.mojom.Transform matrix; |
50 }; | 52 }; |
51 | 53 |
52 struct SurfaceQuadState { | 54 struct SurfaceQuadState { |
53 cc.mojom.SurfaceId surface; | 55 cc.mojom.SurfaceId surface; |
54 }; | 56 }; |
55 | 57 |
56 struct TextureQuadState { | 58 struct TextureQuadState { |
57 uint32 resource_id; | 59 uint32 resource_id; |
58 gfx.mojom.Size resource_size_in_pixels; | 60 gfx.mojom.Size resource_size_in_pixels; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // Allows changing the rect that gets drawn to make it smaller. This value | 124 // Allows changing the rect that gets drawn to make it smaller. This value |
123 // should be clipped to |rect|. This rect lives in content space. | 125 // should be clipped to |rect|. This rect lives in content space. |
124 bool needs_blending; | 126 bool needs_blending; |
125 | 127 |
126 // Optionally holds a SharedQuadState (transforms etc) shared by multiple | 128 // Optionally holds a SharedQuadState (transforms etc) shared by multiple |
127 // quads. | 129 // quads. |
128 SharedQuadState? sqs; | 130 SharedQuadState? sqs; |
129 | 131 |
130 DrawQuadState draw_quad_state; | 132 DrawQuadState draw_quad_state; |
131 }; | 133 }; |
OLD | NEW |