Chromium Code Reviews| Index: ppapi/c/dev/ppb_graphics_3d_dev.h |
| =================================================================== |
| --- ppapi/c/dev/ppb_graphics_3d_dev.h (revision 94518) |
| +++ ppapi/c/dev/ppb_graphics_3d_dev.h (working copy) |
| @@ -196,6 +196,18 @@ |
| int32_t (*SetAttribs)(PP_Resource context, |
| int32_t* attrib_list); |
| + // Resizes the backing surface for context. |
| + // |
| + // On failure the following error codes may be returned: |
| + // - PP_ERROR_BADRESOURCE if context is invalid. |
| + // - PP_ERROR_BADARGUMENT if the value specified for width or height |
| + // is less than zero. |
| + // - PP_ERROR_NOMEMORY if the surface could not be resized due to |
| + // insufficient resources. |
|
piman
2011/07/28 23:35:06
You won't know about this case without doing a syn
alokp
2011/07/29 16:13:12
Yes I was worried about the round-trip, hence the
|
| + int32_t (*Resize)(PP_Resource context, |
| + int32_t width, |
| + int32_t height); |
| + |
| // Makes the contents of the color buffer available for compositing. |
| // This function has no effect on off-screen surfaces - ones not bound |
| // to any plugin instance. The contents of ancillary buffers are always |