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