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

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

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.h
diff --git a/third_party/WebKit/Source/platform/audio/FFTFrame.h b/third_party/WebKit/Source/platform/audio/FFTFrame.h
index 2450084eb9fb641c72d9f03b9a4e96dc18e525c7..fccda3b423f022ef970350487c6769d21001612d 100644
--- a/third_party/WebKit/Source/platform/audio/FFTFrame.h
+++ b/third_party/WebKit/Source/platform/audio/FFTFrame.h
@@ -33,8 +33,8 @@
#include "platform/audio/AudioArray.h"
#include "wtf/Allocator.h"
#include "wtf/Forward.h"
-#include "wtf/PassOwnPtr.h"
#include "wtf/Threading.h"
+#include <memory>
#if OS(MACOSX)
#include <Accelerate/Accelerate.h>
@@ -74,7 +74,7 @@ public:
// The remaining public methods have cross-platform implementations:
// Interpolates from frame1 -> frame2 as x goes from 0.0 -> 1.0
- static PassOwnPtr<FFTFrame> createInterpolatedFrame(const FFTFrame& frame1, const FFTFrame& frame2, double x);
+ static std::unique_ptr<FFTFrame> createInterpolatedFrame(const FFTFrame& frame1, const FFTFrame& frame2, double x);
void doPaddedFFT(const float* data, size_t dataSize); // zero-padding with dataSize <= fftSize
double extractAverageGroupDelay();
void addConstantGroupDelay(double sampleFrameDelay);

Powered by Google App Engine
This is Rietveld 408576698