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

Unified Diff: webrtc/common_audio/resampler/sinc_resampler.h

Issue 1712513002: Replace scoped_ptr with unique_ptr in webrtc/common_audio/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 10 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: webrtc/common_audio/resampler/sinc_resampler.h
diff --git a/webrtc/common_audio/resampler/sinc_resampler.h b/webrtc/common_audio/resampler/sinc_resampler.h
index 0980e2d75613c577d3102c9ddd950abefb94dda1..d8ea6df72f7227431bf112fb4621f881f7b11330 100644
--- a/webrtc/common_audio/resampler/sinc_resampler.h
+++ b/webrtc/common_audio/resampler/sinc_resampler.h
@@ -14,9 +14,10 @@
#ifndef WEBRTC_COMMON_AUDIO_RESAMPLER_SINC_RESAMPLER_H_
#define WEBRTC_COMMON_AUDIO_RESAMPLER_SINC_RESAMPLER_H_
+#include <memory>
+
#include "webrtc/base/constructormagic.h"
#include "webrtc/base/gtest_prod_util.h"
-#include "webrtc/base/scoped_ptr.h"
#include "webrtc/system_wrappers/include/aligned_malloc.h"
#include "webrtc/typedefs.h"
@@ -137,12 +138,12 @@ class SincResampler {
// Contains kKernelOffsetCount kernels back-to-back, each of size kKernelSize.
// The kernel offsets are sub-sample shifts of a windowed sinc shifted from
// 0.0 to 1.0 sample.
- rtc::scoped_ptr<float[], AlignedFreeDeleter> kernel_storage_;
- rtc::scoped_ptr<float[], AlignedFreeDeleter> kernel_pre_sinc_storage_;
- rtc::scoped_ptr<float[], AlignedFreeDeleter> kernel_window_storage_;
+ std::unique_ptr<float[], AlignedFreeDeleter> kernel_storage_;
+ std::unique_ptr<float[], AlignedFreeDeleter> kernel_pre_sinc_storage_;
+ std::unique_ptr<float[], AlignedFreeDeleter> kernel_window_storage_;
// Data from the source is copied into this buffer for each processing pass.
- rtc::scoped_ptr<float[], AlignedFreeDeleter> input_buffer_;
+ std::unique_ptr<float[], AlignedFreeDeleter> input_buffer_;
// Stores the runtime selection of which Convolve function to use.
// TODO(ajm): Move to using a global static which must only be initialized

Powered by Google App Engine
This is Rietveld 408576698