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_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 "PPB_Graphics2D;0.3" | 19 #define PPB_GRAPHICS_2D_INTERFACE "PPB_Graphics2D;0.3" |
20 | 20 |
21 /** | 21 /** |
22 * @file | 22 * @file |
23 * Defines the PPB_Graphics2D struct. | 23 * Defines the PPB_Graphics2D struct. |
24 * | 24 * |
25 * @addtogroup PPB | 25 * @addtogroup Interfaces |
26 * @{ | 26 * @{ |
27 */ | 27 */ |
28 | 28 |
29 /** {PENDING: describe PPB_Graphics2D. */ | 29 /** {PENDING: describe PPB_Graphics2D. */ |
30 struct PPB_Graphics2D { | 30 struct PPB_Graphics2D { |
31 /** | 31 /** |
32 * The returned graphics context will not be bound to the plugin instance on | 32 * The returned graphics context will not be bound to the plugin instance on |
33 * creation (call BindGraphics on the plugin instance to do that). | 33 * creation (call BindGraphics on the plugin instance to do that). |
34 * | 34 * |
35 * Set the is_always_opaque flag if you know that you will be painting only | 35 * Set the is_always_opaque flag if you know that you will be painting only |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 /* TODO(darin): We should ensure that the completion callback always runs, so | 212 /* TODO(darin): We should ensure that the completion callback always runs, so |
213 * that it is easier for consumers to manage memory referenced by a callback. | 213 * that it is easier for consumers to manage memory referenced by a callback. |
214 */ | 214 */ |
215 int32_t (*Flush)(PP_Resource graphics_2d, | 215 int32_t (*Flush)(PP_Resource graphics_2d, |
216 struct PP_CompletionCallback callback); | 216 struct PP_CompletionCallback callback); |
217 | 217 |
218 }; | 218 }; |
219 | 219 |
220 /** | 220 /** |
221 * @} | 221 * @} |
222 * End addtogroup PPB | |
223 */ | 222 */ |
224 #endif /* PPAPI_C_PPB_GRAPHICS_2D_H_ */ | 223 #endif /* PPAPI_C_PPB_GRAPHICS_2D_H_ */ |
225 | 224 |
OLD | NEW |