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 "geometry/public/interfaces/geometry.mojom"; | 7 import "geometry/public/interfaces/geometry.mojom"; |
8 import "surfaces/public/interfaces/surface_id.mojom"; | 8 import "surfaces/public/interfaces/surface_id.mojom"; |
9 | 9 |
10 struct Color { | 10 struct Color { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 bool nearest_neighbor; |
76 }; | 76 }; |
77 | 77 |
78 struct StreamVideoQuadState {}; | 78 struct StreamVideoQuadState {}; |
79 | 79 |
80 enum YUVColorSpace { | 80 enum YUVColorSpace { |
81 REC_601, // SDTV standard with restricted "studio swing" color range. | 81 REC_601, // SDTV standard with restricted "studio swing" color range. |
82 REC_709, // HDTV standard with restricted "studio swing" color range. | 82 REC_601_JPEG, // Full color range [0, 255] variant of the above. |
83 JPEG, // Full color range [0, 255] JPEG color space. | |
84 }; | 83 }; |
85 | 84 |
86 struct YUVVideoQuadState { | 85 struct YUVVideoQuadState { |
87 RectF tex_coord_rect; | 86 RectF tex_coord_rect; |
88 uint32 y_plane_resource_id; | 87 uint32 y_plane_resource_id; |
89 uint32 u_plane_resource_id; | 88 uint32 u_plane_resource_id; |
90 uint32 v_plane_resource_id; | 89 uint32 v_plane_resource_id; |
91 uint32 a_plane_resource_id; | 90 uint32 a_plane_resource_id; |
92 YUVColorSpace color_space; | 91 YUVColorSpace color_space; |
93 }; | 92 }; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 202 |
204 struct Pass { | 203 struct Pass { |
205 int32 id; | 204 int32 id; |
206 Rect output_rect; | 205 Rect output_rect; |
207 Rect damage_rect; | 206 Rect damage_rect; |
208 Transform transform_to_root_target; | 207 Transform transform_to_root_target; |
209 bool has_transparent_background; | 208 bool has_transparent_background; |
210 array<Quad> quads; | 209 array<Quad> quads; |
211 array<SharedQuadState> shared_quad_states; | 210 array<SharedQuadState> shared_quad_states; |
212 }; | 211 }; |
OLD | NEW |