| 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 #ifndef CC_IPC_CC_PARAM_TRAITS_H_ | 7 #ifndef CC_IPC_CC_PARAM_TRAITS_H_ |
| 8 #define CC_IPC_CC_PARAM_TRAITS_H_ | 8 #define CC_IPC_CC_PARAM_TRAITS_H_ |
| 9 | 9 |
| 10 #include "cc/ipc/cc_ipc_export.h" | 10 #include "cc/ipc/cc_ipc_export.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 typedef cc::SurfaceId param_type; | 93 typedef cc::SurfaceId param_type; |
| 94 static void GetSize(base::PickleSizer* s, const param_type& p); | 94 static void GetSize(base::PickleSizer* s, const param_type& p); |
| 95 static void Write(base::Pickle* m, const param_type& p); | 95 static void Write(base::Pickle* m, const param_type& p); |
| 96 static bool Read(const base::Pickle* m, | 96 static bool Read(const base::Pickle* m, |
| 97 base::PickleIterator* iter, | 97 base::PickleIterator* iter, |
| 98 param_type* r); | 98 param_type* r); |
| 99 static void Log(const param_type& p, std::string* l); | 99 static void Log(const param_type& p, std::string* l); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 template <> | 102 template <> |
| 103 struct CC_IPC_EXPORT ParamTraits<cc::SurfaceInfo> { |
| 104 typedef cc::SurfaceInfo param_type; |
| 105 static void GetSize(base::PickleSizer* s, const param_type& p); |
| 106 static void Write(base::Pickle* m, const param_type& p); |
| 107 static bool Read(const base::Pickle* m, |
| 108 base::PickleIterator* iter, |
| 109 param_type* r); |
| 110 static void Log(const param_type& p, std::string* l); |
| 111 }; |
| 112 |
| 113 template <> |
| 103 struct CC_IPC_EXPORT ParamTraits<cc::CompositorFrame> { | 114 struct CC_IPC_EXPORT ParamTraits<cc::CompositorFrame> { |
| 104 typedef cc::CompositorFrame param_type; | 115 typedef cc::CompositorFrame param_type; |
| 105 static void Write(base::Pickle* m, const param_type& p); | 116 static void Write(base::Pickle* m, const param_type& p); |
| 106 static bool Read(const base::Pickle* m, | 117 static bool Read(const base::Pickle* m, |
| 107 base::PickleIterator* iter, | 118 base::PickleIterator* iter, |
| 108 param_type* p); | 119 param_type* p); |
| 109 static void Log(const param_type& p, std::string* l); | 120 static void Log(const param_type& p, std::string* l); |
| 110 }; | 121 }; |
| 111 | 122 |
| 112 template <> | 123 template <> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 127 static void Write(base::Pickle* m, const param_type& p); | 138 static void Write(base::Pickle* m, const param_type& p); |
| 128 static bool Read(const base::Pickle* m, | 139 static bool Read(const base::Pickle* m, |
| 129 base::PickleIterator* iter, | 140 base::PickleIterator* iter, |
| 130 param_type* p); | 141 param_type* p); |
| 131 static void Log(const param_type& p, std::string* l); | 142 static void Log(const param_type& p, std::string* l); |
| 132 }; | 143 }; |
| 133 | 144 |
| 134 } // namespace IPC | 145 } // namespace IPC |
| 135 | 146 |
| 136 #endif // CC_IPC_CC_PARAM_TRAITS_H_ | 147 #endif // CC_IPC_CC_PARAM_TRAITS_H_ |
| OLD | NEW |