Index: webrtc/api/androidvideocapturer.cc |
diff --git a/webrtc/api/androidvideocapturer.cc b/webrtc/api/androidvideocapturer.cc |
index e98a4be573d8e020fd58546d3898aeba8616814f..ee5ef665d97c37247929f170def89192679220d7 100644 |
--- a/webrtc/api/androidvideocapturer.cc |
+++ b/webrtc/api/androidvideocapturer.cc |
@@ -10,6 +10,8 @@ |
#include "webrtc/api/androidvideocapturer.h" |
+#include <memory> |
+ |
#include "webrtc/api/java/jni/native_handle_impl.h" |
#include "webrtc/base/common.h" |
#include "webrtc/base/timeutils.h" |
@@ -70,11 +72,11 @@ class AndroidVideoCapturer::FrameFactory : public cricket::VideoFrameFactory { |
RTC_CHECK(captured_frame == &captured_frame_); |
RTC_CHECK(buffer_->native_handle() == nullptr); |
- rtc::scoped_ptr<cricket::VideoFrame> frame(new cricket::WebRtcVideoFrame( |
+ std::unique_ptr<cricket::VideoFrame> frame(new cricket::WebRtcVideoFrame( |
ShallowCenterCrop(buffer_, dst_width, dst_height), |
captured_frame->time_stamp, captured_frame->rotation)); |
// Caller takes ownership. |
- // TODO(magjed): Change CreateAliasedFrame() to return a rtc::scoped_ptr. |
+ // TODO(magjed): Change CreateAliasedFrame() to return a std::unique_ptr. |
return apply_rotation_ ? frame->GetCopyWithRotationApplied()->Copy() |
: frame.release(); |
} |