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