OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CC_IPC_CC_PARAM_TRAITS_MACROS_H_ | 5 #ifndef CC_IPC_CC_PARAM_TRAITS_MACROS_H_ |
6 #define CC_IPC_CC_PARAM_TRAITS_MACROS_H_ | 6 #define CC_IPC_CC_PARAM_TRAITS_MACROS_H_ |
7 | 7 |
8 #include "cc/output/begin_frame_args.h" | 8 #include "cc/output/begin_frame_args.h" |
9 #include "cc/output/compositor_frame.h" | 9 #include "cc/output/compositor_frame.h" |
10 #include "cc/output/filter_operation.h" | 10 #include "cc/output/filter_operation.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 IPC_ENUM_TRAITS_MAX_VALUE(cc::DrawQuad::Material, cc::DrawQuad::MATERIAL_LAST) | 34 IPC_ENUM_TRAITS_MAX_VALUE(cc::DrawQuad::Material, cc::DrawQuad::MATERIAL_LAST) |
35 IPC_ENUM_TRAITS_MAX_VALUE(cc::FilterOperation::FilterType, | 35 IPC_ENUM_TRAITS_MAX_VALUE(cc::FilterOperation::FilterType, |
36 cc::FilterOperation::FILTER_TYPE_LAST) | 36 cc::FilterOperation::FILTER_TYPE_LAST) |
37 IPC_ENUM_TRAITS_MAX_VALUE(cc::ResourceFormat, cc::RESOURCE_FORMAT_MAX) | 37 IPC_ENUM_TRAITS_MAX_VALUE(cc::ResourceFormat, cc::RESOURCE_FORMAT_MAX) |
38 | 38 |
39 // TODO(fsamuel): This trait belongs with skia code. | 39 // TODO(fsamuel): This trait belongs with skia code. |
40 IPC_ENUM_TRAITS_MAX_VALUE(SkXfermode::Mode, SkXfermode::kLastMode) | 40 IPC_ENUM_TRAITS_MAX_VALUE(SkXfermode::Mode, SkXfermode::kLastMode) |
41 IPC_ENUM_TRAITS_MAX_VALUE(cc::YUVVideoDrawQuad::ColorSpace, | 41 IPC_ENUM_TRAITS_MAX_VALUE(cc::YUVVideoDrawQuad::ColorSpace, |
42 cc::YUVVideoDrawQuad::COLOR_SPACE_LAST) | 42 cc::YUVVideoDrawQuad::COLOR_SPACE_LAST) |
43 | 43 |
| 44 // TODO(hubbe): These traits belongs with media code. |
| 45 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoColorSpace::PrimaryID, |
| 46 media::VideoColorSpace::PRI_LAST); |
| 47 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoColorSpace::TransferID, |
| 48 media::VideoColorSpace::TRC_LAST); |
| 49 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoColorSpace::MatrixID, |
| 50 media::VideoColorSpace::SPC_LAST); |
| 51 |
44 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPassId) | 52 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPassId) |
45 IPC_STRUCT_TRAITS_MEMBER(layer_id) | 53 IPC_STRUCT_TRAITS_MEMBER(layer_id) |
46 IPC_STRUCT_TRAITS_MEMBER(index) | 54 IPC_STRUCT_TRAITS_MEMBER(index) |
47 IPC_STRUCT_TRAITS_END() | 55 IPC_STRUCT_TRAITS_END() |
48 | 56 |
49 IPC_STRUCT_TRAITS_BEGIN(cc::SurfaceSequence) | 57 IPC_STRUCT_TRAITS_BEGIN(cc::SurfaceSequence) |
50 IPC_STRUCT_TRAITS_MEMBER(client_id) | 58 IPC_STRUCT_TRAITS_MEMBER(client_id) |
51 IPC_STRUCT_TRAITS_MEMBER(sequence) | 59 IPC_STRUCT_TRAITS_MEMBER(sequence) |
52 IPC_STRUCT_TRAITS_END() | 60 IPC_STRUCT_TRAITS_END() |
53 | 61 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 IPC_STRUCT_TRAITS_MEMBER(nearest_neighbor) | 125 IPC_STRUCT_TRAITS_MEMBER(nearest_neighbor) |
118 IPC_STRUCT_TRAITS_END() | 126 IPC_STRUCT_TRAITS_END() |
119 | 127 |
120 IPC_STRUCT_TRAITS_BEGIN(cc::YUVVideoDrawQuad) | 128 IPC_STRUCT_TRAITS_BEGIN(cc::YUVVideoDrawQuad) |
121 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 129 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
122 IPC_STRUCT_TRAITS_MEMBER(ya_tex_coord_rect) | 130 IPC_STRUCT_TRAITS_MEMBER(ya_tex_coord_rect) |
123 IPC_STRUCT_TRAITS_MEMBER(uv_tex_coord_rect) | 131 IPC_STRUCT_TRAITS_MEMBER(uv_tex_coord_rect) |
124 IPC_STRUCT_TRAITS_MEMBER(ya_tex_size) | 132 IPC_STRUCT_TRAITS_MEMBER(ya_tex_size) |
125 IPC_STRUCT_TRAITS_MEMBER(uv_tex_size) | 133 IPC_STRUCT_TRAITS_MEMBER(uv_tex_size) |
126 IPC_STRUCT_TRAITS_MEMBER(color_space) | 134 IPC_STRUCT_TRAITS_MEMBER(color_space) |
| 135 IPC_STRUCT_TRAITS_MEMBER(video_color_space) |
127 IPC_STRUCT_TRAITS_MEMBER(resource_offset) | 136 IPC_STRUCT_TRAITS_MEMBER(resource_offset) |
128 IPC_STRUCT_TRAITS_MEMBER(resource_multiplier) | 137 IPC_STRUCT_TRAITS_MEMBER(resource_multiplier) |
129 IPC_STRUCT_TRAITS_END() | 138 IPC_STRUCT_TRAITS_END() |
130 | 139 |
| 140 IPC_STRUCT_TRAITS_BEGIN(media::VideoColorSpace) |
| 141 IPC_STRUCT_TRAITS_MEMBER(primaries) |
| 142 IPC_STRUCT_TRAITS_MEMBER(transfer) |
| 143 IPC_STRUCT_TRAITS_MEMBER(matrix) |
| 144 IPC_STRUCT_TRAITS_MEMBER(full_range) |
| 145 IPC_STRUCT_TRAITS_END() |
| 146 |
131 IPC_STRUCT_TRAITS_BEGIN(cc::SharedQuadState) | 147 IPC_STRUCT_TRAITS_BEGIN(cc::SharedQuadState) |
132 IPC_STRUCT_TRAITS_MEMBER(quad_to_target_transform) | 148 IPC_STRUCT_TRAITS_MEMBER(quad_to_target_transform) |
133 IPC_STRUCT_TRAITS_MEMBER(quad_layer_bounds) | 149 IPC_STRUCT_TRAITS_MEMBER(quad_layer_bounds) |
134 IPC_STRUCT_TRAITS_MEMBER(visible_quad_layer_rect) | 150 IPC_STRUCT_TRAITS_MEMBER(visible_quad_layer_rect) |
135 IPC_STRUCT_TRAITS_MEMBER(clip_rect) | 151 IPC_STRUCT_TRAITS_MEMBER(clip_rect) |
136 IPC_STRUCT_TRAITS_MEMBER(is_clipped) | 152 IPC_STRUCT_TRAITS_MEMBER(is_clipped) |
137 IPC_STRUCT_TRAITS_MEMBER(opacity) | 153 IPC_STRUCT_TRAITS_MEMBER(opacity) |
138 IPC_STRUCT_TRAITS_MEMBER(blend_mode) | 154 IPC_STRUCT_TRAITS_MEMBER(blend_mode) |
139 IPC_STRUCT_TRAITS_MEMBER(sorting_context_id) | 155 IPC_STRUCT_TRAITS_MEMBER(sorting_context_id) |
140 IPC_STRUCT_TRAITS_END() | 156 IPC_STRUCT_TRAITS_END() |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 IPC_STRUCT_TRAITS_MEMBER(satisfies_sequences) | 210 IPC_STRUCT_TRAITS_MEMBER(satisfies_sequences) |
195 IPC_STRUCT_TRAITS_MEMBER(referenced_surfaces) | 211 IPC_STRUCT_TRAITS_MEMBER(referenced_surfaces) |
196 IPC_STRUCT_TRAITS_END() | 212 IPC_STRUCT_TRAITS_END() |
197 | 213 |
198 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) | 214 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) |
199 IPC_STRUCT_TRAITS_MEMBER(size) | 215 IPC_STRUCT_TRAITS_MEMBER(size) |
200 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) | 216 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) |
201 IPC_STRUCT_TRAITS_END() | 217 IPC_STRUCT_TRAITS_END() |
202 | 218 |
203 #endif // CC_IPC_CC_PARAM_TRAITS_MACROS_H_ | 219 #endif // CC_IPC_CC_PARAM_TRAITS_MACROS_H_ |
OLD | NEW |