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

Unified Diff: media/cast/sender/video_sender.cc

Issue 1544313002: Convert Pass()→std::move() in //media (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « media/cast/sender/video_encoder_unittest.cc ('k') | media/cast/sender/video_sender_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/video_sender.cc
diff --git a/media/cast/sender/video_sender.cc b/media/cast/sender/video_sender.cc
index 0f1d556fb7c41c4c926a3557eec6fefef466f3ae..efe2a678f6eb33b4ed315c9895fde49ce5658578 100644
--- a/media/cast/sender/video_sender.cc
+++ b/media/cast/sender/video_sender.cc
@@ -5,10 +5,10 @@
#include "media/cast/sender/video_sender.h"
#include <stdint.h>
-
#include <algorithm>
#include <cmath>
#include <cstring>
+#include <utility>
#include "base/bind.h"
#include "base/logging.h"
@@ -70,8 +70,9 @@ void LogVideoCaptureTimestamps(CastEnvironment* cast_environment,
cast_environment->Clock()->NowTicks();
}
- cast_environment->logger()->DispatchFrameEvent(capture_begin_event.Pass());
- cast_environment->logger()->DispatchFrameEvent(capture_end_event.Pass());
+ cast_environment->logger()->DispatchFrameEvent(
+ std::move(capture_begin_event));
+ cast_environment->logger()->DispatchFrameEvent(std::move(capture_end_event));
}
} // namespace
@@ -385,7 +386,7 @@ void VideoSender::OnEncodedVideoFrame(
std::min(1.0, attenuated_utilization) : attenuated_utilization);
}
- SendEncodedFrame(encoder_bitrate, encoded_frame.Pass());
+ SendEncodedFrame(encoder_bitrate, std::move(encoded_frame));
}
} // namespace cast
« no previous file with comments | « media/cast/sender/video_encoder_unittest.cc ('k') | media/cast/sender/video_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698