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

Unified Diff: media/base/audio_shifter.h

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-media-base: android 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
« no previous file with comments | « media/base/audio_renderer_mixer_unittest.cc ('k') | media/base/audio_shifter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_shifter.h
diff --git a/media/base/audio_shifter.h b/media/base/audio_shifter.h
index 3429a2f197d0180e0f1ea416b3d1368bb302a4f4..c702e27194a0b350c52ebb7ba9b990ac5cd043f8 100644
--- a/media/base/audio_shifter.h
+++ b/media/base/audio_shifter.h
@@ -8,9 +8,9 @@
#include <stddef.h>
#include <deque>
+#include <memory>
#include "base/memory/linked_ptr.h"
-#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "media/base/media_export.h"
#include "media/base/multi_channel_resampler.h"
@@ -74,7 +74,7 @@ class MEDIA_EXPORT AudioShifter {
// the samples will be buffered until the approperiate time. If
// playout_time is in the past, everything will still work, and we'll
// try to keep the buffring to a minimum.
- void Push(scoped_ptr<AudioBus> input, base::TimeTicks playout_time);
+ void Push(std::unique_ptr<AudioBus> input, base::TimeTicks playout_time);
// Fills out |output| with samples. Tries to stretch/shrink the audio
// to compensate for drift between input and output.
@@ -88,7 +88,7 @@ private:
struct AudioQueueEntry {
AudioQueueEntry(base::TimeTicks target_playout_time_,
- scoped_ptr<AudioBus> audio_);
+ std::unique_ptr<AudioBus> audio_);
AudioQueueEntry(const AudioQueueEntry& other);
~AudioQueueEntry();
base::TimeTicks target_playout_time;
@@ -106,8 +106,8 @@ private:
// The clock smoothers are used to smooth out timestamps
// and adjust for drift and inaccurate clocks.
- scoped_ptr<ClockSmoother> input_clock_smoother_;
- scoped_ptr<ClockSmoother> output_clock_smoother_;
+ std::unique_ptr<ClockSmoother> input_clock_smoother_;
+ std::unique_ptr<ClockSmoother> output_clock_smoother_;
// Are we currently outputting data?
bool running_;
« no previous file with comments | « media/base/audio_renderer_mixer_unittest.cc ('k') | media/base/audio_shifter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698