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