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

Unified Diff: media/cast/sender/audio_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/audio_encoder_unittest.cc ('k') | media/cast/sender/audio_sender_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/audio_sender.cc
diff --git a/media/cast/sender/audio_sender.cc b/media/cast/sender/audio_sender.cc
index be2fc39e9dd7d159a72b4c3696514076247aebf9..9af7791d5af592238a8bbf4a6c9411ab3edbdc5e 100644
--- a/media/cast/sender/audio_sender.cc
+++ b/media/cast/sender/audio_sender.cc
@@ -4,6 +4,8 @@
#include "media/cast/sender/audio_sender.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
@@ -90,7 +92,7 @@ void AudioSender::InsertAudio(scoped_ptr<AudioBus> audio_bus,
samples_in_encoder_ += audio_bus->frames();
- audio_encoder_->InsertAudio(audio_bus.Pass(), recorded_time);
+ audio_encoder_->InsertAudio(std::move(audio_bus), recorded_time);
}
int AudioSender::GetNumberOfFramesInEncoder() const {
@@ -114,7 +116,7 @@ void AudioSender::OnEncodedAudioFrame(
samples_in_encoder_ -= audio_encoder_->GetSamplesPerFrame() + samples_skipped;
DCHECK_GE(samples_in_encoder_, 0);
- SendEncodedFrame(encoder_bitrate, encoded_frame.Pass());
+ SendEncodedFrame(encoder_bitrate, std::move(encoded_frame));
}
} // namespace cast
« no previous file with comments | « media/cast/sender/audio_encoder_unittest.cc ('k') | media/cast/sender/audio_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698