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 "components/view_manager/public/interfaces/surface_id.mojom"; | 7 import "components/view_manager/public/interfaces/surface_id.mojom"; |
8 import "ui/mojo/geometry/geometry.mojom"; | 8 import "ui/mojo/geometry/geometry.mojom"; |
9 | 9 |
10 struct Color { | 10 struct Color { |
11 uint32 rgba; | 11 uint32 rgba; |
12 }; | 12 }; |
13 | 13 |
14 // TODO(jamesr): Populate subtype fields. | 14 // TODO(jamesr): Populate subtype fields. |
15 struct CheckerboardQuadState {}; | 15 struct CheckerboardQuadState {}; |
16 | 16 |
17 struct DebugBorderQuadState {}; | 17 struct DebugBorderQuadState {}; |
18 | 18 |
19 struct IoSurfaceContentQuadState {}; | 19 struct IoSurfaceContentQuadState {}; |
20 | 20 |
21 struct RenderPassId { | 21 struct RenderPassId { |
22 int32 layer_id; | 22 int32 layer_id; |
23 int32 index; | 23 uint32 index; |
sky
2015/06/08 14:53:13
Seems wrong to have this and RenderPassId::index d
vmpstr
2015/06/08 18:59:27
The problem is that I think the correct type for R
| |
24 }; | 24 }; |
25 | 25 |
26 struct RenderPassQuadState { | 26 struct RenderPassQuadState { |
27 RenderPassId render_pass_id; | 27 RenderPassId render_pass_id; |
28 | 28 |
29 // If nonzero, resource id of mask to use when drawing this pass. | 29 // If nonzero, resource id of mask to use when drawing this pass. |
30 uint32 mask_resource_id; | 30 uint32 mask_resource_id; |
31 PointF mask_uv_scale; | 31 PointF mask_uv_scale; |
32 Size mask_texture_size; | 32 Size mask_texture_size; |
33 | 33 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
203 | 203 |
204 struct Pass { | 204 struct Pass { |
205 RenderPassId id; | 205 RenderPassId id; |
206 Rect output_rect; | 206 Rect output_rect; |
207 Rect damage_rect; | 207 Rect damage_rect; |
208 Transform transform_to_root_target; | 208 Transform transform_to_root_target; |
209 bool has_transparent_background; | 209 bool has_transparent_background; |
210 array<Quad> quads; | 210 array<Quad> quads; |
211 array<SharedQuadState> shared_quad_states; | 211 array<SharedQuadState> shared_quad_states; |
212 }; | 212 }; |
OLD | NEW |