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

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
« no previous file with comments | « content/renderer/pepper_platform_context_3d_impl.cc ('k') | ppapi/cpp/dev/graphics_3d_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
@@ -31,8 +31,8 @@
// // Shutdown.
// core->ReleaseResource(context);
-#define PPB_GRAPHICS_3D_DEV_INTERFACE_0_5 "PPB_Graphics3D(Dev);0.5"
-#define PPB_GRAPHICS_3D_DEV_INTERFACE PPB_GRAPHICS_3D_DEV_INTERFACE_0_5
+#define PPB_GRAPHICS_3D_DEV_INTERFACE_0_6 "PPB_Graphics3D(Dev);0.6"
+#define PPB_GRAPHICS_3D_DEV_INTERFACE PPB_GRAPHICS_3D_DEV_INTERFACE_0_6
struct PPB_Graphics3D_Dev {
// TODO(alokp): Do these functions need module argument?
@@ -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.
+ //
+ // If the surface could not be resized due to insufficient resources,
+ // PP_ERROR_NOMEMORY error is returned on the next SwapBuffers callback.
+ int32_t (*ResizeBuffers)(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
« no previous file with comments | « content/renderer/pepper_platform_context_3d_impl.cc ('k') | ppapi/cpp/dev/graphics_3d_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698