| 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 "mojo/services/geometry/public/interfaces/geometry.mojom"; | 7 import "mojo/services/geometry/public/interfaces/geometry.mojom"; |
| 8 import "mojo/services/surfaces/public/interfaces/surface_id.mojom"; | 8 import "mojo/services/surfaces/public/interfaces/surface_id.mojom"; |
| 9 | 9 |
| 10 struct Color { | 10 struct Color { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 array<float, 4> vertex_opacity; | 65 array<float, 4> vertex_opacity; |
| 66 bool flipped; | 66 bool flipped; |
| 67 bool nearest_neighbor; | 67 bool nearest_neighbor; |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 struct TileQuadState { | 70 struct TileQuadState { |
| 71 RectF tex_coord_rect; | 71 RectF tex_coord_rect; |
| 72 Size texture_size; | 72 Size texture_size; |
| 73 bool swizzle_contents; | 73 bool swizzle_contents; |
| 74 uint32 resource_id; | 74 uint32 resource_id; |
| 75 bool nearest_neighbor; |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 struct StreamVideoQuadState {}; | 78 struct StreamVideoQuadState {}; |
| 78 | 79 |
| 79 enum YUVColorSpace { | 80 enum YUVColorSpace { |
| 80 REC_601, // SDTV standard with restricted "studio swing" color range. | 81 REC_601, // SDTV standard with restricted "studio swing" color range. |
| 81 REC_601_JPEG, // Full color range [0, 255] variant of the above. | 82 REC_601_JPEG, // Full color range [0, 255] variant of the above. |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 struct YUVVideoQuadState { | 85 struct YUVVideoQuadState { |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 202 |
| 202 struct Pass { | 203 struct Pass { |
| 203 int32 id; | 204 int32 id; |
| 204 Rect output_rect; | 205 Rect output_rect; |
| 205 Rect damage_rect; | 206 Rect damage_rect; |
| 206 Transform transform_to_root_target; | 207 Transform transform_to_root_target; |
| 207 bool has_transparent_background; | 208 bool has_transparent_background; |
| 208 array<Quad> quads; | 209 array<Quad> quads; |
| 209 array<SharedQuadState> shared_quad_states; | 210 array<SharedQuadState> shared_quad_states; |
| 210 }; | 211 }; |
| OLD | NEW |