| 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 17 matching lines...) Expand all Loading... |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 | 32 |
| 33 // This file contains the command parser class. | 33 // This file contains the command parser class. |
| 34 | 34 |
| 35 #ifndef O3D_COMMAND_BUFFER_SERVICE_CROSS_CMD_PARSER_H_ | 35 #ifndef O3D_COMMAND_BUFFER_SERVICE_CROSS_CMD_PARSER_H_ |
| 36 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_CMD_PARSER_H_ | 36 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_CMD_PARSER_H_ |
| 37 | 37 |
| 38 #include "core/cross/types.h" | |
| 39 #include "command_buffer/common/cross/constants.h" | 38 #include "command_buffer/common/cross/constants.h" |
| 40 #include "command_buffer/common/cross/cmd_buffer_common.h" | 39 #include "command_buffer/common/cross/cmd_buffer_common.h" |
| 41 | 40 |
| 42 namespace o3d { | 41 namespace o3d { |
| 43 namespace command_buffer { | 42 namespace command_buffer { |
| 44 | 43 |
| 45 class AsyncAPIInterface; | 44 class AsyncAPIInterface; |
| 46 | 45 |
| 47 // Command parser class. This class parses commands from a shared memory | 46 // Command parser class. This class parses commands from a shared memory |
| 48 // buffer, to implement some asynchronous RPC mechanism. | 47 // buffer, to implement some asynchronous RPC mechanism. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 const void* cmd_data) = 0; | 108 const void* cmd_data) = 0; |
| 110 | 109 |
| 111 // Returns a name for a command. Useful for logging / debuging. | 110 // Returns a name for a command. Useful for logging / debuging. |
| 112 virtual const char* GetCommandName(unsigned int command_id) const = 0; | 111 virtual const char* GetCommandName(unsigned int command_id) const = 0; |
| 113 }; | 112 }; |
| 114 | 113 |
| 115 } // namespace command_buffer | 114 } // namespace command_buffer |
| 116 } // namespace o3d | 115 } // namespace o3d |
| 117 | 116 |
| 118 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_CMD_PARSER_H_ | 117 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_CMD_PARSER_H_ |
| OLD | NEW |