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 "cc/ipc/render_pass_id.mojom"; | 7 import "cc/ipc/render_pass_id.mojom"; |
8 import "cc/ipc/surface_id.mojom"; | 8 import "cc/ipc/surface_id.mojom"; |
9 import "ui/gfx/geometry/mojo/geometry.mojom"; | 9 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 10 import "ui/gfx/mojo/transform.mojom"; |
10 | 11 |
11 struct Color { | 12 struct Color { |
12 uint32 rgba; | 13 uint32 rgba; |
13 }; | 14 }; |
14 | 15 |
15 struct CheckerboardQuadState { | 16 struct CheckerboardQuadState { |
16 // Checkerboard color. | 17 // Checkerboard color. |
17 Color color; | 18 Color color; |
18 | 19 |
19 // The scale factor of checkers. Chromium uses device scale factor for | 20 // The scale factor of checkers. Chromium uses device scale factor for |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 191 |
191 kHue_Mode, | 192 kHue_Mode, |
192 kSaturation_Mode, | 193 kSaturation_Mode, |
193 kColor_Mode, | 194 kColor_Mode, |
194 kLuminosity_Mode, | 195 kLuminosity_Mode, |
195 kLastMode = kLuminosity_Mode | 196 kLastMode = kLuminosity_Mode |
196 }; | 197 }; |
197 | 198 |
198 struct SharedQuadState { | 199 struct SharedQuadState { |
199 // mojo.Transforms quad rects into the target content space. | 200 // mojo.Transforms quad rects into the target content space. |
200 mojo.Transform quad_to_target_transform; | 201 gfx.mojom.Transform quad_to_target_transform; |
201 | 202 |
202 // The size of the quads' originating layer in the space of the quad rects. | 203 // The size of the quads' originating layer in the space of the quad rects. |
203 mojo.Size quad_layer_bounds; | 204 mojo.Size quad_layer_bounds; |
204 | 205 |
205 // The size of the visible area in the quads' originating layer, in the space | 206 // The size of the visible area in the quads' originating layer, in the space |
206 // of the quad rects. | 207 // of the quad rects. |
207 mojo.Rect visible_quad_layer_rect; | 208 mojo.Rect visible_quad_layer_rect; |
208 | 209 |
209 // This rect lives in the target content space. | 210 // This rect lives in the target content space. |
210 mojo.Rect clip_rect; | 211 mojo.Rect clip_rect; |
211 | 212 |
212 bool is_clipped; | 213 bool is_clipped; |
213 float opacity; | 214 float opacity; |
214 SkXfermode blend_mode; | 215 SkXfermode blend_mode; |
215 int32 sorting_context_id; | 216 int32 sorting_context_id; |
216 }; | 217 }; |
217 | 218 |
218 struct Pass { | 219 struct Pass { |
219 cc.mojom.RenderPassId id; | 220 cc.mojom.RenderPassId id; |
220 mojo.Rect output_rect; | 221 mojo.Rect output_rect; |
221 mojo.Rect damage_rect; | 222 mojo.Rect damage_rect; |
222 mojo.Transform transform_to_root_target; | 223 gfx.mojom.Transform transform_to_root_target; |
223 bool has_transparent_background; | 224 bool has_transparent_background; |
224 array<Quad> quads; | 225 array<Quad> quads; |
225 array<SharedQuadState> shared_quad_states; | 226 array<SharedQuadState> shared_quad_states; |
226 }; | 227 }; |
OLD | NEW |