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 import "mojo/services/public/interfaces/geometry/geometry.mojom" | 5 import "mojo/services/public/interfaces/geometry/geometry.mojom" |
6 import "mojo/services/public/interfaces/surfaces/surface_id.mojom" | 6 import "mojo/services/public/interfaces/surfaces/surface_id.mojom" |
7 | 7 |
8 module mojo.surfaces { | 8 module mojo { |
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 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // should be clipped to |rect|. This rect lives in content space. | 74 // should be clipped to |rect|. This rect lives in content space. |
75 mojo.Rect visible_rect; | 75 mojo.Rect visible_rect; |
76 | 76 |
77 // Allows changing the rect that gets drawn to make it smaller. This value | 77 // Allows changing the rect that gets drawn to make it smaller. This value |
78 // should be clipped to |rect|. This rect lives in content space. | 78 // should be clipped to |rect|. This rect lives in content space. |
79 bool needs_blending; | 79 bool needs_blending; |
80 | 80 |
81 // Index into the containing pass' shared quad state array which has state | 81 // Index into the containing pass' shared quad state array which has state |
82 // (transforms etc) shared by multiple quads. | 82 // (transforms etc) shared by multiple quads. |
83 int32 shared_quad_state_index; | 83 int32 shared_quad_state_index; |
84 | 84 |
85 // Only one of the following will be set, depending on the material. | 85 // Only one of the following will be set, depending on the material. |
86 CheckerboardQuadState checkerboard_quad_state; | 86 CheckerboardQuadState checkerboard_quad_state; |
87 DebugBorderQuadState debug_border_quad_state; | 87 DebugBorderQuadState debug_border_quad_state; |
88 IoSurfaceContentQuadState io_surface_quad_state; | 88 IoSurfaceContentQuadState io_surface_quad_state; |
89 RenderPassQuadState render_pass_quad_state; | 89 RenderPassQuadState render_pass_quad_state; |
90 SolidColorQuadState solid_color_quad_state; | 90 SolidColorQuadState solid_color_quad_state; |
91 SurfaceQuadState surface_quad_state; | 91 SurfaceQuadState surface_quad_state; |
92 TextureQuadState texture_quad_state; | 92 TextureQuadState texture_quad_state; |
93 TiledContentQuadState tiled_content_quad_state; | 93 TiledContentQuadState tiled_content_quad_state; |
94 StreamVideoQuadState stream_video_quad_state; | 94 StreamVideoQuadState stream_video_quad_state; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 int32 id; | 158 int32 id; |
159 mojo.Rect output_rect; | 159 mojo.Rect output_rect; |
160 mojo.Rect damage_rect; | 160 mojo.Rect damage_rect; |
161 mojo.Transform transform_to_root_target; | 161 mojo.Transform transform_to_root_target; |
162 bool has_transparent_background; | 162 bool has_transparent_background; |
163 Quad[] quads; | 163 Quad[] quads; |
164 SharedQuadState[] shared_quad_states; | 164 SharedQuadState[] shared_quad_states; |
165 }; | 165 }; |
166 | 166 |
167 } | 167 } |
OLD | NEW |