OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 /* From ppb_graphics_2d.idl modified Mon Mar 19 11:35:04 2012. */ | 6 /* From ppb_graphics_2d.idl modified Thu Mar 28 10:10:42 2013. */ |
7 | 7 |
8 #ifndef PPAPI_C_PPB_GRAPHICS_2D_H_ | 8 #ifndef PPAPI_C_PPB_GRAPHICS_2D_H_ |
9 #define PPAPI_C_PPB_GRAPHICS_2D_H_ | 9 #define PPAPI_C_PPB_GRAPHICS_2D_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
15 #include "ppapi/c/pp_point.h" | 15 #include "ppapi/c/pp_point.h" |
16 #include "ppapi/c/pp_rect.h" | 16 #include "ppapi/c/pp_rect.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 PP_Bool (*IsGraphics2D)(PP_Resource resource); | 74 PP_Bool (*IsGraphics2D)(PP_Resource resource); |
75 /** | 75 /** |
76 * Describe() retrieves the configuration for the given graphics context, | 76 * Describe() retrieves the configuration for the given graphics context, |
77 * filling the given values (which must not be <code>NULL</code>). | 77 * filling the given values (which must not be <code>NULL</code>). |
78 * | 78 * |
79 * @param[in] resource The 2D Graphics resource. | 79 * @param[in] resource The 2D Graphics resource. |
80 * @param[in,out] size The size of the 2D graphics context in the browser. | 80 * @param[in,out] size The size of the 2D graphics context in the browser. |
81 * @param[in,out] is_always_opaque Identifies whether only opaque data | 81 * @param[in,out] is_always_opaque Identifies whether only opaque data |
82 * will be painted. | 82 * will be painted. |
83 * | 83 * |
84 * @return Returns <code>PP_TRUE</code> on succes or <code>PP_FALSE</code> if | 84 * @return Returns <code>PP_TRUE</code> on success or <code>PP_FALSE</code> if |
85 * the resource is invalid. The output parameters will be set to 0 on a | 85 * the resource is invalid. The output parameters will be set to 0 on a |
86 * <code>PP_FALSE</code>. | 86 * <code>PP_FALSE</code>. |
87 */ | 87 */ |
88 PP_Bool (*Describe)(PP_Resource graphics_2d, | 88 PP_Bool (*Describe)(PP_Resource graphics_2d, |
89 struct PP_Size* size, | 89 struct PP_Size* size, |
90 PP_Bool* is_always_opqaue); | 90 PP_Bool* is_always_opqaue); |
91 /** | 91 /** |
92 * PaintImageData() enqueues a paint of the given image into the context. | 92 * PaintImageData() enqueues a paint of the given image into the context. |
93 * This function has no effect until you call Flush() As a result, what | 93 * This function has no effect until you call Flush() As a result, what |
94 * counts is the contents of the bitmap when you call Flush(), not when | 94 * counts is the contents of the bitmap when you call Flush(), not when |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 struct PP_CompletionCallback callback); | 249 struct PP_CompletionCallback callback); |
250 }; | 250 }; |
251 | 251 |
252 typedef struct PPB_Graphics2D_1_0 PPB_Graphics2D; | 252 typedef struct PPB_Graphics2D_1_0 PPB_Graphics2D; |
253 /** | 253 /** |
254 * @} | 254 * @} |
255 */ | 255 */ |
256 | 256 |
257 #endif /* PPAPI_C_PPB_GRAPHICS_2D_H_ */ | 257 #endif /* PPAPI_C_PPB_GRAPHICS_2D_H_ */ |
258 | 258 |
OLD | NEW |