OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // IPC Messages sent between compositor instances. | 5 // IPC Messages sent between compositor instances. |
6 | 6 |
7 #include "cc/output/begin_frame_args.h" | 7 #include "cc/output/begin_frame_args.h" |
8 #include "cc/output/compositor_frame.h" | 8 #include "cc/output/compositor_frame.h" |
9 #include "cc/output/compositor_frame_ack.h" | 9 #include "cc/output/compositor_frame_ack.h" |
10 #include "cc/output/filter_operation.h" | 10 #include "cc/output/filter_operation.h" |
| 11 #include "cc/output/selection_bound.h" |
11 #include "cc/quads/checkerboard_draw_quad.h" | 12 #include "cc/quads/checkerboard_draw_quad.h" |
12 #include "cc/quads/debug_border_draw_quad.h" | 13 #include "cc/quads/debug_border_draw_quad.h" |
13 #include "cc/quads/draw_quad.h" | 14 #include "cc/quads/draw_quad.h" |
14 #include "cc/quads/io_surface_draw_quad.h" | 15 #include "cc/quads/io_surface_draw_quad.h" |
15 #include "cc/quads/picture_draw_quad.h" | 16 #include "cc/quads/picture_draw_quad.h" |
16 #include "cc/quads/render_pass.h" | 17 #include "cc/quads/render_pass.h" |
17 #include "cc/quads/render_pass_draw_quad.h" | 18 #include "cc/quads/render_pass_draw_quad.h" |
18 #include "cc/quads/shared_quad_state.h" | 19 #include "cc/quads/shared_quad_state.h" |
19 #include "cc/quads/solid_color_draw_quad.h" | 20 #include "cc/quads/solid_color_draw_quad.h" |
20 #include "cc/quads/stream_video_draw_quad.h" | 21 #include "cc/quads/stream_video_draw_quad.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 #define IPC_MESSAGE_START CCMsgStart | 124 #define IPC_MESSAGE_START CCMsgStart |
124 #undef IPC_MESSAGE_EXPORT | 125 #undef IPC_MESSAGE_EXPORT |
125 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 126 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
126 | 127 |
127 IPC_ENUM_TRAITS_MAX_VALUE(cc::DrawQuad::Material, cc::DrawQuad::MATERIAL_LAST) | 128 IPC_ENUM_TRAITS_MAX_VALUE(cc::DrawQuad::Material, cc::DrawQuad::MATERIAL_LAST) |
128 IPC_ENUM_TRAITS_MAX_VALUE(cc::IOSurfaceDrawQuad::Orientation, | 129 IPC_ENUM_TRAITS_MAX_VALUE(cc::IOSurfaceDrawQuad::Orientation, |
129 cc::IOSurfaceDrawQuad::ORIENTATION_LAST) | 130 cc::IOSurfaceDrawQuad::ORIENTATION_LAST) |
130 IPC_ENUM_TRAITS_MAX_VALUE(cc::FilterOperation::FilterType, | 131 IPC_ENUM_TRAITS_MAX_VALUE(cc::FilterOperation::FilterType, |
131 cc::FilterOperation::FILTER_TYPE_LAST ) | 132 cc::FilterOperation::FILTER_TYPE_LAST ) |
132 IPC_ENUM_TRAITS_MAX_VALUE(cc::ResourceFormat, cc::RESOURCE_FORMAT_MAX) | 133 IPC_ENUM_TRAITS_MAX_VALUE(cc::ResourceFormat, cc::RESOURCE_FORMAT_MAX) |
| 134 IPC_ENUM_TRAITS_MAX_VALUE(cc::SelectionBoundType, cc::SELECTION_BOUND_TYPE_LAST) |
133 IPC_ENUM_TRAITS_MAX_VALUE(SkXfermode::Mode, SkXfermode::kLastMode) | 135 IPC_ENUM_TRAITS_MAX_VALUE(SkXfermode::Mode, SkXfermode::kLastMode) |
134 IPC_ENUM_TRAITS_MAX_VALUE(cc::YUVVideoDrawQuad::ColorSpace, | 136 IPC_ENUM_TRAITS_MAX_VALUE(cc::YUVVideoDrawQuad::ColorSpace, |
135 cc::YUVVideoDrawQuad::COLOR_SPACE_LAST) | 137 cc::YUVVideoDrawQuad::COLOR_SPACE_LAST) |
136 | 138 |
137 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPass::Id) | 139 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPass::Id) |
138 IPC_STRUCT_TRAITS_MEMBER(layer_id) | 140 IPC_STRUCT_TRAITS_MEMBER(layer_id) |
139 IPC_STRUCT_TRAITS_MEMBER(index) | 141 IPC_STRUCT_TRAITS_MEMBER(index) |
140 IPC_STRUCT_TRAITS_END() | 142 IPC_STRUCT_TRAITS_END() |
141 | 143 |
142 IPC_STRUCT_TRAITS_BEGIN(cc::DrawQuad) | 144 IPC_STRUCT_TRAITS_BEGIN(cc::DrawQuad) |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 IPC_STRUCT_TRAITS_MEMBER(is_software) | 247 IPC_STRUCT_TRAITS_MEMBER(is_software) |
246 IPC_STRUCT_TRAITS_END() | 248 IPC_STRUCT_TRAITS_END() |
247 | 249 |
248 IPC_STRUCT_TRAITS_BEGIN(cc::ReturnedResource) | 250 IPC_STRUCT_TRAITS_BEGIN(cc::ReturnedResource) |
249 IPC_STRUCT_TRAITS_MEMBER(id) | 251 IPC_STRUCT_TRAITS_MEMBER(id) |
250 IPC_STRUCT_TRAITS_MEMBER(sync_point) | 252 IPC_STRUCT_TRAITS_MEMBER(sync_point) |
251 IPC_STRUCT_TRAITS_MEMBER(count) | 253 IPC_STRUCT_TRAITS_MEMBER(count) |
252 IPC_STRUCT_TRAITS_MEMBER(lost) | 254 IPC_STRUCT_TRAITS_MEMBER(lost) |
253 IPC_STRUCT_TRAITS_END() | 255 IPC_STRUCT_TRAITS_END() |
254 | 256 |
| 257 IPC_STRUCT_TRAITS_BEGIN(cc::SelectionBound) |
| 258 IPC_STRUCT_TRAITS_MEMBER(type) |
| 259 IPC_STRUCT_TRAITS_MEMBER(viewport_rect) |
| 260 IPC_STRUCT_TRAITS_MEMBER(visible) |
| 261 IPC_STRUCT_TRAITS_END() |
| 262 |
255 IPC_STRUCT_TRAITS_BEGIN(cc::BeginFrameArgs) | 263 IPC_STRUCT_TRAITS_BEGIN(cc::BeginFrameArgs) |
256 IPC_STRUCT_TRAITS_MEMBER(frame_time) | 264 IPC_STRUCT_TRAITS_MEMBER(frame_time) |
257 IPC_STRUCT_TRAITS_MEMBER(deadline) | 265 IPC_STRUCT_TRAITS_MEMBER(deadline) |
258 IPC_STRUCT_TRAITS_MEMBER(interval) | 266 IPC_STRUCT_TRAITS_MEMBER(interval) |
259 IPC_STRUCT_TRAITS_END() | 267 IPC_STRUCT_TRAITS_END() |
260 | 268 |
261 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameMetadata) | 269 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameMetadata) |
262 IPC_STRUCT_TRAITS_MEMBER(device_scale_factor) | 270 IPC_STRUCT_TRAITS_MEMBER(device_scale_factor) |
263 IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset) | 271 IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset) |
264 IPC_STRUCT_TRAITS_MEMBER(page_scale_factor) | 272 IPC_STRUCT_TRAITS_MEMBER(page_scale_factor) |
265 IPC_STRUCT_TRAITS_MEMBER(viewport_size) | 273 IPC_STRUCT_TRAITS_MEMBER(viewport_size) |
266 IPC_STRUCT_TRAITS_MEMBER(root_layer_size) | 274 IPC_STRUCT_TRAITS_MEMBER(root_layer_size) |
267 IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor) | 275 IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor) |
268 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor) | 276 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor) |
269 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset) | 277 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset) |
270 IPC_STRUCT_TRAITS_MEMBER(location_bar_content_translation) | 278 IPC_STRUCT_TRAITS_MEMBER(location_bar_content_translation) |
271 IPC_STRUCT_TRAITS_MEMBER(overdraw_bottom_height) | 279 IPC_STRUCT_TRAITS_MEMBER(overdraw_bottom_height) |
| 280 IPC_STRUCT_TRAITS_MEMBER(selection_anchor) |
| 281 IPC_STRUCT_TRAITS_MEMBER(selection_focus) |
272 IPC_STRUCT_TRAITS_MEMBER(latency_info) | 282 IPC_STRUCT_TRAITS_MEMBER(latency_info) |
273 IPC_STRUCT_TRAITS_END() | 283 IPC_STRUCT_TRAITS_END() |
274 | 284 |
275 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) | 285 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) |
276 IPC_STRUCT_TRAITS_MEMBER(mailbox) | 286 IPC_STRUCT_TRAITS_MEMBER(mailbox) |
277 IPC_STRUCT_TRAITS_MEMBER(sync_point) | 287 IPC_STRUCT_TRAITS_MEMBER(sync_point) |
278 IPC_STRUCT_TRAITS_MEMBER(size) | 288 IPC_STRUCT_TRAITS_MEMBER(size) |
279 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) | 289 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) |
280 IPC_STRUCT_TRAITS_END() | 290 IPC_STRUCT_TRAITS_END() |
OLD | NEW |