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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 struct CC_IPC_EXPORT ParamTraits<cc::TextureDrawQuad::OverlayResources> { | 127 struct CC_IPC_EXPORT ParamTraits<cc::TextureDrawQuad::OverlayResources> { |
128 typedef cc::TextureDrawQuad::OverlayResources param_type; | 128 typedef cc::TextureDrawQuad::OverlayResources param_type; |
129 static void GetSize(base::PickleSizer* s, const param_type& p); | 129 static void GetSize(base::PickleSizer* s, const param_type& p); |
130 static void Write(base::Pickle* m, const param_type& p); | 130 static void Write(base::Pickle* m, const param_type& p); |
131 static bool Read(const base::Pickle* m, | 131 static bool Read(const base::Pickle* m, |
132 base::PickleIterator* iter, | 132 base::PickleIterator* iter, |
133 param_type* p); | 133 param_type* p); |
134 static void Log(const param_type& p, std::string* l); | 134 static void Log(const param_type& p, std::string* l); |
135 }; | 135 }; |
136 | 136 |
| 137 template <> |
| 138 struct CC_IPC_EXPORT ParamTraits<cc::YUVVideoDrawQuad> { |
| 139 typedef cc::YUVVideoDrawQuad param_type; |
| 140 static void GetSize(base::PickleSizer* s, const param_type& p); |
| 141 static void Write(base::Pickle* m, const param_type& p); |
| 142 static bool Read(const base::Pickle* m, |
| 143 base::PickleIterator* iter, |
| 144 param_type* p); |
| 145 static void Log(const param_type& p, std::string* l); |
| 146 }; |
| 147 |
137 } // namespace IPC | 148 } // namespace IPC |
138 | 149 |
139 #endif // CC_IPC_CC_PARAM_TRAITS_H_ | 150 #endif // CC_IPC_CC_PARAM_TRAITS_H_ |
OLD | NEW |