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

Side by Side Diff: command_buffer/service/cross/cmd_parser.h

Issue 212018: Change command buffer client code to use structures.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
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 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // is responsible for de-multiplexing commands and their arguments. 90 // is responsible for de-multiplexing commands and their arguments.
91 class AsyncAPIInterface { 91 class AsyncAPIInterface {
92 public: 92 public:
93 AsyncAPIInterface() {} 93 AsyncAPIInterface() {}
94 virtual ~AsyncAPIInterface() {} 94 virtual ~AsyncAPIInterface() {}
95 95
96 // Executes a command. 96 // Executes a command.
97 // Parameters: 97 // Parameters:
98 // command: the command index. 98 // command: the command index.
99 // arg_count: the number of CommandBufferEntry arguments. 99 // arg_count: the number of CommandBufferEntry arguments.
100 // args: the arguments. 100 // cmd_data: the command data.
101 // Returns: 101 // Returns:
102 // BufferSyncInterface::NO_ERROR if no error was found, one of 102 // BufferSyncInterface::NO_ERROR if no error was found, one of
103 // BufferSyncInterface::ParseError otherwise. 103 // BufferSyncInterface::ParseError otherwise.
104 virtual BufferSyncInterface::ParseError DoCommand( 104 virtual BufferSyncInterface::ParseError DoCommand(
105 unsigned int command, 105 unsigned int command,
106 unsigned int arg_count, 106 unsigned int arg_count,
107 const void* args) = 0; 107 const void* cmd_data) = 0;
108 }; 108 };
109 109
110 } // namespace command_buffer 110 } // namespace command_buffer
111 } // namespace o3d 111 } // namespace o3d
112 112
113 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_CMD_PARSER_H_ 113 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_CMD_PARSER_H_
OLDNEW
« no previous file with comments | « command_buffer/service/cross/cmd_buffer_engine_test.cc ('k') | command_buffer/service/cross/cmd_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698