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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 #ifndef O3D_COMMAND_BUFFER_COMMON_CROSS_BUFFER_SYNC_API_H_ | 35 #ifndef O3D_COMMAND_BUFFER_COMMON_CROSS_BUFFER_SYNC_API_H_ |
36 #define O3D_COMMAND_BUFFER_COMMON_CROSS_BUFFER_SYNC_API_H_ | 36 #define O3D_COMMAND_BUFFER_COMMON_CROSS_BUFFER_SYNC_API_H_ |
37 | 37 |
38 #include "command_buffer/common/cross/rpc.h" | 38 #include "command_buffer/common/cross/rpc.h" |
39 | 39 |
40 namespace o3d { | 40 namespace o3d { |
41 namespace command_buffer { | 41 namespace command_buffer { |
42 | 42 |
43 // Command buffer type. | 43 // Command buffer type. |
44 typedef ptrdiff_t CommandBufferOffset; | 44 typedef size_t CommandBufferOffset; |
45 | 45 |
46 // Interface class for the Command Buffer Synchronous API. | 46 // Interface class for the Command Buffer Synchronous API. |
47 // This is the part of the command buffer API that is accessible through the | 47 // This is the part of the command buffer API that is accessible through the |
48 // RPC mechanism, synchronously. | 48 // RPC mechanism, synchronously. |
49 class BufferSyncInterface { | 49 class BufferSyncInterface { |
50 public: | 50 public: |
51 // Status of the command buffer service. It does not process commands | 51 // Status of the command buffer service. It does not process commands |
52 // (meaning: get will not change) unless in PARSING state. | 52 // (meaning: get will not change) unless in PARSING state. |
53 enum ParserStatus { | 53 enum ParserStatus { |
54 NOT_CONNECTED, // The service is not connected - initial state. | 54 NOT_CONNECTED, // The service is not connected - initial state. |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // encountered. Getting the error resets it to PARSE_NO_ERROR. | 159 // encountered. Getting the error resets it to PARSE_NO_ERROR. |
160 // Returns: | 160 // Returns: |
161 // The current parse error. | 161 // The current parse error. |
162 virtual ParseError GetParseError() = 0; | 162 virtual ParseError GetParseError() = 0; |
163 }; | 163 }; |
164 | 164 |
165 } // namespace command_buffer | 165 } // namespace command_buffer |
166 } // namespace o3d | 166 } // namespace o3d |
167 | 167 |
168 #endif // O3D_COMMAND_BUFFER_COMMON_CROSS_BUFFER_SYNC_API_H_ | 168 #endif // O3D_COMMAND_BUFFER_COMMON_CROSS_BUFFER_SYNC_API_H_ |
OLD | NEW |