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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 struct CC_IPC_EXPORT ParamTraits<cc::RenderPass> { | 66 struct CC_IPC_EXPORT ParamTraits<cc::RenderPass> { |
67 typedef cc::RenderPass param_type; | 67 typedef cc::RenderPass param_type; |
68 static void Write(base::Pickle* m, const param_type& p); | 68 static void Write(base::Pickle* m, const param_type& p); |
69 static bool Read(const base::Pickle* m, | 69 static bool Read(const base::Pickle* m, |
70 base::PickleIterator* iter, | 70 base::PickleIterator* iter, |
71 param_type* r); | 71 param_type* r); |
72 static void Log(const param_type& p, std::string* l); | 72 static void Log(const param_type& p, std::string* l); |
73 }; | 73 }; |
74 | 74 |
75 template <> | 75 template <> |
| 76 struct CC_IPC_EXPORT ParamTraits<cc::SurfaceId> { |
| 77 typedef cc::SurfaceId param_type; |
| 78 static void GetSize(base::PickleSizer* s, const param_type& p); |
| 79 static void Write(base::Pickle* m, const param_type& p); |
| 80 static bool Read(const base::Pickle* m, |
| 81 base::PickleIterator* iter, |
| 82 param_type* r); |
| 83 static void Log(const param_type& p, std::string* l); |
| 84 }; |
| 85 |
| 86 template <> |
76 struct CC_IPC_EXPORT ParamTraits<cc::CompositorFrame> { | 87 struct CC_IPC_EXPORT ParamTraits<cc::CompositorFrame> { |
77 typedef cc::CompositorFrame param_type; | 88 typedef cc::CompositorFrame param_type; |
78 static void Write(base::Pickle* m, const param_type& p); | 89 static void Write(base::Pickle* m, const param_type& p); |
79 static bool Read(const base::Pickle* m, | 90 static bool Read(const base::Pickle* m, |
80 base::PickleIterator* iter, | 91 base::PickleIterator* iter, |
81 param_type* p); | 92 param_type* p); |
82 static void Log(const param_type& p, std::string* l); | 93 static void Log(const param_type& p, std::string* l); |
83 }; | 94 }; |
84 | 95 |
85 template <> | 96 template <> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 static void Write(base::Pickle* m, const param_type& p); | 142 static void Write(base::Pickle* m, const param_type& p); |
132 static bool Read(const base::Pickle* m, | 143 static bool Read(const base::Pickle* m, |
133 base::PickleIterator* iter, | 144 base::PickleIterator* iter, |
134 param_type* p); | 145 param_type* p); |
135 static void Log(const param_type& p, std::string* l); | 146 static void Log(const param_type& p, std::string* l); |
136 }; | 147 }; |
137 | 148 |
138 } // namespace IPC | 149 } // namespace IPC |
139 | 150 |
140 #endif // CC_IPC_CC_PARAM_TRAITS_H_ | 151 #endif // CC_IPC_CC_PARAM_TRAITS_H_ |
OLD | NEW |