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

Unified Diff: remoting/protocol/webrtc_video_capturer_adapter.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
Index: remoting/protocol/webrtc_video_capturer_adapter.cc
diff --git a/remoting/protocol/webrtc_video_capturer_adapter.cc b/remoting/protocol/webrtc_video_capturer_adapter.cc
index 3013bc9545ac2fe42f37711bcb2d29889050c318..0d5dec09e866e863f588238d5cfb1e701d460459 100644
--- a/remoting/protocol/webrtc_video_capturer_adapter.cc
+++ b/remoting/protocol/webrtc_video_capturer_adapter.cc
@@ -18,7 +18,7 @@ namespace protocol {
const int kFramesPerSec = 30;
WebrtcVideoCapturerAdapter::WebrtcVideoCapturerAdapter(
- scoped_ptr<webrtc::DesktopCapturer> capturer)
+ std::unique_ptr<webrtc::DesktopCapturer> capturer)
: desktop_capturer_(std::move(capturer)), weak_factory_(this) {
DCHECK(desktop_capturer_);
@@ -157,7 +157,7 @@ void WebrtcVideoCapturerAdapter::OnCaptureCompleted(
if (!frame)
return;
- scoped_ptr<webrtc::DesktopFrame> owned_frame(frame);
+ std::unique_ptr<webrtc::DesktopFrame> owned_frame(frame);
// TODO(sergeyu): Currently the adapter keeps generating frames even when
// nothing is changing on the screen. This is necessary because the video
« no previous file with comments | « remoting/protocol/webrtc_video_capturer_adapter.h ('k') | remoting/protocol/webrtc_video_renderer_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698