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 /** | 6 /** |
7 * Defines the <code>PPB_Graphics2D</code> struct representing a 2D graphics | 7 * Defines the <code>PPB_Graphics2D</code> struct representing a 2D graphics |
8 * context within the browser. | 8 * context within the browser. |
9 */ | 9 */ |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 /** | 60 /** |
61 * Describe() retrieves the configuration for the given graphics context, | 61 * Describe() retrieves the configuration for the given graphics context, |
62 * filling the given values (which must not be <code>NULL</code>). | 62 * filling the given values (which must not be <code>NULL</code>). |
63 * | 63 * |
64 * @param[in] resource The 2D Graphics resource. | 64 * @param[in] resource The 2D Graphics resource. |
65 * @param[in,out] size The size of the 2D graphics context in the browser. | 65 * @param[in,out] size The size of the 2D graphics context in the browser. |
66 * @param[in,out] is_always_opaque Identifies whether only opaque data | 66 * @param[in,out] is_always_opaque Identifies whether only opaque data |
67 * will be painted. | 67 * will be painted. |
68 * | 68 * |
69 * @return Returns <code>PP_TRUE</code> on succes or <code>PP_FALSE</code> if | 69 * @return Returns <code>PP_TRUE</code> on success or <code>PP_FALSE</code> if |
70 * the resource is invalid. The output parameters will be set to 0 on a | 70 * the resource is invalid. The output parameters will be set to 0 on a |
71 * <code>PP_FALSE</code>. | 71 * <code>PP_FALSE</code>. |
72 */ | 72 */ |
73 PP_Bool Describe( | 73 PP_Bool Describe( |
74 [in] PP_Resource graphics_2d, | 74 [in] PP_Resource graphics_2d, |
75 [out] PP_Size size, | 75 [out] PP_Size size, |
76 [out] PP_Bool is_always_opqaue); | 76 [out] PP_Bool is_always_opqaue); |
77 | 77 |
78 /** | 78 /** |
79 * PaintImageData() enqueues a paint of the given image into the context. | 79 * PaintImageData() enqueues a paint of the given image into the context. |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 * being called from the main thread of the module, or | 237 * being called from the main thread of the module, or |
238 * <code>PP_ERROR_INPROGRESS</code> if a flush is already pending that has | 238 * <code>PP_ERROR_INPROGRESS</code> if a flush is already pending that has |
239 * not issued its callback yet. In the failure case, nothing will be updated | 239 * not issued its callback yet. In the failure case, nothing will be updated |
240 * and no callback will be scheduled. | 240 * and no callback will be scheduled. |
241 */ | 241 */ |
242 int32_t Flush( | 242 int32_t Flush( |
243 [in] PP_Resource graphics_2d, | 243 [in] PP_Resource graphics_2d, |
244 [in] PP_CompletionCallback callback); | 244 [in] PP_CompletionCallback callback); |
245 }; | 245 }; |
246 | 246 |
OLD | NEW |