Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: gpu/ipc/gpu_command_buffer_traits.h

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/gpu.gyp ('k') | gpu/ipc/gpu_command_buffer_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/gpu_command_buffer_traits.h
diff --git a/gpu/ipc/gpu_command_buffer_traits.h b/gpu/ipc/gpu_command_buffer_traits.h
index 345163948d3b1709db2fad974cf833bc892042f5..1c7e02e76e532bca8f47ae85f78d719d8522a279 100644
--- a/gpu/ipc/gpu_command_buffer_traits.h
+++ b/gpu/ipc/gpu_command_buffer_traits.h
@@ -13,6 +13,7 @@
namespace gpu {
struct Mailbox;
struct MailboxHolder;
+union ValueState;
}
namespace IPC {
@@ -41,6 +42,14 @@ struct GPU_EXPORT ParamTraits<gpu::MailboxHolder> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct GPU_EXPORT ParamTraits<gpu::ValueState> {
+ typedef gpu::ValueState 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_
« no previous file with comments | « gpu/gpu.gyp ('k') | gpu/ipc/gpu_command_buffer_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698