OLD | NEW |
1 /* Copyright (c) 2010 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 | 5 |
6 #ifndef PPAPI_C_DEV_PPB_CONTEXT_3D_DEV_H_ | 6 #ifndef PPAPI_C_DEV_PPB_CONTEXT_3D_DEV_H_ |
7 #define PPAPI_C_DEV_PPB_CONTEXT_3D_DEV_H_ | 7 #define PPAPI_C_DEV_PPB_CONTEXT_3D_DEV_H_ |
8 | 8 |
9 #include "ppapi/c/dev/pp_graphics_3d_dev.h" | |
10 | |
11 #include "ppapi/c/pp_bool.h" | 9 #include "ppapi/c/pp_bool.h" |
| 10 #include "ppapi/c/pp_graphics_3d.h" |
12 #include "ppapi/c/pp_instance.h" | 11 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_resource.h" | 12 #include "ppapi/c/pp_resource.h" |
14 | 13 |
15 #define PPB_CONTEXT_3D_DEV_INTERFACE_0_1 "PPB_Context3D(Dev);0.1" | 14 #define PPB_CONTEXT_3D_DEV_INTERFACE_0_1 "PPB_Context3D(Dev);0.1" |
16 #define PPB_CONTEXT_3D_DEV_INTERFACE PPB_CONTEXT_3D_DEV_INTERFACE_0_1 | 15 #define PPB_CONTEXT_3D_DEV_INTERFACE PPB_CONTEXT_3D_DEV_INTERFACE_0_1 |
17 | 16 |
18 struct PPB_Context3D_Dev { | 17 struct PPB_Context3D_Dev { |
19 // Creates and initializes a rendering context and returns a handle to it. | 18 // Creates and initializes a rendering context and returns a handle to it. |
20 // The context can be used to render to any compatible PPB_Surface3D_Dev. | 19 // The context can be used to render to any compatible PPB_Surface3D_Dev. |
21 // | 20 // |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // | 115 // |
117 // On failure, the following error codes can be returned: | 116 // On failure, the following error codes can be returned: |
118 // - PP_GRAPHICS3DERROR_BAD_CONTEXT: if context is not a valid context. | 117 // - PP_GRAPHICS3DERROR_BAD_CONTEXT: if context is not a valid context. |
119 // - PP_ERROR_BADARGUMENT: if either draw or read is NULL. | 118 // - PP_ERROR_BADARGUMENT: if either draw or read is NULL. |
120 int32_t (*GetBoundSurfaces)(PP_Resource context, | 119 int32_t (*GetBoundSurfaces)(PP_Resource context, |
121 PP_Resource* draw, | 120 PP_Resource* draw, |
122 PP_Resource* read); | 121 PP_Resource* read); |
123 }; | 122 }; |
124 | 123 |
125 #endif // PPAPI_C_DEV_PPB_CONTEXT_3D_DEV_H_ | 124 #endif // PPAPI_C_DEV_PPB_CONTEXT_3D_DEV_H_ |
OLD | NEW |