Chromium Code Reviews| Index: gpu/ipc/common/gpu_command_buffer_traits.h |
| diff --git a/gpu/ipc/common/gpu_command_buffer_traits.h b/gpu/ipc/common/gpu_command_buffer_traits.h |
| index 11209470f71268bf6cd9f5141477f1a5d0929532..b88ad3c2b43dd4bd1535246c3fbd4cf227348192 100644 |
| --- a/gpu/ipc/common/gpu_command_buffer_traits.h |
| +++ b/gpu/ipc/common/gpu_command_buffer_traits.h |
| @@ -16,6 +16,7 @@ namespace gpu { |
| struct Mailbox; |
| struct MailboxHolder; |
| struct SyncToken; |
| +struct TextureInUseResponse; |
| } |
| namespace IPC { |
| @@ -42,6 +43,17 @@ struct GPU_EXPORT ParamTraits<gpu::SyncToken> { |
| static void Log(const param_type& p, std::string* l); |
| }; |
| +template <> |
| +struct GPU_EXPORT ParamTraits<gpu::TextureInUseResponse> { |
|
piman
2016/06/15 00:37:47
nit: could this be a IPC_STRUCT_TRAITS in gpu_mess
erikchen
2016/06/15 00:44:01
I tried that at first. gpu_messages.h is a multip
|
| + using param_type = gpu::TextureInUseResponse; |
| + static void GetSize(base::PickleSizer* s, const param_type& p); |
| + static void Write(base::Pickle* m, const param_type& p); |
| + static bool Read(const base::Pickle* m, |
| + base::PickleIterator* iter, |
| + param_type* p); |
| + static void Log(const param_type& p, std::string* l); |
| +}; |
| + |
| template<> |
| struct GPU_EXPORT ParamTraits<gpu::Mailbox> { |
| using param_type = gpu::Mailbox; |