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/checkerboard_draw_quad.h" | 7 #include "cc/checkerboard_draw_quad.h" |
8 #include "cc/compositor_frame.h" | 8 #include "cc/compositor_frame.h" |
9 #include "cc/compositor_frame_ack.h" | 9 #include "cc/compositor_frame_ack.h" |
10 #include "cc/debug_border_draw_quad.h" | 10 #include "cc/debug_border_draw_quad.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 template<> | 85 template<> |
86 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> { | 86 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> { |
87 typedef cc::CompositorFrame param_type; | 87 typedef cc::CompositorFrame param_type; |
88 static void Write(Message* m, const param_type& p); | 88 static void Write(Message* m, const param_type& p); |
89 static bool Read(const Message* m, PickleIterator* iter, param_type* p); | 89 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
90 static void Log(const param_type& p, std::string* l); | 90 static void Log(const param_type& p, std::string* l); |
91 }; | 91 }; |
92 | 92 |
93 template<> | 93 template<> |
| 94 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrameAck> { |
| 95 typedef cc::CompositorFrameAck param_type; |
| 96 static void Write(Message* m, const param_type& p); |
| 97 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
| 98 static void Log(const param_type& p, std::string* l); |
| 99 }; |
| 100 |
| 101 template<> |
94 struct CONTENT_EXPORT ParamTraits<cc::DelegatedFrameData> { | 102 struct CONTENT_EXPORT ParamTraits<cc::DelegatedFrameData> { |
95 typedef cc::DelegatedFrameData param_type; | 103 typedef cc::DelegatedFrameData param_type; |
96 static void Write(Message* m, const param_type& p); | 104 static void Write(Message* m, const param_type& p); |
97 static bool Read(const Message* m, PickleIterator* iter, param_type* p); | 105 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
98 static void Log(const param_type& p, std::string* l); | 106 static void Log(const param_type& p, std::string* l); |
99 }; | 107 }; |
100 | 108 |
101 } // namespace IPC | 109 } // namespace IPC |
102 | 110 |
103 #endif // CONTENT_COMMON_CC_MESSAGES_H_ | 111 #endif // CONTENT_COMMON_CC_MESSAGES_H_ |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 IPC_STRUCT_TRAITS_END() | 222 IPC_STRUCT_TRAITS_END() |
215 | 223 |
216 IPC_STRUCT_TRAITS_BEGIN(cc::TransferableResource) | 224 IPC_STRUCT_TRAITS_BEGIN(cc::TransferableResource) |
217 IPC_STRUCT_TRAITS_MEMBER(id) | 225 IPC_STRUCT_TRAITS_MEMBER(id) |
218 IPC_STRUCT_TRAITS_MEMBER(sync_point) | 226 IPC_STRUCT_TRAITS_MEMBER(sync_point) |
219 IPC_STRUCT_TRAITS_MEMBER(format) | 227 IPC_STRUCT_TRAITS_MEMBER(format) |
220 IPC_STRUCT_TRAITS_MEMBER(size) | 228 IPC_STRUCT_TRAITS_MEMBER(size) |
221 IPC_STRUCT_TRAITS_MEMBER(mailbox) | 229 IPC_STRUCT_TRAITS_MEMBER(mailbox) |
222 IPC_STRUCT_TRAITS_END() | 230 IPC_STRUCT_TRAITS_END() |
223 | 231 |
224 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameAck) | |
225 IPC_STRUCT_TRAITS_MEMBER(resources) | |
226 IPC_STRUCT_TRAITS_END() | |
227 | |
228 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameMetadata) | 232 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameMetadata) |
229 IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset) | 233 IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset) |
230 IPC_STRUCT_TRAITS_MEMBER(page_scale_factor) | 234 IPC_STRUCT_TRAITS_MEMBER(page_scale_factor) |
231 IPC_STRUCT_TRAITS_MEMBER(viewport_size) | 235 IPC_STRUCT_TRAITS_MEMBER(viewport_size) |
232 IPC_STRUCT_TRAITS_MEMBER(root_layer_size) | 236 IPC_STRUCT_TRAITS_MEMBER(root_layer_size) |
233 IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor) | 237 IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor) |
234 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor) | 238 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor) |
235 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset) | 239 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset) |
236 IPC_STRUCT_TRAITS_MEMBER(location_bar_content_translation) | 240 IPC_STRUCT_TRAITS_MEMBER(location_bar_content_translation) |
237 IPC_STRUCT_TRAITS_END() | 241 IPC_STRUCT_TRAITS_END() |
238 | 242 |
239 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) | 243 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) |
240 IPC_STRUCT_TRAITS_MEMBER(mailbox) | 244 IPC_STRUCT_TRAITS_MEMBER(mailbox) |
241 IPC_STRUCT_TRAITS_MEMBER(sync_point) | 245 IPC_STRUCT_TRAITS_MEMBER(sync_point) |
| 246 IPC_STRUCT_TRAITS_MEMBER(size) |
242 IPC_STRUCT_TRAITS_END() | 247 IPC_STRUCT_TRAITS_END() |
OLD | NEW |