| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |