| 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_PPB_GRAPHICS_2D_H_ | 5 #ifndef PPAPI_C_PPB_GRAPHICS_2D_H_ |
| 6 #define PPAPI_C_PPB_GRAPHICS_2D_H_ | 6 #define PPAPI_C_PPB_GRAPHICS_2D_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 struct PP_CompletionCallback; | 14 struct PP_CompletionCallback; |
| 15 struct PP_Point; | 15 struct PP_Point; |
| 16 struct PP_Rect; | 16 struct PP_Rect; |
| 17 struct PP_Size; | 17 struct PP_Size; |
| 18 | 18 |
| 19 #define PPB_GRAPHICS_2D_INTERFACE_0_4 "PPB_Graphics2D;0.4" | 19 #define PPB_GRAPHICS_2D_INTERFACE_0_4 "PPB_Graphics2D;0.4" |
| 20 #define PPB_GRAPHICS_2D_INTERFACE PPB_GRAPHICS_2D_INTERFACE_0_4 | 20 #define PPB_GRAPHICS_2D_INTERFACE_1_0 "PPB_Graphics2D;1.0" |
| 21 #define PPB_GRAPHICS_2D_INTERFACE PPB_GRAPHICS_2D_INTERFACE_1_0 |
| 21 | 22 |
| 22 /** | 23 /** |
| 23 * @file | 24 * @file |
| 24 * Defines the <code>PPB_Graphics2D</code> struct representing a 2D graphics | 25 * Defines the <code>PPB_Graphics2D</code> struct representing a 2D graphics |
| 25 * context within the browser. | 26 * context within the browser. |
| 26 * | 27 * |
| 27 * @addtogroup Interfaces | 28 * @addtogroup Interfaces |
| 28 * @{ | 29 * @{ |
| 29 */ | 30 */ |
| 30 | 31 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 */ | 260 */ |
| 260 int32_t (*Flush)(PP_Resource graphics_2d, | 261 int32_t (*Flush)(PP_Resource graphics_2d, |
| 261 struct PP_CompletionCallback callback); | 262 struct PP_CompletionCallback callback); |
| 262 | 263 |
| 263 }; | 264 }; |
| 264 | 265 |
| 265 /** | 266 /** |
| 266 * @} | 267 * @} |
| 267 */ | 268 */ |
| 268 #endif /* PPAPI_C_PPB_GRAPHICS_2D_H_ */ | 269 #endif /* PPAPI_C_PPB_GRAPHICS_2D_H_ */ |
| OLD | NEW |