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_Graphics3D</code> struct representing a 3D graphics | 7 * Defines the <code>PPB_Graphics3D</code> struct representing a 3D graphics |
8 * context within the browser. | 8 * context within the browser. |
9 */ | 9 */ |
10 | 10 |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 int32_t SetAttribs( | 202 int32_t SetAttribs( |
203 [in] PP_Resource context, | 203 [in] PP_Resource context, |
204 [in] int32_t[] attrib_list); | 204 [in] int32_t[] attrib_list); |
205 | 205 |
206 /** | 206 /** |
207 * GetError() returns the current state of the given 3D context. | 207 * GetError() returns the current state of the given 3D context. |
208 * | 208 * |
209 * The recoverable error conditions that have no side effect are | 209 * The recoverable error conditions that have no side effect are |
210 * detected and returned immediately by all functions in this interface. | 210 * detected and returned immediately by all functions in this interface. |
211 * In addition the implementation may get into a fatal state while | 211 * In addition the implementation may get into a fatal state while |
212 * processing a command. In this case the application must detroy the | 212 * processing a command. In this case the application must destroy the |
213 * context and reinitialize client API state and objects to continue | 213 * context and reinitialize client API state and objects to continue |
214 * rendering. | 214 * rendering. |
215 * | 215 * |
216 * Note that the same error code is also returned in the SwapBuffers callback. | 216 * Note that the same error code is also returned in the SwapBuffers callback. |
217 * It is recommended to handle error in the SwapBuffers callback because | 217 * It is recommended to handle error in the SwapBuffers callback because |
218 * GetError is synchronous. This function may be useful in rare cases where | 218 * GetError is synchronous. This function may be useful in rare cases where |
219 * drawing a frame is expensive and you want to verify the result of | 219 * drawing a frame is expensive and you want to verify the result of |
220 * ResizeBuffers before attemptimg to draw a frame. | 220 * ResizeBuffers before attempting to draw a frame. |
221 * | 221 * |
222 * @param[in] The 3D graphics context. | 222 * @param[in] The 3D graphics context. |
223 * @return Returns: | 223 * @return Returns: |
224 * - <code>PP_OK</code> if no error | 224 * - <code>PP_OK</code> if no error |
225 * - <code>PP_ERROR_NOMEMORY</code> | 225 * - <code>PP_ERROR_NOMEMORY</code> |
226 * - <code>PP_ERROR_CONTEXT_LOST</code> | 226 * - <code>PP_ERROR_CONTEXT_LOST</code> |
227 */ | 227 */ |
228 int32_t GetError( | 228 int32_t GetError( |
229 [in] PP_Resource context); | 229 [in] PP_Resource context); |
230 | 230 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 * @return Returns PP_OK on success or: | 284 * @return Returns PP_OK on success or: |
285 * - <code>PP_ERROR_BADRESOURCE</code> if context is invalid. | 285 * - <code>PP_ERROR_BADRESOURCE</code> if context is invalid. |
286 * - <code>PP_ERROR_BADARGUMENT</code> if callback is invalid. | 286 * - <code>PP_ERROR_BADARGUMENT</code> if callback is invalid. |
287 * | 287 * |
288 */ | 288 */ |
289 int32_t SwapBuffers( | 289 int32_t SwapBuffers( |
290 [in] PP_Resource context, | 290 [in] PP_Resource context, |
291 [in] PP_CompletionCallback callback); | 291 [in] PP_CompletionCallback callback); |
292 }; | 292 }; |
293 | 293 |
OLD | NEW |