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

Unified Diff: o3d/gpu_plugin/command_buffer.cc

Issue 207061: Added support for getting and setting the CommandBuffer token and error.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 | « o3d/gpu_plugin/command_buffer.h ('k') | o3d/gpu_plugin/command_buffer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: o3d/gpu_plugin/command_buffer.cc
===================================================================
--- o3d/gpu_plugin/command_buffer.cc (revision 26857)
+++ o3d/gpu_plugin/command_buffer.cc (working copy)
@@ -11,7 +11,9 @@
: npp_(npp),
size_(0),
get_offset_(0),
- put_offset_(0) {
+ put_offset_(0),
+ token_(0),
+ error_(ERROR_NO_ERROR) {
// Element zero is always NULL.
registered_objects_.push_back(NPObjectPointer<NPObject>());
}
@@ -152,5 +154,11 @@
return registered_objects_[handle];
}
+int32 CommandBuffer::ResetError() {
+ int32 last_error = error_;
+ error_ = ERROR_NO_ERROR;
+ return last_error;
+}
+
} // namespace gpu_plugin
} // namespace o3d
« no previous file with comments | « o3d/gpu_plugin/command_buffer.h ('k') | o3d/gpu_plugin/command_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698