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

Unified Diff: ppapi/thunk/ppb_graphics_3d_thunk.cc

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/thunk/ppb_graphics_3d_thunk.cc
===================================================================
--- ppapi/thunk/ppb_graphics_3d_thunk.cc (revision 94518)
+++ ppapi/thunk/ppb_graphics_3d_thunk.cc (working copy)
@@ -64,6 +64,13 @@
return enter.object()->SetAttribs(attrib_list);
}
+int32_t Resize(PP_Resource graphics_3d, int32_t width, int32_t height) {
+ EnterGraphics3D enter(graphics_3d, true);
+ if (enter.failed())
+ return PP_ERROR_BADRESOURCE;
+ return enter.object()->Resize(width, height);
+}
+
int32_t SwapBuffers(PP_Resource graphics_3d, PP_CompletionCallback callback) {
EnterGraphics3D enter(graphics_3d, true);
if (enter.failed())
@@ -80,6 +87,7 @@
&IsGraphics3D,
&GetAttribs,
&SetAttribs,
+ &Resize,
&SwapBuffers
};

Powered by Google App Engine
This is Rietveld 408576698