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 671a85fcb73ca54d2e781d5aefe65a57e81bbd09..c97b0d5b0566c10596cff99ca6628d981232b030 100644 |
--- a/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc |
+++ b/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc |
@@ -67,10 +67,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(config, share_context, attrib_list)) |
return 0; |
- |
return graphics_3d->GetReference(); |
} |
@@ -80,10 +78,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(config, share_context, attrib_list)) |
return 0; |
- |
return graphics_3d->GetReference(); |
} |