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 { | 8 module mojo { |
9 | 9 |
10 struct Color { | 10 struct Color { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 struct TileQuadState { | 68 struct TileQuadState { |
69 RectF tex_coord_rect; | 69 RectF tex_coord_rect; |
70 Size texture_size; | 70 Size texture_size; |
71 bool swizzle_contents; | 71 bool swizzle_contents; |
72 uint32 resource_id; | 72 uint32 resource_id; |
73 }; | 73 }; |
74 | 74 |
75 struct StreamVideoQuadState {}; | 75 struct StreamVideoQuadState {}; |
76 | 76 |
77 struct YUVVideoQuadState {}; | 77 enum YUVColorSpace { |
| 78 REC_601, // SDTV standard with restricted "studio swing" color range. |
| 79 REC_601_JPEG, // Full color range [0, 255] variant of the above. |
| 80 }; |
| 81 |
| 82 struct YUVVideoQuadState { |
| 83 RectF tex_coord_rect; |
| 84 uint32 y_plane_resource_id; |
| 85 uint32 u_plane_resource_id; |
| 86 uint32 v_plane_resource_id; |
| 87 uint32 a_plane_resource_id; |
| 88 YUVColorSpace color_space; |
| 89 }; |
78 | 90 |
79 enum Material { | 91 enum Material { |
80 CHECKERBOARD = 1, | 92 CHECKERBOARD = 1, |
81 DEBUG_BORDER, | 93 DEBUG_BORDER, |
82 IO_SURFACE_CONTENT, | 94 IO_SURFACE_CONTENT, |
83 PICTURE_CONTENT, | 95 PICTURE_CONTENT, |
84 RENDER_PASS, | 96 RENDER_PASS, |
85 SOLID_COLOR, | 97 SOLID_COLOR, |
86 STREAM_VIDEO_CONTENT, | 98 STREAM_VIDEO_CONTENT, |
87 SURFACE_CONTENT, | 99 SURFACE_CONTENT, |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 int32 id; | 201 int32 id; |
190 Rect output_rect; | 202 Rect output_rect; |
191 Rect damage_rect; | 203 Rect damage_rect; |
192 Transform transform_to_root_target; | 204 Transform transform_to_root_target; |
193 bool has_transparent_background; | 205 bool has_transparent_background; |
194 Quad[] quads; | 206 Quad[] quads; |
195 SharedQuadState[] shared_quad_states; | 207 SharedQuadState[] shared_quad_states; |
196 }; | 208 }; |
197 | 209 |
198 } | 210 } |
OLD | NEW |