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

Unified Diff: third_party/WebKit/Source/platform/audio/FFTFrame.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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: 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);
« no previous file with comments | « third_party/WebKit/Source/platform/audio/FFTFrame.h ('k') | third_party/WebKit/Source/platform/audio/HRTFDatabase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698