Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / gpu / ipc / gpu_command_buffer_traits.h
index 6b2531f..ce854d2 100644 (file)
@@ -11,6 +11,7 @@
 
 namespace gpu {
 struct Mailbox;
+struct MailboxHolder;
 }
 
 namespace IPC {
@@ -31,6 +32,14 @@ struct GPU_EXPORT ParamTraits<gpu::Mailbox> {
   static void Log(const param_type& p, std::string* l);
 };
 
+template <>
+struct GPU_EXPORT ParamTraits<gpu::MailboxHolder> {
+  typedef gpu::MailboxHolder param_type;
+  static void Write(Message* m, const param_type& p);
+  static bool Read(const Message* m, PickleIterator* iter, param_type* p);
+  static void Log(const param_type& p, std::string* l);
+};
+
 }  // namespace IPC
 
 #endif  // GPU_IPC_GPU_PARAM_TRAITS_H_