OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_COMMON_GPU_CLIENT_CC_PARAM_TRAITS_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_CC_PARAM_TRAITS_H_ |
| 7 |
| 8 #include "cc/transferable_resource.h" |
| 9 #include "cc/web_compositor_frame.h" |
| 10 #include "content/common/content_export.h" |
| 11 #include "ipc/ipc_message_utils.h" |
| 12 |
| 13 namespace WebKit { |
| 14 struct WebCompositorFrame; |
| 15 struct WebCompositorFrameAck; |
| 16 } |
| 17 |
| 18 namespace IPC { |
| 19 |
| 20 template<> |
| 21 struct CONTENT_EXPORT ParamTraits<cc::Mailbox> { |
| 22 typedef cc::Mailbox param_type; |
| 23 static void Write(Message* m, const param_type& p); |
| 24 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
| 25 static void Log(const param_type& p, std::string* l); |
| 26 }; |
| 27 |
| 28 template<> |
| 29 struct CONTENT_EXPORT ParamTraits<WebKit::WebCompositorFrame> { |
| 30 typedef WebKit::WebCompositorFrame param_type; |
| 31 static void Write(Message* m, const param_type& p); |
| 32 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
| 33 static void Log(const param_type& p, std::string* l); |
| 34 }; |
| 35 |
| 36 template<> |
| 37 struct CONTENT_EXPORT ParamTraits<WebKit::WebCompositorFrameAck> { |
| 38 typedef WebKit::WebCompositorFrameAck param_type; |
| 39 static void Write(Message* m, const param_type& p); |
| 40 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
| 41 static void Log(const param_type& p, std::string* l); |
| 42 }; |
| 43 |
| 44 } // namespace IPC |
| 45 |
| 46 #endif // CONTENT_COMMON_GPU_CLIENT_CC_PARAM_TRAITS_H_ |
OLD | NEW |