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

Unified Diff: gpu/ipc/gpu_command_buffer_traits.cc

Issue 818833004: Remove deprecated methods from Pickle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 | « extensions/renderer/user_script_set.cc ('k') | ipc/ipc_channel_posix.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.cc
diff --git a/gpu/ipc/gpu_command_buffer_traits.cc b/gpu/ipc/gpu_command_buffer_traits.cc
index ade1e1dba0849af8760383ac6d8255bdbb5cb626..1de3b414d77d2d2ead7edb58da5f138cbfbb15a9 100644
--- a/gpu/ipc/gpu_command_buffer_traits.cc
+++ b/gpu/ipc/gpu_command_buffer_traits.cc
@@ -63,7 +63,7 @@ bool ParamTraits<gpu::Mailbox>::Read(const Message* m,
PickleIterator* iter,
param_type* p) {
const char* bytes = NULL;
- if (!m->ReadBytes(iter, &bytes, sizeof(p->name)))
+ if (!iter->ReadBytes(&bytes, sizeof(p->name)))
return false;
DCHECK(bytes);
memcpy(p->name, bytes, sizeof(p->name));
@@ -106,7 +106,7 @@ bool ParamTraits<gpu::ValueState>::Read(const Message* m,
param_type* p) {
int length;
const char* data = NULL;
- if (!m->ReadData(iter, &data, &length) || length != sizeof(gpu::ValueState))
+ if (!iter->ReadData(&data, &length) || length != sizeof(gpu::ValueState))
return false;
DCHECK(data);
memcpy(p, data, sizeof(gpu::ValueState));
« no previous file with comments | « extensions/renderer/user_script_set.cc ('k') | ipc/ipc_channel_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698