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/compositor_frame.h" | 8 #include "cc/output/compositor_frame.h" |
8 #include "cc/output/compositor_frame_ack.h" | 9 #include "cc/output/compositor_frame_ack.h" |
9 #include "cc/quads/checkerboard_draw_quad.h" | 10 #include "cc/quads/checkerboard_draw_quad.h" |
10 #include "cc/quads/debug_border_draw_quad.h" | 11 #include "cc/quads/debug_border_draw_quad.h" |
11 #include "cc/quads/draw_quad.h" | 12 #include "cc/quads/draw_quad.h" |
12 #include "cc/quads/io_surface_draw_quad.h" | 13 #include "cc/quads/io_surface_draw_quad.h" |
13 #include "cc/quads/picture_draw_quad.h" | 14 #include "cc/quads/picture_draw_quad.h" |
14 #include "cc/quads/render_pass.h" | 15 #include "cc/quads/render_pass.h" |
15 #include "cc/quads/render_pass_draw_quad.h" | 16 #include "cc/quads/render_pass_draw_quad.h" |
16 #include "cc/quads/shared_quad_state.h" | 17 #include "cc/quads/shared_quad_state.h" |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 206 |
206 IPC_STRUCT_TRAITS_BEGIN(cc::TransferableResource) | 207 IPC_STRUCT_TRAITS_BEGIN(cc::TransferableResource) |
207 IPC_STRUCT_TRAITS_MEMBER(id) | 208 IPC_STRUCT_TRAITS_MEMBER(id) |
208 IPC_STRUCT_TRAITS_MEMBER(sync_point) | 209 IPC_STRUCT_TRAITS_MEMBER(sync_point) |
209 IPC_STRUCT_TRAITS_MEMBER(format) | 210 IPC_STRUCT_TRAITS_MEMBER(format) |
210 IPC_STRUCT_TRAITS_MEMBER(filter) | 211 IPC_STRUCT_TRAITS_MEMBER(filter) |
211 IPC_STRUCT_TRAITS_MEMBER(size) | 212 IPC_STRUCT_TRAITS_MEMBER(size) |
212 IPC_STRUCT_TRAITS_MEMBER(mailbox) | 213 IPC_STRUCT_TRAITS_MEMBER(mailbox) |
213 IPC_STRUCT_TRAITS_END() | 214 IPC_STRUCT_TRAITS_END() |
214 | 215 |
| 216 IPC_STRUCT_TRAITS_BEGIN(cc::BeginFrameArgs) |
| 217 IPC_STRUCT_TRAITS_MEMBER(frame_time) |
| 218 IPC_STRUCT_TRAITS_MEMBER(deadline) |
| 219 IPC_STRUCT_TRAITS_MEMBER(interval) |
| 220 IPC_STRUCT_TRAITS_END() |
| 221 |
215 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameMetadata) | 222 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameMetadata) |
216 IPC_STRUCT_TRAITS_MEMBER(device_scale_factor) | 223 IPC_STRUCT_TRAITS_MEMBER(device_scale_factor) |
217 IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset) | 224 IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset) |
218 IPC_STRUCT_TRAITS_MEMBER(page_scale_factor) | 225 IPC_STRUCT_TRAITS_MEMBER(page_scale_factor) |
219 IPC_STRUCT_TRAITS_MEMBER(viewport_size) | 226 IPC_STRUCT_TRAITS_MEMBER(viewport_size) |
220 IPC_STRUCT_TRAITS_MEMBER(root_layer_size) | 227 IPC_STRUCT_TRAITS_MEMBER(root_layer_size) |
221 IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor) | 228 IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor) |
222 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor) | 229 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor) |
223 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset) | 230 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset) |
224 IPC_STRUCT_TRAITS_MEMBER(location_bar_content_translation) | 231 IPC_STRUCT_TRAITS_MEMBER(location_bar_content_translation) |
225 IPC_STRUCT_TRAITS_MEMBER(overdraw_bottom_height) | 232 IPC_STRUCT_TRAITS_MEMBER(overdraw_bottom_height) |
226 IPC_STRUCT_TRAITS_MEMBER(latency_info) | 233 IPC_STRUCT_TRAITS_MEMBER(latency_info) |
227 IPC_STRUCT_TRAITS_END() | 234 IPC_STRUCT_TRAITS_END() |
228 | 235 |
229 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) | 236 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) |
230 IPC_STRUCT_TRAITS_MEMBER(mailbox) | 237 IPC_STRUCT_TRAITS_MEMBER(mailbox) |
231 IPC_STRUCT_TRAITS_MEMBER(sync_point) | 238 IPC_STRUCT_TRAITS_MEMBER(sync_point) |
232 IPC_STRUCT_TRAITS_MEMBER(size) | 239 IPC_STRUCT_TRAITS_MEMBER(size) |
233 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) | 240 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) |
234 IPC_STRUCT_TRAITS_END() | 241 IPC_STRUCT_TRAITS_END() |
235 | 242 |
236 IPC_STRUCT_TRAITS_BEGIN(cc::SoftwareFrameData) | 243 IPC_STRUCT_TRAITS_BEGIN(cc::SoftwareFrameData) |
237 IPC_STRUCT_TRAITS_MEMBER(id) | 244 IPC_STRUCT_TRAITS_MEMBER(id) |
238 IPC_STRUCT_TRAITS_MEMBER(size) | 245 IPC_STRUCT_TRAITS_MEMBER(size) |
239 IPC_STRUCT_TRAITS_MEMBER(damage_rect) | 246 IPC_STRUCT_TRAITS_MEMBER(damage_rect) |
240 IPC_STRUCT_TRAITS_MEMBER(handle) | 247 IPC_STRUCT_TRAITS_MEMBER(handle) |
241 IPC_STRUCT_TRAITS_END() | 248 IPC_STRUCT_TRAITS_END() |
OLD | NEW |