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

Unified Diff: gpu/ipc/gpu_command_buffer_traits.h

Issue 1394543003: Added SyncToken command buffer trait to help with IPC messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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
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 d99d4654bffa59170a8da29965c8db2a1055e92f..880625e05124eb90fc1bab3681a6a12d7a2cd82d 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;
+struct SyncToken;
union ValueState;
}
@@ -27,6 +28,14 @@ struct GPU_EXPORT ParamTraits<gpu::CommandBuffer::State> {
};
template<>
+struct GPU_EXPORT ParamTraits<gpu::SyncToken> {
+ typedef gpu::SyncToken param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, base::PickleIterator* iter, param_type* p);
+ static void Log(const param_type& p, std::string* l);
+};
+
+template<>
struct GPU_EXPORT ParamTraits<gpu::Mailbox> {
typedef gpu::Mailbox param_type;
static void Write(Message* m, const param_type& p);

Powered by Google App Engine
This is Rietveld 408576698