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

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
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::Resize(int32_t width, int32_t height) {
+ if (!has_interface<PPB_Graphics3D_Dev>())
+ return PP_ERROR_NOINTERFACE;
+
+ return get_interface<PPB_Graphics3D_Dev>()->Resize(
+ pp_resource(), width, height);
+}
+
int32_t Graphics3D_Dev::SwapBuffers(const CompletionCallback& cc) {
if (!has_interface<PPB_Graphics3D_Dev>())
return PP_ERROR_NOINTERFACE;

Powered by Google App Engine
This is Rietveld 408576698