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

Unified Diff: command_buffer/client/cross/cmd_buffer_helper.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/client/cross/cmd_buffer_helper.h
===================================================================
--- command_buffer/client/cross/cmd_buffer_helper.h (revision 30289)
+++ command_buffer/client/cross/cmd_buffer_helper.h (working copy)
@@ -170,6 +170,19 @@
parse_error::ParseError GetParseError();
+ // Common Commands
+ void Noop(uint32 skip_count) {
+ cmd::Noop& cmd = GetImmediateCmdSpace<cmd::Noop>(
+ skip_count * sizeof(CommandBufferEntry));
+ cmd.Init(skip_count);
+ }
+
+ void SetToken(uint32 token) {
+ cmd::SetToken& cmd = GetCmdSpace<cmd::SetToken>();
+ cmd.Init(token);
+ }
+
+
private:
// Waits until get changes, updating the value of get_.
void WaitForGetChange();

Powered by Google App Engine
This is Rietveld 408576698