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

Unified Diff: gpu/ipc/gpu_command_buffer_traits.cc

Issue 817653003: Update from https://crrev.com/309717 (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/gles2_conform_support/native/main.cc ('k') | gpu/khronos_glcts_support/khronos_glcts_test.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 | « gpu/gles2_conform_support/native/main.cc ('k') | gpu/khronos_glcts_support/khronos_glcts_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698