Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: cc/ipc/cc_param_traits_macros.h

Issue 2030033003: Replace cc::ViewportSelectionBound with gfx::SelectionBound (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android build compiles locally Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
9 #include "cc/output/begin_frame_args.h" 8 #include "cc/output/begin_frame_args.h"
10 #include "cc/output/compositor_frame.h" 9 #include "cc/output/compositor_frame.h"
11 #include "cc/output/filter_operation.h" 10 #include "cc/output/filter_operation.h"
12 #include "cc/quads/debug_border_draw_quad.h" 11 #include "cc/quads/debug_border_draw_quad.h"
13 #include "cc/quads/draw_quad.h" 12 #include "cc/quads/draw_quad.h"
14 #include "cc/quads/render_pass.h" 13 #include "cc/quads/render_pass.h"
15 #include "cc/quads/render_pass_id.h" 14 #include "cc/quads/render_pass_id.h"
16 #include "cc/quads/shared_quad_state.h" 15 #include "cc/quads/shared_quad_state.h"
17 #include "cc/quads/solid_color_draw_quad.h" 16 #include "cc/quads/solid_color_draw_quad.h"
18 #include "cc/quads/stream_video_draw_quad.h" 17 #include "cc/quads/stream_video_draw_quad.h"
(...skipping 10 matching lines...) Expand all
29 #include "ui/gfx/ipc/gfx_param_traits.h" 28 #include "ui/gfx/ipc/gfx_param_traits.h"
30 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" 29 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
31 30
32 #undef IPC_MESSAGE_EXPORT 31 #undef IPC_MESSAGE_EXPORT
33 #define IPC_MESSAGE_EXPORT CC_IPC_EXPORT 32 #define IPC_MESSAGE_EXPORT CC_IPC_EXPORT
34 33
35 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)
36 IPC_ENUM_TRAITS_MAX_VALUE(cc::FilterOperation::FilterType, 35 IPC_ENUM_TRAITS_MAX_VALUE(cc::FilterOperation::FilterType,
37 cc::FilterOperation::FILTER_TYPE_LAST) 36 cc::FilterOperation::FILTER_TYPE_LAST)
38 IPC_ENUM_TRAITS_MAX_VALUE(cc::ResourceFormat, cc::RESOURCE_FORMAT_MAX) 37 IPC_ENUM_TRAITS_MAX_VALUE(cc::ResourceFormat, cc::RESOURCE_FORMAT_MAX)
39 IPC_ENUM_TRAITS_MAX_VALUE(cc::SelectionBoundType, cc::SELECTION_BOUND_TYPE_LAST)
40 38
41 // TODO(fsamuel): This trait belongs with skia code. 39 // TODO(fsamuel): This trait belongs with skia code.
42 IPC_ENUM_TRAITS_MAX_VALUE(SkXfermode::Mode, SkXfermode::kLastMode) 40 IPC_ENUM_TRAITS_MAX_VALUE(SkXfermode::Mode, SkXfermode::kLastMode)
43 IPC_ENUM_TRAITS_MAX_VALUE(cc::YUVVideoDrawQuad::ColorSpace, 41 IPC_ENUM_TRAITS_MAX_VALUE(cc::YUVVideoDrawQuad::ColorSpace,
44 cc::YUVVideoDrawQuad::COLOR_SPACE_LAST) 42 cc::YUVVideoDrawQuad::COLOR_SPACE_LAST)
45 43
46 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPassId) 44 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPassId)
47 IPC_STRUCT_TRAITS_MEMBER(layer_id) 45 IPC_STRUCT_TRAITS_MEMBER(layer_id)
48 IPC_STRUCT_TRAITS_MEMBER(index) 46 IPC_STRUCT_TRAITS_MEMBER(index)
49 IPC_STRUCT_TRAITS_END() 47 IPC_STRUCT_TRAITS_END()
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 IPC_STRUCT_TRAITS_MEMBER(is_overlay_candidate) 151 IPC_STRUCT_TRAITS_MEMBER(is_overlay_candidate)
154 IPC_STRUCT_TRAITS_END() 152 IPC_STRUCT_TRAITS_END()
155 153
156 IPC_STRUCT_TRAITS_BEGIN(cc::ReturnedResource) 154 IPC_STRUCT_TRAITS_BEGIN(cc::ReturnedResource)
157 IPC_STRUCT_TRAITS_MEMBER(id) 155 IPC_STRUCT_TRAITS_MEMBER(id)
158 IPC_STRUCT_TRAITS_MEMBER(sync_token) 156 IPC_STRUCT_TRAITS_MEMBER(sync_token)
159 IPC_STRUCT_TRAITS_MEMBER(count) 157 IPC_STRUCT_TRAITS_MEMBER(count)
160 IPC_STRUCT_TRAITS_MEMBER(lost) 158 IPC_STRUCT_TRAITS_MEMBER(lost)
161 IPC_STRUCT_TRAITS_END() 159 IPC_STRUCT_TRAITS_END()
162 160
163 IPC_STRUCT_TRAITS_BEGIN(cc::ViewportSelectionBound) 161 IPC_STRUCT_TRAITS_BEGIN(cc::Selection<gfx::SelectionBound>)
164 IPC_STRUCT_TRAITS_MEMBER(type)
165 IPC_STRUCT_TRAITS_MEMBER(edge_top)
166 IPC_STRUCT_TRAITS_MEMBER(edge_bottom)
167 IPC_STRUCT_TRAITS_MEMBER(visible)
168 IPC_STRUCT_TRAITS_END()
169
170 IPC_STRUCT_TRAITS_BEGIN(cc::ViewportSelection)
171 IPC_STRUCT_TRAITS_MEMBER(start) 162 IPC_STRUCT_TRAITS_MEMBER(start)
172 IPC_STRUCT_TRAITS_MEMBER(end) 163 IPC_STRUCT_TRAITS_MEMBER(end)
173 IPC_STRUCT_TRAITS_MEMBER(is_editable) 164 IPC_STRUCT_TRAITS_MEMBER(is_editable)
174 IPC_STRUCT_TRAITS_MEMBER(is_empty_text_form_control) 165 IPC_STRUCT_TRAITS_MEMBER(is_empty_text_form_control)
175 IPC_STRUCT_TRAITS_END() 166 IPC_STRUCT_TRAITS_END()
176 167
177 IPC_ENUM_TRAITS_MAX_VALUE(cc::BeginFrameArgs::BeginFrameArgsType, 168 IPC_ENUM_TRAITS_MAX_VALUE(cc::BeginFrameArgs::BeginFrameArgsType,
178 cc::BeginFrameArgs::BEGIN_FRAME_ARGS_TYPE_MAX - 1) 169 cc::BeginFrameArgs::BEGIN_FRAME_ARGS_TYPE_MAX - 1)
179 170
180 IPC_STRUCT_TRAITS_BEGIN(cc::BeginFrameArgs) 171 IPC_STRUCT_TRAITS_BEGIN(cc::BeginFrameArgs)
(...skipping 23 matching lines...) Expand all
204 IPC_STRUCT_TRAITS_END() 195 IPC_STRUCT_TRAITS_END()
205 196
206 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) 197 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData)
207 IPC_STRUCT_TRAITS_MEMBER(mailbox) 198 IPC_STRUCT_TRAITS_MEMBER(mailbox)
208 IPC_STRUCT_TRAITS_MEMBER(sync_token) 199 IPC_STRUCT_TRAITS_MEMBER(sync_token)
209 IPC_STRUCT_TRAITS_MEMBER(size) 200 IPC_STRUCT_TRAITS_MEMBER(size)
210 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) 201 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect)
211 IPC_STRUCT_TRAITS_END() 202 IPC_STRUCT_TRAITS_END()
212 203
213 #endif // CC_IPC_CC_PARAM_TRAITS_MACROS_H_ 204 #endif // CC_IPC_CC_PARAM_TRAITS_MACROS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698