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

Unified Diff: media/base/audio_shifter.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/audio/sounds/audio_stream_handler.cc ('k') | media/base/audio_shifter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_shifter.cc
diff --git a/media/base/audio_shifter.cc b/media/base/audio_shifter.cc
index 11b7b6fab8f8764fe82796b29acded40e8782c9a..f5aee2c0e6b81c0e80af6e1a028a92743876ff5a 100644
--- a/media/base/audio_shifter.cc
+++ b/media/base/audio_shifter.cc
@@ -2,12 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "media/base/audio_shifter.h"
+
#include <algorithm>
#include <cmath>
+#include <utility>
#include "base/bind.h"
#include "media/base/audio_bus.h"
-#include "media/base/audio_shifter.h"
namespace media {
@@ -111,7 +113,7 @@ void AudioShifter::Push(scoped_ptr<AudioBus> input,
playout_time,
base::TimeDelta::FromSeconds(queue_.back().audio->frames()) / rate_);
}
- queue_.push_back(AudioQueueEntry(playout_time, input.Pass()));
+ queue_.push_back(AudioQueueEntry(playout_time, std::move(input)));
while (!queue_.empty() &&
queue_.back().target_playout_time -
queue_.front().target_playout_time > max_buffer_size_) {
« no previous file with comments | « media/audio/sounds/audio_stream_handler.cc ('k') | media/base/audio_shifter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698