| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 struct CC_IPC_EXPORT ParamTraits<cc::CompositorFrame> { | 107 struct CC_IPC_EXPORT ParamTraits<cc::CompositorFrame> { |
| 108 typedef cc::CompositorFrame param_type; | 108 typedef cc::CompositorFrame param_type; |
| 109 static void Write(base::Pickle* m, const param_type& p); | 109 static void Write(base::Pickle* m, const param_type& p); |
| 110 static bool Read(const base::Pickle* m, | 110 static bool Read(const base::Pickle* m, |
| 111 base::PickleIterator* iter, | 111 base::PickleIterator* iter, |
| 112 param_type* p); | 112 param_type* p); |
| 113 static void Log(const param_type& p, std::string* l); | 113 static void Log(const param_type& p, std::string* l); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 template <> | 116 template <> |
| 117 struct CC_IPC_EXPORT ParamTraits<cc::DelegatedFrameData> { | |
| 118 typedef cc::DelegatedFrameData param_type; | |
| 119 static void Write(base::Pickle* m, const param_type& p); | |
| 120 static bool Read(const base::Pickle* m, | |
| 121 base::PickleIterator* iter, | |
| 122 param_type* p); | |
| 123 static void Log(const param_type& p, std::string* l); | |
| 124 }; | |
| 125 | |
| 126 template <> | |
| 127 struct CC_IPC_EXPORT ParamTraits<cc::DrawQuad::Resources> { | 117 struct CC_IPC_EXPORT ParamTraits<cc::DrawQuad::Resources> { |
| 128 typedef cc::DrawQuad::Resources param_type; | 118 typedef cc::DrawQuad::Resources param_type; |
| 129 static void GetSize(base::PickleSizer* s, const param_type& p); | 119 static void GetSize(base::PickleSizer* s, const param_type& p); |
| 130 static void Write(base::Pickle* m, const param_type& p); | 120 static void Write(base::Pickle* m, const param_type& p); |
| 131 static bool Read(const base::Pickle* m, | 121 static bool Read(const base::Pickle* m, |
| 132 base::PickleIterator* iter, | 122 base::PickleIterator* iter, |
| 133 param_type* p); | 123 param_type* p); |
| 134 static void Log(const param_type& p, std::string* l); | 124 static void Log(const param_type& p, std::string* l); |
| 135 }; | 125 }; |
| 136 | 126 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 163 static void Write(base::Pickle* m, const param_type& p); | 153 static void Write(base::Pickle* m, const param_type& p); |
| 164 static bool Read(const base::Pickle* m, | 154 static bool Read(const base::Pickle* m, |
| 165 base::PickleIterator* iter, | 155 base::PickleIterator* iter, |
| 166 param_type* p); | 156 param_type* p); |
| 167 static void Log(const param_type& p, std::string* l); | 157 static void Log(const param_type& p, std::string* l); |
| 168 }; | 158 }; |
| 169 | 159 |
| 170 } // namespace IPC | 160 } // namespace IPC |
| 171 | 161 |
| 172 #endif // CC_IPC_CC_PARAM_TRAITS_H_ | 162 #endif // CC_IPC_CC_PARAM_TRAITS_H_ |
| OLD | NEW |