| 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" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 template<> | 101 template<> |
| 102 struct CONTENT_EXPORT ParamTraits<cc::DelegatedFrameData> { | 102 struct CONTENT_EXPORT ParamTraits<cc::DelegatedFrameData> { |
| 103 typedef cc::DelegatedFrameData param_type; | 103 typedef cc::DelegatedFrameData param_type; |
| 104 static void Write(Message* m, const param_type& p); | 104 static void Write(Message* m, const param_type& p); |
| 105 static bool Read(const Message* m, PickleIterator* iter, param_type* p); | 105 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
| 106 static void Log(const param_type& p, std::string* l); | 106 static void Log(const param_type& p, std::string* l); |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 template <> |
| 110 struct CONTENT_EXPORT ParamTraits<cc::SoftwareFrameData> { |
| 111 typedef cc::SoftwareFrameData param_type; |
| 112 static void Write(Message* m, const param_type& p); |
| 113 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
| 114 static void Log(const param_type& p, std::string* l); |
| 115 }; |
| 116 |
| 109 } // namespace IPC | 117 } // namespace IPC |
| 110 | 118 |
| 111 #endif // CONTENT_COMMON_CC_MESSAGES_H_ | 119 #endif // CONTENT_COMMON_CC_MESSAGES_H_ |
| 112 | 120 |
| 113 // Multiply-included message file, hence no include guard. | 121 // Multiply-included message file, hence no include guard. |
| 114 | 122 |
| 115 #define IPC_MESSAGE_START CCMsgStart | 123 #define IPC_MESSAGE_START CCMsgStart |
| 116 #undef IPC_MESSAGE_EXPORT | 124 #undef IPC_MESSAGE_EXPORT |
| 117 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 125 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 118 | 126 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 IPC_STRUCT_TRAITS_MEMBER(overdraw_bottom_height) | 267 IPC_STRUCT_TRAITS_MEMBER(overdraw_bottom_height) |
| 260 IPC_STRUCT_TRAITS_MEMBER(latency_info) | 268 IPC_STRUCT_TRAITS_MEMBER(latency_info) |
| 261 IPC_STRUCT_TRAITS_END() | 269 IPC_STRUCT_TRAITS_END() |
| 262 | 270 |
| 263 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) | 271 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) |
| 264 IPC_STRUCT_TRAITS_MEMBER(mailbox) | 272 IPC_STRUCT_TRAITS_MEMBER(mailbox) |
| 265 IPC_STRUCT_TRAITS_MEMBER(sync_point) | 273 IPC_STRUCT_TRAITS_MEMBER(sync_point) |
| 266 IPC_STRUCT_TRAITS_MEMBER(size) | 274 IPC_STRUCT_TRAITS_MEMBER(size) |
| 267 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) | 275 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) |
| 268 IPC_STRUCT_TRAITS_END() | 276 IPC_STRUCT_TRAITS_END() |
| 269 | |
| 270 IPC_STRUCT_TRAITS_BEGIN(cc::SoftwareFrameData) | |
| 271 IPC_STRUCT_TRAITS_MEMBER(id) | |
| 272 IPC_STRUCT_TRAITS_MEMBER(size) | |
| 273 IPC_STRUCT_TRAITS_MEMBER(damage_rect) | |
| 274 IPC_STRUCT_TRAITS_MEMBER(handle) | |
| 275 IPC_STRUCT_TRAITS_END() | |
| OLD | NEW |