Chromium Code Reviews| Index: cc/ipc/cc_param_traits.h |
| diff --git a/cc/ipc/cc_param_traits.h b/cc/ipc/cc_param_traits.h |
| index c813a9dba97504b09e15c7b4c5c79b007d6a3727..f245e36ace7657e82360ffb794358a974579a552 100644 |
| --- a/cc/ipc/cc_param_traits.h |
| +++ b/cc/ipc/cc_param_traits.h |
| @@ -93,6 +93,16 @@ struct CC_IPC_EXPORT ParamTraits<cc::CompositorFrame> { |
| }; |
| template <> |
| +struct CC_IPC_EXPORT ParamTraits<std::unique_ptr<cc::CompositorFrame>> { |
|
danakj
2016/06/23 20:34:41
its a bit weird tho, why do you need to do it this
|
| + typedef std::unique_ptr<cc::CompositorFrame> param_type; |
| + static void Write(base::Pickle* m, const param_type& p); |
| + static bool Read(const base::Pickle* m, |
| + base::PickleIterator* iter, |
| + param_type* r); |
| + static void Log(const param_type& p, std::string* l); |
| +}; |
| + |
| +template <> |
| struct CC_IPC_EXPORT ParamTraits<cc::CompositorFrameAck> { |
| typedef cc::CompositorFrameAck param_type; |
| static void Write(base::Pickle* m, const param_type& p); |