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/debug/latency_info.h" | 7 #include "cc/debug/latency_info.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/quads/checkerboard_draw_quad.h" | 10 #include "cc/quads/checkerboard_draw_quad.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 #endif // CONTENT_COMMON_CC_MESSAGES_H_ | 101 #endif // CONTENT_COMMON_CC_MESSAGES_H_ |
102 | 102 |
103 // Multiply-included message file, hence no include guard. | 103 // Multiply-included message file, hence no include guard. |
104 | 104 |
105 #define IPC_MESSAGE_START CCMsgStart | 105 #define IPC_MESSAGE_START CCMsgStart |
106 #undef IPC_MESSAGE_EXPORT | 106 #undef IPC_MESSAGE_EXPORT |
107 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 107 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
108 | 108 |
109 IPC_ENUM_TRAITS(cc::DrawQuad::Material) | 109 IPC_ENUM_TRAITS(cc::DrawQuad::Material) |
110 IPC_ENUM_TRAITS(cc::IOSurfaceDrawQuad::Orientation) | 110 IPC_ENUM_TRAITS(cc::IOSurfaceDrawQuad::Orientation) |
| 111 IPC_ENUM_TRAITS(cc::LatencyComponentType) |
111 IPC_ENUM_TRAITS(WebKit::WebFilterOperation::FilterType) | 112 IPC_ENUM_TRAITS(WebKit::WebFilterOperation::FilterType) |
112 | 113 |
113 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPass::Id) | 114 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPass::Id) |
114 IPC_STRUCT_TRAITS_MEMBER(layer_id) | 115 IPC_STRUCT_TRAITS_MEMBER(layer_id) |
115 IPC_STRUCT_TRAITS_MEMBER(index) | 116 IPC_STRUCT_TRAITS_MEMBER(index) |
116 IPC_STRUCT_TRAITS_END() | 117 IPC_STRUCT_TRAITS_END() |
117 | 118 |
118 IPC_STRUCT_TRAITS_BEGIN(cc::DrawQuad) | 119 IPC_STRUCT_TRAITS_BEGIN(cc::DrawQuad) |
119 IPC_STRUCT_TRAITS_MEMBER(material) | 120 IPC_STRUCT_TRAITS_MEMBER(material) |
120 IPC_STRUCT_TRAITS_MEMBER(rect) | 121 IPC_STRUCT_TRAITS_MEMBER(rect) |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 205 |
205 IPC_STRUCT_TRAITS_BEGIN(cc::TransferableResource) | 206 IPC_STRUCT_TRAITS_BEGIN(cc::TransferableResource) |
206 IPC_STRUCT_TRAITS_MEMBER(id) | 207 IPC_STRUCT_TRAITS_MEMBER(id) |
207 IPC_STRUCT_TRAITS_MEMBER(sync_point) | 208 IPC_STRUCT_TRAITS_MEMBER(sync_point) |
208 IPC_STRUCT_TRAITS_MEMBER(format) | 209 IPC_STRUCT_TRAITS_MEMBER(format) |
209 IPC_STRUCT_TRAITS_MEMBER(filter) | 210 IPC_STRUCT_TRAITS_MEMBER(filter) |
210 IPC_STRUCT_TRAITS_MEMBER(size) | 211 IPC_STRUCT_TRAITS_MEMBER(size) |
211 IPC_STRUCT_TRAITS_MEMBER(mailbox) | 212 IPC_STRUCT_TRAITS_MEMBER(mailbox) |
212 IPC_STRUCT_TRAITS_END() | 213 IPC_STRUCT_TRAITS_END() |
213 | 214 |
| 215 IPC_STRUCT_TRAITS_BEGIN(cc::LatencyInfo::LatencyComponent) |
| 216 IPC_STRUCT_TRAITS_MEMBER(sequence_number) |
| 217 IPC_STRUCT_TRAITS_MEMBER(event_time) |
| 218 IPC_STRUCT_TRAITS_MEMBER(event_count) |
| 219 IPC_STRUCT_TRAITS_END() |
| 220 |
214 IPC_STRUCT_TRAITS_BEGIN(cc::LatencyInfo) | 221 IPC_STRUCT_TRAITS_BEGIN(cc::LatencyInfo) |
215 IPC_STRUCT_TRAITS_MEMBER(renderer_main_frame_number) | 222 IPC_STRUCT_TRAITS_MEMBER(latency_components) |
216 IPC_STRUCT_TRAITS_MEMBER(renderer_impl_frame_number) | |
217 IPC_STRUCT_TRAITS_MEMBER(browser_main_frame_number) | |
218 IPC_STRUCT_TRAITS_MEMBER(browser_impl_frame_number) | |
219 IPC_STRUCT_TRAITS_MEMBER(swap_timestamp) | 223 IPC_STRUCT_TRAITS_MEMBER(swap_timestamp) |
220 IPC_STRUCT_TRAITS_END() | 224 IPC_STRUCT_TRAITS_END() |
221 | 225 |
222 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameMetadata) | 226 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameMetadata) |
223 IPC_STRUCT_TRAITS_MEMBER(device_scale_factor) | 227 IPC_STRUCT_TRAITS_MEMBER(device_scale_factor) |
224 IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset) | 228 IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset) |
225 IPC_STRUCT_TRAITS_MEMBER(page_scale_factor) | 229 IPC_STRUCT_TRAITS_MEMBER(page_scale_factor) |
226 IPC_STRUCT_TRAITS_MEMBER(viewport_size) | 230 IPC_STRUCT_TRAITS_MEMBER(viewport_size) |
227 IPC_STRUCT_TRAITS_MEMBER(root_layer_size) | 231 IPC_STRUCT_TRAITS_MEMBER(root_layer_size) |
228 IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor) | 232 IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor) |
229 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor) | 233 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor) |
230 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset) | 234 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset) |
231 IPC_STRUCT_TRAITS_MEMBER(location_bar_content_translation) | 235 IPC_STRUCT_TRAITS_MEMBER(location_bar_content_translation) |
232 IPC_STRUCT_TRAITS_MEMBER(overdraw_bottom_height) | 236 IPC_STRUCT_TRAITS_MEMBER(overdraw_bottom_height) |
233 IPC_STRUCT_TRAITS_END() | 237 IPC_STRUCT_TRAITS_END() |
234 | 238 |
235 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) | 239 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) |
236 IPC_STRUCT_TRAITS_MEMBER(mailbox) | 240 IPC_STRUCT_TRAITS_MEMBER(mailbox) |
237 IPC_STRUCT_TRAITS_MEMBER(sync_point) | 241 IPC_STRUCT_TRAITS_MEMBER(sync_point) |
238 IPC_STRUCT_TRAITS_MEMBER(size) | 242 IPC_STRUCT_TRAITS_MEMBER(size) |
239 IPC_STRUCT_TRAITS_END() | 243 IPC_STRUCT_TRAITS_END() |
240 | 244 |
241 IPC_STRUCT_TRAITS_BEGIN(cc::SoftwareFrameData) | 245 IPC_STRUCT_TRAITS_BEGIN(cc::SoftwareFrameData) |
242 IPC_STRUCT_TRAITS_MEMBER(size) | 246 IPC_STRUCT_TRAITS_MEMBER(size) |
243 IPC_STRUCT_TRAITS_MEMBER(damage_rect) | 247 IPC_STRUCT_TRAITS_MEMBER(damage_rect) |
244 IPC_STRUCT_TRAITS_MEMBER(dib_id) | 248 IPC_STRUCT_TRAITS_MEMBER(dib_id) |
245 IPC_STRUCT_TRAITS_END() | 249 IPC_STRUCT_TRAITS_END() |
OLD | NEW |