summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/plugins/ppapi/ppb_graphics_3d_impl.cc')
-rw-r--r--webkit/plugins/ppapi/ppb_graphics_3d_impl.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc b/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc
index e38d66c..671a85f 100644
--- a/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc
+++ b/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc
@@ -141,12 +141,6 @@ PP_Graphics3DTrustedState PPB_Graphics3D_Impl::FlushSyncFast(
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;
}
@@ -203,7 +197,7 @@ bool PPB_Graphics3D_Impl::InitRaw(PP_Config3D_Dev config,
if (!platform_context_.get())
return false;
- if (!platform_context_->Init())
+ if (!platform_context_->Init(attrib_list))
return false;
platform_context_->SetContextLostCallback(