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

Unified Diff: webkit/plugins/ppapi/ppb_graphics_3d_impl.cc

Issue 7409003: Binding Graphics3D with Instance and OpenGLES2 interface. (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 | « webkit/plugins/ppapi/ppb_context_3d_impl.cc ('k') | webkit/plugins/ppapi/ppb_opengles_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_graphics_3d_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_graphics_3d_impl.cc (revision 93075)
+++ webkit/plugins/ppapi/ppb_graphics_3d_impl.cc (working copy)
@@ -141,6 +141,12 @@
bool PPB_Graphics3D_Impl::BindToInstance(bool bind) {
bound_to_instance_ = bind;
+ if (bind && gles2_impl()) {
+ // Resize the backing texture to the size of the instance when it is bound.
+ // TODO(alokp): This should be the responsibility of plugins.
+ const gfx::Size& size = instance()->position().size();
+ gles2_impl()->ResizeCHROMIUM(size.width(), size.height());
+ }
return true;
}
« no previous file with comments | « webkit/plugins/ppapi/ppb_context_3d_impl.cc ('k') | webkit/plugins/ppapi/ppb_opengles_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698