summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppb_video_layer_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/plugins/ppapi/ppb_video_layer_impl.cc')
-rw-r--r--webkit/plugins/ppapi/ppb_video_layer_impl.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/webkit/plugins/ppapi/ppb_video_layer_impl.cc b/webkit/plugins/ppapi/ppb_video_layer_impl.cc
index 1782109..e7cad6f 100644
--- a/webkit/plugins/ppapi/ppb_video_layer_impl.cc
+++ b/webkit/plugins/ppapi/ppb_video_layer_impl.cc
@@ -25,10 +25,7 @@ PP_Resource PPB_VideoLayer_Impl::Create(PluginInstance* instance,
PP_VideoLayerMode_Dev mode) {
if (mode != PP_VIDEOLAYERMODE_SOFTWARE)
return 0;
-
- scoped_refptr<PPB_VideoLayer_Impl> layer(
- new PPB_VideoLayer_Software(instance));
- return layer->GetReference();
+ return (new PPB_VideoLayer_Software(instance))->GetReference();
}
PPB_VideoLayer_API* PPB_VideoLayer_Impl::AsPPB_VideoLayer_API() {