OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PPAPI_C_DEV_PPB_CONTEXT_3D_TRUSTED_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPB_CONTEXT_3D_TRUSTED_DEV_H_ |
6 #define PPAPI_C_DEV_PPB_CONTEXT_3D_TRUSTED_DEV_H_ | 6 #define PPAPI_C_DEV_PPB_CONTEXT_3D_TRUSTED_DEV_H_ |
7 | 7 |
8 #include "ppapi/c/dev/ppb_context_3d_dev.h" | 8 #include "ppapi/c/dev/ppb_context_3d_dev.h" |
9 #include "ppapi/c/pp_bool.h" | 9 #include "ppapi/c/pp_bool.h" |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
11 #include "ppapi/c/pp_resource.h" | 11 #include "ppapi/c/pp_resource.h" |
12 #include "ppapi/c/pp_stdint.h" | 12 #include "ppapi/c/pp_stdint.h" |
13 | 13 |
14 #define PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE_0_4 "PPB_Context3DTrusted(Dev);0.4" | 14 #define PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE_0_4 "PPB_Context3DTrusted(Dev);0.4" |
15 #define PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE \ | 15 #define PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE \ |
16 PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE_0_4 | 16 PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE_0_4 |
17 | 17 |
| 18 // TODO(brettw) Remove these generic names from the global namespace! |
18 typedef enum { | 19 typedef enum { |
19 kNoError, | 20 kNoError, |
20 kInvalidSize, | 21 kInvalidSize, |
21 kOutOfBounds, | 22 kOutOfBounds, |
22 kUnknownCommand, | 23 kUnknownCommand, |
23 kInvalidArguments, | 24 kInvalidArguments, |
24 kLostContext, | 25 kLostContext, |
25 kGenericError | 26 kGenericError |
26 } PPB_Context3DTrustedError; | 27 } PPB_Context3DTrustedError; |
27 | 28 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Like FlushSync, but returns before processing commands if the get offset is | 99 // Like FlushSync, but returns before processing commands if the get offset is |
99 // different than last_known_get. Allows synchronization with the command | 100 // different than last_known_get. Allows synchronization with the command |
100 // processor without forcing immediate command execution. | 101 // processor without forcing immediate command execution. |
101 struct PP_Context3DTrustedState (*FlushSyncFast)(PP_Resource context, | 102 struct PP_Context3DTrustedState (*FlushSyncFast)(PP_Resource context, |
102 int32_t put_offset, | 103 int32_t put_offset, |
103 int32_t last_known_get); | 104 int32_t last_known_get); |
104 }; | 105 }; |
105 | 106 |
106 #endif // PPAPI_C_DEV_PPB_CONTEXT_3D_TRUSTED_DEV_H_ | 107 #endif // PPAPI_C_DEV_PPB_CONTEXT_3D_TRUSTED_DEV_H_ |
107 | 108 |
OLD | NEW |