Index: third_party/WebKit/Source/platform/audio/FFTFrame.cpp |
diff --git a/third_party/WebKit/Source/platform/audio/FFTFrame.cpp b/third_party/WebKit/Source/platform/audio/FFTFrame.cpp |
index 9e167e8033b46b5380b3fcfd31f880eff3bdfbe3..9d70364c984c8a5d4584dace6977a16c2e85f34e 100644 |
--- a/third_party/WebKit/Source/platform/audio/FFTFrame.cpp |
+++ b/third_party/WebKit/Source/platform/audio/FFTFrame.cpp |
@@ -30,9 +30,8 @@ |
#include "platform/audio/VectorMath.h" |
#include "platform/Logging.h" |
#include "wtf/MathExtras.h" |
-#include "wtf/PtrUtil.h" |
+#include "wtf/OwnPtr.h" |
#include <complex> |
-#include <memory> |
#ifndef NDEBUG |
#include <stdio.h> |
@@ -50,9 +49,9 @@ void FFTFrame::doPaddedFFT(const float* data, size_t dataSize) |
doFFT(paddedResponse.data()); |
} |
-std::unique_ptr<FFTFrame> FFTFrame::createInterpolatedFrame(const FFTFrame& frame1, const FFTFrame& frame2, double x) |
+PassOwnPtr<FFTFrame> FFTFrame::createInterpolatedFrame(const FFTFrame& frame1, const FFTFrame& frame2, double x) |
{ |
- std::unique_ptr<FFTFrame> newFrame = wrapUnique(new FFTFrame(frame1.fftSize())); |
+ OwnPtr<FFTFrame> newFrame = adoptPtr(new FFTFrame(frame1.fftSize())); |
newFrame->interpolateFrequencyComponents(frame1, frame2, x); |