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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 typedef cc::DrawQuad::Resources param_type; | 114 typedef cc::DrawQuad::Resources param_type; |
115 static void GetSize(base::PickleSizer* s, const param_type& p); | 115 static void GetSize(base::PickleSizer* s, const param_type& p); |
116 static void Write(base::Pickle* m, const param_type& p); | 116 static void Write(base::Pickle* m, const param_type& p); |
117 static bool Read(const base::Pickle* m, | 117 static bool Read(const base::Pickle* m, |
118 base::PickleIterator* iter, | 118 base::PickleIterator* iter, |
119 param_type* p); | 119 param_type* p); |
120 static void Log(const param_type& p, std::string* l); | 120 static void Log(const param_type& p, std::string* l); |
121 }; | 121 }; |
122 | 122 |
123 template <> | 123 template <> |
124 struct CC_IPC_EXPORT ParamTraits<cc::StreamVideoDrawQuad::OverlayResources> { | |
125 typedef cc::StreamVideoDrawQuad::OverlayResources param_type; | |
126 static void GetSize(base::PickleSizer* s, const param_type& p); | |
127 static void Write(base::Pickle* m, const param_type& p); | |
128 static bool Read(const base::Pickle* m, | |
129 base::PickleIterator* iter, | |
130 param_type* p); | |
131 static void Log(const param_type& p, std::string* l); | |
132 }; | |
133 | |
134 template <> | |
135 struct CC_IPC_EXPORT ParamTraits<cc::TextureDrawQuad::OverlayResources> { | |
136 typedef cc::TextureDrawQuad::OverlayResources param_type; | |
137 static void GetSize(base::PickleSizer* s, const param_type& p); | |
138 static void Write(base::Pickle* m, const param_type& p); | |
139 static bool Read(const base::Pickle* m, | |
140 base::PickleIterator* iter, | |
141 param_type* p); | |
142 static void Log(const param_type& p, std::string* l); | |
143 }; | |
144 | |
145 template <> | |
146 struct CC_IPC_EXPORT ParamTraits<cc::YUVVideoDrawQuad> { | 124 struct CC_IPC_EXPORT ParamTraits<cc::YUVVideoDrawQuad> { |
147 typedef cc::YUVVideoDrawQuad param_type; | 125 typedef cc::YUVVideoDrawQuad param_type; |
148 static void GetSize(base::PickleSizer* s, const param_type& p); | 126 static void GetSize(base::PickleSizer* s, const param_type& p); |
149 static void Write(base::Pickle* m, const param_type& p); | 127 static void Write(base::Pickle* m, const param_type& p); |
150 static bool Read(const base::Pickle* m, | 128 static bool Read(const base::Pickle* m, |
151 base::PickleIterator* iter, | 129 base::PickleIterator* iter, |
152 param_type* p); | 130 param_type* p); |
153 static void Log(const param_type& p, std::string* l); | 131 static void Log(const param_type& p, std::string* l); |
154 }; | 132 }; |
155 | 133 |
156 } // namespace IPC | 134 } // namespace IPC |
157 | 135 |
158 #endif // CC_IPC_CC_PARAM_TRAITS_H_ | 136 #endif // CC_IPC_CC_PARAM_TRAITS_H_ |
OLD | NEW |