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

Side by Side Diff: gpu/command_buffer/client/cmd_buffer_helper.cc

Issue 465040: Added CommandBufferClient, CommandBufferStub and some IPC messages.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 17 matching lines...) Expand all
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 32
33 // This file contains the implementation of the command buffer helper class. 33 // This file contains the implementation of the command buffer helper class.
34 34
35 #include "gpu/command_buffer/client/cmd_buffer_helper.h" 35 #include "gpu/command_buffer/client/cmd_buffer_helper.h"
36 #include "gpu/command_buffer/common/command_buffer.h" 36 #include "gpu/command_buffer/common/command_buffer.h"
37 37
38 namespace command_buffer { 38 namespace gpu {
39 39
40 using command_buffer::CommandBuffer; 40 using gpu::CommandBuffer;
41 41
42 CommandBufferHelper::CommandBufferHelper(CommandBuffer* command_buffer) 42 CommandBufferHelper::CommandBufferHelper(CommandBuffer* command_buffer)
43 : command_buffer_(command_buffer), 43 : command_buffer_(command_buffer),
44 entries_(NULL), 44 entries_(NULL),
45 entry_count_(0), 45 entry_count_(0),
46 token_(0), 46 token_(0),
47 last_token_read_(-1), 47 last_token_read_(-1),
48 get_(0), 48 get_(0),
49 put_(0) { 49 put_(0) {
50 } 50 }
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 CommandBufferEntry* space = &entries_[put_]; 181 CommandBufferEntry* space = &entries_[put_];
182 put_ += entries; 182 put_ += entries;
183 return space; 183 return space;
184 } 184 }
185 185
186 parse_error::ParseError CommandBufferHelper::GetParseError() { 186 parse_error::ParseError CommandBufferHelper::GetParseError() {
187 int32 parse_error = command_buffer_->ResetParseError(); 187 int32 parse_error = command_buffer_->ResetParseError();
188 return static_cast<parse_error::ParseError>(parse_error); 188 return static_cast<parse_error::ParseError>(parse_error);
189 } 189 }
190 190
191 } // namespace command_buffer 191 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/cmd_buffer_helper.h ('k') | gpu/command_buffer/client/cmd_buffer_helper_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698