| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 virtual void SignalGetChanges(CommandBufferOffset current_value, | 124 virtual void SignalGetChanges(CommandBufferOffset current_value, |
| 125 int rpc_message_id); | 125 int rpc_message_id); |
| 126 | 126 |
| 127 // Gets the status of the service. | 127 // Gets the status of the service. |
| 128 // Returns: | 128 // Returns: |
| 129 // The status of the service. | 129 // The status of the service. |
| 130 virtual ParserStatus GetStatus(); | 130 virtual ParserStatus GetStatus(); |
| 131 | 131 |
| 132 // Gets the current parse error. The current parse error is set when the | 132 // Gets the current parse error. The current parse error is set when the |
| 133 // service is in the PARSE_ERROR status. It may also be set while in the | 133 // service is in the PARSE_ERROR status. It may also be set while in the |
| 134 // PARSING state, if a recoverable error (like PARSE_UNKNOWN_METHOD) was | 134 // kParsing state, if a recoverable error (like PARSE_UNKNOWN_METHOD) was |
| 135 // encountered. Getting the error resets it to PARSE_NO_ERROR. | 135 // encountered. Getting the error resets it to kParseNoError. |
| 136 // Returns: | 136 // Returns: |
| 137 // The current parse error. | 137 // The current parse error. |
| 138 virtual ParseError GetParseError(); | 138 virtual ParseError GetParseError(); |
| 139 | 139 |
| 140 // Gets the base address of a registered shared memory buffer. | 140 // Gets the base address of a registered shared memory buffer. |
| 141 // Parameters: | 141 // Parameters: |
| 142 // shm_id: the identifier for the shared memory buffer. | 142 // shm_id: the identifier for the shared memory buffer. |
| 143 void *GetSharedMemoryAddress(unsigned int shm_id); | 143 void *GetSharedMemoryAddress(unsigned int shm_id); |
| 144 | 144 |
| 145 // Gets the size of a registered shared memory buffer. | 145 // Gets the size of a registered shared memory buffer. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 void *address; | 205 void *address; |
| 206 size_t size; | 206 size_t size; |
| 207 }; | 207 }; |
| 208 std::vector<MemoryMapping> shared_memory_buffers_; | 208 std::vector<MemoryMapping> shared_memory_buffers_; |
| 209 }; | 209 }; |
| 210 | 210 |
| 211 } // namespace command_buffer | 211 } // namespace command_buffer |
| 212 } // namespace o3d | 212 } // namespace o3d |
| 213 | 213 |
| 214 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_CMD_BUFFER_ENGINE_H_ | 214 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_CMD_BUFFER_ENGINE_H_ |
| OLD | NEW |