Index: webkit/plugins/ppapi/ppb_graphics_3d_impl.cc |
diff --git a/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc b/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc |
index 766be45f7502db008aedbac1f58d8248f429be1c..470fbf51e648d1670a2619056f5e95d3217f4e51 100644 |
--- a/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc |
+++ b/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc |
@@ -66,10 +66,8 @@ PP_Resource PPB_Graphics3D_Impl::Create(PluginInstance* instance, |
const int32_t* attrib_list) { |
scoped_refptr<PPB_Graphics3D_Impl> graphics_3d( |
new PPB_Graphics3D_Impl(instance)); |
- |
if (!graphics_3d->Init(share_context, attrib_list)) |
return 0; |
- |
return graphics_3d->GetReference(); |
} |
@@ -78,10 +76,8 @@ PP_Resource PPB_Graphics3D_Impl::CreateRaw(PluginInstance* instance, |
const int32_t* attrib_list) { |
scoped_refptr<PPB_Graphics3D_Impl> graphics_3d( |
new PPB_Graphics3D_Impl(instance)); |
- |
if (!graphics_3d->InitRaw(share_context, attrib_list)) |
return 0; |
- |
return graphics_3d->GetReference(); |
} |