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

Unified Diff: ppapi/cpp/dev/graphics_3d_dev.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
« no previous file with comments | « ppapi/cpp/dev/graphics_3d_dev.h ('k') | ppapi/shared_impl/graphics_3d_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/graphics_3d_dev.cc
===================================================================
--- ppapi/cpp/dev/graphics_3d_dev.cc (revision 94518)
+++ ppapi/cpp/dev/graphics_3d_dev.cc (working copy)
@@ -87,6 +87,14 @@
attrib_list);
}
+int32_t Graphics3D_Dev::ResizeBuffers(int32_t width, int32_t height) {
+ if (!has_interface<PPB_Graphics3D_Dev>())
+ return PP_ERROR_NOINTERFACE;
+
+ return get_interface<PPB_Graphics3D_Dev>()->ResizeBuffers(
+ pp_resource(), width, height);
+}
+
int32_t Graphics3D_Dev::SwapBuffers(const CompletionCallback& cc) {
if (!has_interface<PPB_Graphics3D_Dev>())
return PP_ERROR_NOINTERFACE;
« no previous file with comments | « ppapi/cpp/dev/graphics_3d_dev.h ('k') | ppapi/shared_impl/graphics_3d_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698