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

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

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 9 years, 4 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
Index: webkit/plugins/ppapi/ppb_video_layer_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_video_layer_impl.cc b/webkit/plugins/ppapi/ppb_video_layer_impl.cc
index 1782109933002455283c0300a2766695ec92852d..e7cad6fe2d7b5d8284f593ac045ead8864eea515 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() {

Powered by Google App Engine
This is Rietveld 408576698