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

Unified Diff: gpu/command_buffer/service/cmd_parser.h

Issue 555129: Add commands Jump, Call and Return... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/cmd_buffer_engine.h ('k') | gpu/command_buffer/service/cmd_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/cmd_parser.h
===================================================================
--- gpu/command_buffer/service/cmd_parser.h (revision 37239)
+++ gpu/command_buffer/service/cmd_parser.h (working copy)
@@ -29,6 +29,16 @@
// buffer considered as an array of CommandBufferEntry.
CommandBufferOffset get() const { return get_; }
+ // Sets the "get" pointer. The get pointer is an index into the command buffer
+ // considered as an array of CommandBufferEntry.
+ bool set_get(CommandBufferOffset get) {
+ if (get < entry_count_) {
+ get_ = get;
+ return true;
+ }
+ return false;
+ }
+
// Sets the "put" pointer. The put pointer is an index into the command
// buffer considered as an array of CommandBufferEntry.
void set_put(CommandBufferOffset put) { put_ = put; }
@@ -54,7 +64,7 @@
CommandBufferOffset get_;
CommandBufferOffset put_;
CommandBufferEntry *buffer_;
- size_t entry_count_;
+ int32 entry_count_;
AsyncAPIInterface *handler_;
};
« no previous file with comments | « gpu/command_buffer/service/cmd_buffer_engine.h ('k') | gpu/command_buffer/service/cmd_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698