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/compositor_frame.h" |
| 9 #include "cc/transferable_resource.h" |
| 10 #include "content/common/content_export.h" |
| 11 #include "ipc/ipc_message_utils.h" |
| 12 |
| 13 namespace IPC { |
| 14 |
| 15 template<> |
| 16 struct CONTENT_EXPORT ParamTraits<cc::Mailbox> { |
| 17 typedef cc::Mailbox param_type; |
| 18 static void Write(Message* m, const param_type& p); |
| 19 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
| 20 static void Log(const param_type& p, std::string* l); |
| 21 }; |
| 22 |
| 23 template<> |
| 24 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> { |
| 25 typedef cc::CompositorFrame param_type; |
| 26 static void Write(Message* m, const param_type& p); |
| 27 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
| 28 static void Log(const param_type& p, std::string* l); |
| 29 }; |
| 30 |
| 31 template<> |
| 32 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrameAck> { |
| 33 typedef cc::CompositorFrameAck param_type; |
| 34 static void Write(Message* m, const param_type& p); |
| 35 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
| 36 static void Log(const param_type& p, std::string* l); |
| 37 }; |
| 38 |
| 39 } // namespace IPC |
| 40 |
| 41 #endif // CONTENT_COMMON_GPU_CLIENT_CC_PARAM_TRAITS_H_ |
OLD | NEW |