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

Unified Diff: gpu/ipc/gpu_command_buffer_traits.cc

Issue 1386323004: Revert of 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
« no previous file with comments | « gpu/ipc/gpu_command_buffer_traits.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/gpu_command_buffer_traits.cc
diff --git a/gpu/ipc/gpu_command_buffer_traits.cc b/gpu/ipc/gpu_command_buffer_traits.cc
index 9613aa1059febd43c400532ac7231c2b0d03a6b9..8d2148de0f7842d9741cbb61ba6fed3f18450810 100644
--- a/gpu/ipc/gpu_command_buffer_traits.cc
+++ b/gpu/ipc/gpu_command_buffer_traits.cc
@@ -5,7 +5,6 @@
#include "gpu/ipc/gpu_command_buffer_traits.h"
#include "gpu/command_buffer/common/mailbox_holder.h"
-#include "gpu/command_buffer/common/sync_token.h"
#include "gpu/command_buffer/common/value_state.h"
// Generate param traits write methods.
@@ -54,29 +53,6 @@
void ParamTraits<gpu::CommandBuffer::State> ::Log(const param_type& p,
std::string* l) {
l->append("<CommandBuffer::State>");
-}
-
-void ParamTraits<gpu::SyncToken>::Write(Message* m, const param_type& p) {
- m->WriteBytes(p.data, sizeof(p.data));
-}
-
-bool ParamTraits<gpu::SyncToken> ::Read(const Message* m,
- base::PickleIterator* iter,
- param_type* p) {
- const char* bytes = NULL;
- if (!iter->ReadBytes(&bytes, sizeof(p->data)))
- return false;
- DCHECK(bytes);
- memcpy(p->data, bytes, sizeof(p->data));
- return true;
-}
-
-void ParamTraits<gpu::SyncToken>::Log(const param_type& p, std::string* l) {
- *l += base::StringPrintf(
- "[%d:%llX] %llu",
- static_cast<int>(p.GetNamespaceId()),
- static_cast<unsigned long long>(p.GetCommandBufferId()),
- static_cast<unsigned long long>(p.GetReleaseCount()));
}
void ParamTraits<gpu::Mailbox>::Write(Message* m, const param_type& p) {
« no previous file with comments | « gpu/ipc/gpu_command_buffer_traits.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698