| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 * | 233 * |
| 234 * @return Returns <code>PP_OK</code> on success or | 234 * @return Returns <code>PP_OK</code> on success or |
| 235 * <code>PP_ERROR_BADRESOURCE</code> if the graphics context is invalid, | 235 * <code>PP_ERROR_BADRESOURCE</code> if the graphics context is invalid, |
| 236 * <code>PP_ERROR_BADARGUMENT</code> if the callback is null and flush is | 236 * <code>PP_ERROR_BADARGUMENT</code> if the callback is null and flush is |
| 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 | 242 |
| 243 /* | 243 /* TODO(darin): We should ensure that the completion callback always runs, so |
| 244 * TODO(darin): We should ensure that the completion callback always runs, so | |
| 245 * that it is easier for consumers to manage memory referenced by a callback. | 244 * that it is easier for consumers to manage memory referenced by a callback. |
| 246 */ | 245 */ |
| 247 | 246 |
| 248 /* | 247 /* TODO(): Add back in the synchronous mode description once we have support |
| 249 * TODO(): Add back in the synchronous mode description once we have support | |
| 250 * for it. | 248 * for it. |
| 251 */ | 249 */ |
| 252 int32_t Flush( | 250 int32_t Flush( |
| 253 [in] PP_Resource graphics_2d, | 251 [in] PP_Resource graphics_2d, |
| 254 [in] PP_CompletionCallback callback); | 252 [in] PP_CompletionCallback callback); |
| 255 }; | 253 }; |
| 256 | 254 |
| OLD | NEW |