| OLD | NEW |
| 1 // Copyright (c) 2010 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 #ifndef PPAPI_C_DEV_PPB_GRAPHICS_3D_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPB_GRAPHICS_3D_DEV_H_ |
| 6 #define PPAPI_C_DEV_PPB_GRAPHICS_3D_DEV_H_ | 6 #define PPAPI_C_DEV_PPB_GRAPHICS_3D_DEV_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
| 9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
| 10 #include "ppapi/c/pp_module.h" | 10 #include "ppapi/c/pp_module.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 // Example usage from plugin code: | 14 // Example usage from plugin code: |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // linear. I could convert from linear to premultiplied during the copy from | 94 // linear. I could convert from linear to premultiplied during the copy from |
| 95 // back-buffer to offscreen "front-buffer". | 95 // back-buffer to offscreen "front-buffer". |
| 96 PP_Bool (*SwapBuffers)(PP_Resource context); | 96 PP_Bool (*SwapBuffers)(PP_Resource context); |
| 97 | 97 |
| 98 // Returns the current error for this thread. This is not associated with a | 98 // Returns the current error for this thread. This is not associated with a |
| 99 // particular context. It is distinct from the GL error returned by | 99 // particular context. It is distinct from the GL error returned by |
| 100 // glGetError. | 100 // glGetError. |
| 101 uint32_t (*GetError)(); | 101 uint32_t (*GetError)(); |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 #endif // PPAPI_C_DEV_PPB_GRAPHICS_3D_DEV_H_ | 104 #endif /* PPAPI_C_DEV_PPB_GRAPHICS_3D_DEV_H_ */ |
| 105 |
| OLD | NEW |