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 { |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 kLastSeparableMode = kMultiply_Mode, | 176 kLastSeparableMode = kMultiply_Mode, |
177 | 177 |
178 kHue_Mode, | 178 kHue_Mode, |
179 kSaturation_Mode, | 179 kSaturation_Mode, |
180 kColor_Mode, | 180 kColor_Mode, |
181 kLuminosity_Mode, | 181 kLuminosity_Mode, |
182 kLastMode = kLuminosity_Mode | 182 kLastMode = kLuminosity_Mode |
183 }; | 183 }; |
184 | 184 |
185 struct SharedQuadState { | 185 struct SharedQuadState { |
186 // Transforms from quad's original content space to its target content space. | 186 // Transforms quad rects into the target content space. |
187 Transform content_to_target_transform; | 187 Transform quad_to_target_transform; |
188 | 188 |
189 // This size lives in the content space for the quad's originating layer. | 189 // The size of the quads' originating layer in the space of the quad rects. |
190 Size content_bounds; | 190 Size quad_layer_bounds; |
191 | 191 |
192 // This rect lives in the content space for the quad's originating layer. | 192 // The size of the visible area in the quads' originating layer, in the space |
193 Rect visible_content_rect; | 193 // of the quad rects. |
| 194 Rect visible_quad_layer_rect; |
194 | 195 |
195 // This rect lives in the target content space. | 196 // This rect lives in the target content space. |
196 Rect clip_rect; | 197 Rect clip_rect; |
197 | 198 |
198 bool is_clipped; | 199 bool is_clipped; |
199 float opacity; | 200 float opacity; |
200 SkXfermode blend_mode; | 201 SkXfermode blend_mode; |
201 int32 sorting_context_id; | 202 int32 sorting_context_id; |
202 }; | 203 }; |
203 | 204 |
204 struct Pass { | 205 struct Pass { |
205 RenderPassId id; | 206 RenderPassId id; |
206 Rect output_rect; | 207 Rect output_rect; |
207 Rect damage_rect; | 208 Rect damage_rect; |
208 Transform transform_to_root_target; | 209 Transform transform_to_root_target; |
209 bool has_transparent_background; | 210 bool has_transparent_background; |
210 array<Quad> quads; | 211 array<Quad> quads; |
211 array<SharedQuadState> shared_quad_states; | 212 array<SharedQuadState> shared_quad_states; |
212 }; | 213 }; |
OLD | NEW |