Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: ppapi/c/dev/ppb_graphics_3d_dev.h

Issue 7530010: Added PPB_Graphics3D_Dev::Resize to let plugins resize the backing surface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698