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 #ifndef O3D_COMMAND_BUFFER_COMMON_CROSS_RPC_H_ | 33 #ifndef O3D_COMMAND_BUFFER_COMMON_CROSS_RPC_H_ |
34 #define O3D_COMMAND_BUFFER_COMMON_CROSS_RPC_H_ | 34 #define O3D_COMMAND_BUFFER_COMMON_CROSS_RPC_H_ |
35 | 35 |
36 #include "base/basictypes.h" | 36 #include "base/basictypes.h" |
37 | 37 |
38 #include "third_party/native_client/googleclient/native_client/src/shared/imc/na
cl_htp.h" | 38 #include "native_client/src/shared/imc/nacl_htp.h" |
39 | 39 |
40 namespace o3d { | 40 namespace o3d { |
41 namespace command_buffer { | 41 namespace command_buffer { |
42 | 42 |
43 // Pre-defined message IDs. | 43 // Pre-defined message IDs. |
44 enum { | 44 enum { |
45 POISONED_MESSAGE_ID, // sent to kill the RPC server. | 45 POISONED_MESSAGE_ID, // sent to kill the RPC server. |
46 RESPONSE_ID, // sent as a response to a RPC call. | 46 RESPONSE_ID, // sent as a response to a RPC call. |
47 }; | 47 }; |
48 | 48 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // address: the address of the mapped region. | 151 // address: the address of the mapped region. |
152 // size: the size of the region to un-map. It can be a subset of the | 152 // size: the size of the region to un-map. It can be a subset of the |
153 // previously mapped region, but the underlying implementation will | 153 // previously mapped region, but the underlying implementation will |
154 // round it up to the page size. | 154 // round it up to the page size. |
155 void UnmapShm(void *address, size_t size); | 155 void UnmapShm(void *address, size_t size); |
156 | 156 |
157 } // namespace command_buffer | 157 } // namespace command_buffer |
158 } // namespace o3d | 158 } // namespace o3d |
159 | 159 |
160 #endif // O3D_COMMAND_BUFFER_COMMON_CROSS_RPC_H_ | 160 #endif // O3D_COMMAND_BUFFER_COMMON_CROSS_RPC_H_ |
OLD | NEW |