| 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 | 5 |
| 6 #ifndef PPAPI_C_DEV_PPB_SURFACE_3D_DEV_H_ | 6 #ifndef PPAPI_C_DEV_PPB_SURFACE_3D_DEV_H_ |
| 7 #define PPAPI_C_DEV_PPB_SURFACE_3D_DEV_H_ | 7 #define PPAPI_C_DEV_PPB_SURFACE_3D_DEV_H_ |
| 8 | 8 |
| 9 #include "ppapi/c/dev/pp_graphics_3d_dev.h" |
| 9 #include "ppapi/c/pp_bool.h" | 10 #include "ppapi/c/pp_bool.h" |
| 10 #include "ppapi/c/pp_graphics_3d.h" | |
| 11 #include "ppapi/c/pp_completion_callback.h" | 11 #include "ppapi/c/pp_completion_callback.h" |
| 12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
| 13 #include "ppapi/c/pp_resource.h" | 13 #include "ppapi/c/pp_resource.h" |
| 14 | 14 |
| 15 #define PPB_SURFACE_3D_DEV_INTERFACE_0_2 "PPB_Surface3D(Dev);0.2" | 15 #define PPB_SURFACE_3D_DEV_INTERFACE_0_2 "PPB_Surface3D(Dev);0.2" |
| 16 #define PPB_SURFACE_3D_DEV_INTERFACE PPB_SURFACE_3D_DEV_INTERFACE_0_2 | 16 #define PPB_SURFACE_3D_DEV_INTERFACE PPB_SURFACE_3D_DEV_INTERFACE_0_2 |
| 17 | 17 |
| 18 struct PPB_Surface3D_Dev { | 18 struct PPB_Surface3D_Dev { |
| 19 // Creates a render surface and returns a handle to it. | 19 // Creates a render surface and returns a handle to it. |
| 20 // Any PPB_Context3D_Dev created with a compatible PP_Config3D_Dev | 20 // Any PPB_Context3D_Dev created with a compatible PP_Config3D_Dev |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // plugin's current state is actually on the screen, this function provides a | 104 // plugin's current state is actually on the screen, this function provides a |
| 105 // way to rate limit animations. By waiting until the image is on the screen | 105 // way to rate limit animations. By waiting until the image is on the screen |
| 106 // before painting the next frame, you can ensure you're not generating | 106 // before painting the next frame, you can ensure you're not generating |
| 107 // updates faster than the screen can be updated. | 107 // updates faster than the screen can be updated. |
| 108 // | 108 // |
| 109 int32_t (*SwapBuffers)(PP_Resource surface, | 109 int32_t (*SwapBuffers)(PP_Resource surface, |
| 110 struct PP_CompletionCallback callback); | 110 struct PP_CompletionCallback callback); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 #endif // PPAPI_C_DEV_PPB_SURFACE_3D_DEV_H_ | 113 #endif // PPAPI_C_DEV_PPB_SURFACE_3D_DEV_H_ |
| OLD | NEW |