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 |