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

Side by Side Diff: gpu/ipc/gpu_command_buffer_traits.cc

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « gpu/ipc/gpu_command_buffer_traits.h ('k') | gpu/ipc/gpu_command_buffer_traits_multi.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/ipc/gpu_command_buffer_traits.h" 5 #include "gpu/ipc/gpu_command_buffer_traits.h"
6
6 #include "gpu/command_buffer/common/mailbox_holder.h" 7 #include "gpu/command_buffer/common/mailbox_holder.h"
7 8
9 // Generate param traits write methods.
10 #include "ipc/param_traits_write_macros.h"
11 namespace IPC {
12 #include "gpu/ipc/gpu_command_buffer_traits_multi.h"
13 } // namespace IPC
14
15 // Generate param traits read methods.
16 #include "ipc/param_traits_read_macros.h"
17 namespace IPC {
18 #include "gpu/ipc/gpu_command_buffer_traits_multi.h"
19 } // namespace IPC
20
21 // Generate param traits log methods.
22 #include "ipc/param_traits_log_macros.h"
23 namespace IPC {
24 #include "gpu/ipc/gpu_command_buffer_traits_multi.h"
25 } // namespace IPC
26
8 namespace IPC { 27 namespace IPC {
9 28
10 void ParamTraits<gpu::CommandBuffer::State> ::Write(Message* m, 29 void ParamTraits<gpu::CommandBuffer::State> ::Write(Message* m,
11 const param_type& p) { 30 const param_type& p) {
12 WriteParam(m, p.get_offset); 31 WriteParam(m, p.get_offset);
13 WriteParam(m, p.token); 32 WriteParam(m, p.token);
14 WriteParam(m, static_cast<int32>(p.error)); 33 WriteParam(m, static_cast<int32>(p.error));
15 WriteParam(m, p.generation); 34 WriteParam(m, p.generation);
16 } 35 }
17 36
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 return false; 89 return false;
71 return true; 90 return true;
72 } 91 }
73 92
74 void ParamTraits<gpu::MailboxHolder>::Log(const param_type& p, std::string* l) { 93 void ParamTraits<gpu::MailboxHolder>::Log(const param_type& p, std::string* l) {
75 ParamTraits<gpu::Mailbox>::Log(p.mailbox, l); 94 ParamTraits<gpu::Mailbox>::Log(p.mailbox, l);
76 *l += base::StringPrintf(":%04x@%d", p.texture_target, p.sync_point); 95 *l += base::StringPrintf(":%04x@%d", p.texture_target, p.sync_point);
77 } 96 }
78 97
79 } // namespace IPC 98 } // namespace IPC
OLDNEW
« no previous file with comments | « gpu/ipc/gpu_command_buffer_traits.h ('k') | gpu/ipc/gpu_command_buffer_traits_multi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698