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/input/selection_bound_type.h" | 8 #include "cc/input/selection_bound_type.h" |
9 #include "cc/output/begin_frame_args.h" | 9 #include "cc/output/begin_frame_args.h" |
10 #include "cc/output/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
11 #include "cc/output/filter_operation.h" | 11 #include "cc/output/filter_operation.h" |
12 #include "cc/quads/debug_border_draw_quad.h" | 12 #include "cc/quads/debug_border_draw_quad.h" |
13 #include "cc/quads/draw_quad.h" | 13 #include "cc/quads/draw_quad.h" |
14 #include "cc/quads/io_surface_draw_quad.h" | |
15 #include "cc/quads/render_pass.h" | 14 #include "cc/quads/render_pass.h" |
16 #include "cc/quads/render_pass_id.h" | 15 #include "cc/quads/render_pass_id.h" |
17 #include "cc/quads/shared_quad_state.h" | 16 #include "cc/quads/shared_quad_state.h" |
18 #include "cc/quads/solid_color_draw_quad.h" | 17 #include "cc/quads/solid_color_draw_quad.h" |
19 #include "cc/quads/stream_video_draw_quad.h" | 18 #include "cc/quads/stream_video_draw_quad.h" |
20 #include "cc/quads/surface_draw_quad.h" | 19 #include "cc/quads/surface_draw_quad.h" |
21 #include "cc/quads/texture_draw_quad.h" | 20 #include "cc/quads/texture_draw_quad.h" |
22 #include "cc/quads/tile_draw_quad.h" | 21 #include "cc/quads/tile_draw_quad.h" |
23 #include "cc/quads/yuv_video_draw_quad.h" | 22 #include "cc/quads/yuv_video_draw_quad.h" |
24 #include "cc/resources/resource_format.h" | 23 #include "cc/resources/resource_format.h" |
25 #include "cc/resources/returned_resource.h" | 24 #include "cc/resources/returned_resource.h" |
26 #include "cc/resources/transferable_resource.h" | 25 #include "cc/resources/transferable_resource.h" |
27 #include "cc/surfaces/surface_id.h" | 26 #include "cc/surfaces/surface_id.h" |
28 #include "cc/surfaces/surface_sequence.h" | 27 #include "cc/surfaces/surface_sequence.h" |
29 #include "ui/events/ipc/latency_info_param_traits.h" | 28 #include "ui/events/ipc/latency_info_param_traits.h" |
30 #include "ui/gfx/ipc/gfx_param_traits.h" | 29 #include "ui/gfx/ipc/gfx_param_traits.h" |
31 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" | 30 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" |
32 | 31 |
33 #undef IPC_MESSAGE_EXPORT | 32 #undef IPC_MESSAGE_EXPORT |
34 #define IPC_MESSAGE_EXPORT CC_IPC_EXPORT | 33 #define IPC_MESSAGE_EXPORT CC_IPC_EXPORT |
35 | 34 |
36 IPC_ENUM_TRAITS_MAX_VALUE(cc::DrawQuad::Material, cc::DrawQuad::MATERIAL_LAST) | 35 IPC_ENUM_TRAITS_MAX_VALUE(cc::DrawQuad::Material, cc::DrawQuad::MATERIAL_LAST) |
37 IPC_ENUM_TRAITS_MAX_VALUE(cc::IOSurfaceDrawQuad::Orientation, | |
38 cc::IOSurfaceDrawQuad::ORIENTATION_LAST) | |
39 IPC_ENUM_TRAITS_MAX_VALUE(cc::FilterOperation::FilterType, | 36 IPC_ENUM_TRAITS_MAX_VALUE(cc::FilterOperation::FilterType, |
40 cc::FilterOperation::FILTER_TYPE_LAST) | 37 cc::FilterOperation::FILTER_TYPE_LAST) |
41 IPC_ENUM_TRAITS_MAX_VALUE(cc::ResourceFormat, cc::RESOURCE_FORMAT_MAX) | 38 IPC_ENUM_TRAITS_MAX_VALUE(cc::ResourceFormat, cc::RESOURCE_FORMAT_MAX) |
42 IPC_ENUM_TRAITS_MAX_VALUE(cc::SelectionBoundType, cc::SELECTION_BOUND_TYPE_LAST) | 39 IPC_ENUM_TRAITS_MAX_VALUE(cc::SelectionBoundType, cc::SELECTION_BOUND_TYPE_LAST) |
43 | 40 |
44 // TODO(fsamuel): This trait belongs with skia code. | 41 // TODO(fsamuel): This trait belongs with skia code. |
45 IPC_ENUM_TRAITS_MAX_VALUE(SkXfermode::Mode, SkXfermode::kLastMode) | 42 IPC_ENUM_TRAITS_MAX_VALUE(SkXfermode::Mode, SkXfermode::kLastMode) |
46 IPC_ENUM_TRAITS_MAX_VALUE(cc::YUVVideoDrawQuad::ColorSpace, | 43 IPC_ENUM_TRAITS_MAX_VALUE(cc::YUVVideoDrawQuad::ColorSpace, |
47 cc::YUVVideoDrawQuad::COLOR_SPACE_LAST) | 44 cc::YUVVideoDrawQuad::COLOR_SPACE_LAST) |
48 | 45 |
(...skipping 19 matching lines...) Expand all Loading... |
68 IPC_STRUCT_TRAITS_MEMBER(needs_blending) | 65 IPC_STRUCT_TRAITS_MEMBER(needs_blending) |
69 IPC_STRUCT_TRAITS_MEMBER(resources) | 66 IPC_STRUCT_TRAITS_MEMBER(resources) |
70 IPC_STRUCT_TRAITS_END() | 67 IPC_STRUCT_TRAITS_END() |
71 | 68 |
72 IPC_STRUCT_TRAITS_BEGIN(cc::DebugBorderDrawQuad) | 69 IPC_STRUCT_TRAITS_BEGIN(cc::DebugBorderDrawQuad) |
73 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 70 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
74 IPC_STRUCT_TRAITS_MEMBER(color) | 71 IPC_STRUCT_TRAITS_MEMBER(color) |
75 IPC_STRUCT_TRAITS_MEMBER(width) | 72 IPC_STRUCT_TRAITS_MEMBER(width) |
76 IPC_STRUCT_TRAITS_END() | 73 IPC_STRUCT_TRAITS_END() |
77 | 74 |
78 IPC_STRUCT_TRAITS_BEGIN(cc::IOSurfaceDrawQuad) | |
79 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | |
80 IPC_STRUCT_TRAITS_MEMBER(io_surface_size) | |
81 IPC_STRUCT_TRAITS_MEMBER(orientation) | |
82 IPC_STRUCT_TRAITS_END() | |
83 | |
84 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPassDrawQuad) | 75 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPassDrawQuad) |
85 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 76 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
86 IPC_STRUCT_TRAITS_MEMBER(render_pass_id) | 77 IPC_STRUCT_TRAITS_MEMBER(render_pass_id) |
87 IPC_STRUCT_TRAITS_MEMBER(mask_uv_scale) | 78 IPC_STRUCT_TRAITS_MEMBER(mask_uv_scale) |
88 IPC_STRUCT_TRAITS_MEMBER(mask_texture_size) | 79 IPC_STRUCT_TRAITS_MEMBER(mask_texture_size) |
89 IPC_STRUCT_TRAITS_MEMBER(filters) | 80 IPC_STRUCT_TRAITS_MEMBER(filters) |
90 IPC_STRUCT_TRAITS_MEMBER(filters_scale) | 81 IPC_STRUCT_TRAITS_MEMBER(filters_scale) |
91 IPC_STRUCT_TRAITS_MEMBER(background_filters) | 82 IPC_STRUCT_TRAITS_MEMBER(background_filters) |
92 IPC_STRUCT_TRAITS_END() | 83 IPC_STRUCT_TRAITS_END() |
93 | 84 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 IPC_STRUCT_TRAITS_END() | 207 IPC_STRUCT_TRAITS_END() |
217 | 208 |
218 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) | 209 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) |
219 IPC_STRUCT_TRAITS_MEMBER(mailbox) | 210 IPC_STRUCT_TRAITS_MEMBER(mailbox) |
220 IPC_STRUCT_TRAITS_MEMBER(sync_token) | 211 IPC_STRUCT_TRAITS_MEMBER(sync_token) |
221 IPC_STRUCT_TRAITS_MEMBER(size) | 212 IPC_STRUCT_TRAITS_MEMBER(size) |
222 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) | 213 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) |
223 IPC_STRUCT_TRAITS_END() | 214 IPC_STRUCT_TRAITS_END() |
224 | 215 |
225 #endif // CC_IPC_CC_PARAM_TRAITS_MACROS_H_ | 216 #endif // CC_IPC_CC_PARAM_TRAITS_MACROS_H_ |
OLD | NEW |