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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/ReverbConvolverStage.h
diff --git a/third_party/WebKit/Source/platform/audio/ReverbConvolverStage.h b/third_party/WebKit/Source/platform/audio/ReverbConvolverStage.h
index e1b99d3eefe0da4aa13638fe1960ff7773ae28d4..8b4983af8909acbee9ce850f63c3a7196fbd00a9 100644
--- a/third_party/WebKit/Source/platform/audio/ReverbConvolverStage.h
+++ b/third_party/WebKit/Source/platform/audio/ReverbConvolverStage.h
@@ -33,7 +33,7 @@
#include "platform/audio/FFTFrame.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
-#include <memory>
+#include "wtf/OwnPtr.h"
namespace blink {
@@ -63,8 +63,8 @@ public:
int inputReadIndex() const { return m_inputReadIndex; }
private:
- std::unique_ptr<FFTFrame> m_fftKernel;
- std::unique_ptr<FFTConvolver> m_fftConvolver;
+ OwnPtr<FFTFrame> m_fftKernel;
+ OwnPtr<FFTConvolver> m_fftConvolver;
AudioFloatArray m_preDelayBuffer;
@@ -80,8 +80,8 @@ private:
AudioFloatArray m_temporaryBuffer;
bool m_directMode;
- std::unique_ptr<AudioFloatArray> m_directKernel;
- std::unique_ptr<DirectConvolver> m_directConvolver;
+ OwnPtr<AudioFloatArray> m_directKernel;
+ OwnPtr<DirectConvolver> m_directConvolver;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698