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

Unified Diff: ppapi/shared_impl/graphics_3d_impl.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/shared_impl/graphics_3d_impl.h ('k') | ppapi/thunk/ppb_graphics_3d_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/graphics_3d_impl.cc
===================================================================
--- ppapi/shared_impl/graphics_3d_impl.cc (revision 94518)
+++ ppapi/shared_impl/graphics_3d_impl.cc (working copy)
@@ -33,6 +33,15 @@
return PP_ERROR_FAILED;
}
+int32_t Graphics3DImpl::ResizeBuffers(int32_t width, int32_t height) {
+ if ((width < 0) || (height < 0))
+ return PP_ERROR_BADARGUMENT;
+
+ gles2_impl()->ResizeCHROMIUM(width, height);
+ // TODO(alokp): Check if resize succeeded and return appropriate error code.
+ return PP_OK;
+}
+
int32_t Graphics3DImpl::SwapBuffers(PP_CompletionCallback callback) {
if (!callback.func) {
// Blocking SwapBuffers isn't supported (since we have to be on the main
« no previous file with comments | « ppapi/shared_impl/graphics_3d_impl.h ('k') | ppapi/thunk/ppb_graphics_3d_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698