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

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

Issue 329046: Splits the command buffers into common commands... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 2 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
Index: command_buffer/service/cross/cmd_parser.h
===================================================================
--- command_buffer/service/cross/cmd_parser.h (revision 30289)
+++ command_buffer/service/cross/cmd_parser.h (working copy)
@@ -77,6 +77,9 @@
// Processes all commands until get == put.
parse_error::ParseError ProcessAllCommands();
+ // Reports an error.
+ void ReportError(unsigned int command_id, parse_error::ParseError result);
+
private:
CommandBufferOffset get_;
CommandBufferOffset put_;
@@ -104,6 +107,9 @@
unsigned int command,
unsigned int arg_count,
const void* cmd_data) = 0;
+
+ // Returns a name for a command. Useful for logging / debuging.
+ virtual const char* GetCommandName(unsigned int command_id) const = 0;
};
} // namespace command_buffer

Powered by Google App Engine
This is Rietveld 408576698