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

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

Issue 6400007: Implement proxy for 3d-related interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/ipc/gpu_command_buffer_traits.h ('k') | ppapi/ppapi_shared_proxy.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "gpu/ipc/gpu_command_buffer_traits.h"
6
7 namespace IPC {
8
9 void ParamTraits<gpu::CommandBuffer::State> ::Write(Message* m,
10 const param_type& p) {
11 WriteParam(m, p.num_entries);
12 WriteParam(m, p.get_offset);
13 WriteParam(m, p.put_offset);
14 WriteParam(m, p.token);
15 WriteParam(m, static_cast<int32>(p.error));
16 }
17
18 bool ParamTraits<gpu::CommandBuffer::State> ::Read(const Message* m,
19 void** iter,
20 param_type* p) {
21 int32 temp;
22 if (ReadParam(m, iter, &p->num_entries) &&
23 ReadParam(m, iter, &p->get_offset) &&
24 ReadParam(m, iter, &p->put_offset) &&
25 ReadParam(m, iter, &p->token) &&
26 ReadParam(m, iter, &temp)) {
27 p->error = static_cast<gpu::error::Error>(temp);
28 return true;
29 } else {
30 return false;
31 }
32 }
33
34 void ParamTraits<gpu::CommandBuffer::State> ::Log(const param_type& p,
35 std::string* l) {
36 l->append("<CommandBuffer::State>");
37 }
38
39 } // namespace IPC
OLDNEW
« no previous file with comments | « gpu/ipc/gpu_command_buffer_traits.h ('k') | ppapi/ppapi_shared_proxy.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698