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

Unified Diff: remoting/codec/video_decoder_vpx.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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
« no previous file with comments | « remoting/codec/video_decoder_vpx.h ('k') | remoting/codec/video_decoder_vpx_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/video_decoder_vpx.cc
diff --git a/remoting/codec/video_decoder_vpx.cc b/remoting/codec/video_decoder_vpx.cc
index b0761289dde8e6c0c89a71b1623b73b0f3394627..e3db190b3a8dd4b528f41db282c85fe6ea9312a7 100644
--- a/remoting/codec/video_decoder_vpx.cc
+++ b/remoting/codec/video_decoder_vpx.cc
@@ -8,6 +8,7 @@
#include <stdint.h>
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "remoting/base/util.h"
#include "remoting/proto/video.pb.h"
#include "third_party/libyuv/include/libyuv/convert_argb.h"
@@ -68,13 +69,13 @@ void RenderRect(vpx_image_t* image,
} // namespace
// static
-scoped_ptr<VideoDecoderVpx> VideoDecoderVpx::CreateForVP8() {
- return make_scoped_ptr(new VideoDecoderVpx(vpx_codec_vp8_dx()));
+std::unique_ptr<VideoDecoderVpx> VideoDecoderVpx::CreateForVP8() {
+ return base::WrapUnique(new VideoDecoderVpx(vpx_codec_vp8_dx()));
}
// static
-scoped_ptr<VideoDecoderVpx> VideoDecoderVpx::CreateForVP9() {
- return make_scoped_ptr(new VideoDecoderVpx(vpx_codec_vp9_dx()));
+std::unique_ptr<VideoDecoderVpx> VideoDecoderVpx::CreateForVP9() {
+ return base::WrapUnique(new VideoDecoderVpx(vpx_codec_vp9_dx()));
}
VideoDecoderVpx::~VideoDecoderVpx() {}
« no previous file with comments | « remoting/codec/video_decoder_vpx.h ('k') | remoting/codec/video_decoder_vpx_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698