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

Unified Diff: third_party/WebKit/Source/modules/webaudio/IIRProcessor.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/modules/webaudio/IIRProcessor.h
diff --git a/third_party/WebKit/Source/modules/webaudio/IIRProcessor.h b/third_party/WebKit/Source/modules/webaudio/IIRProcessor.h
index e6866c0b2ceaa2305052782cc1370f9c77001783..11b39be6781c526cc86f5c726b026591b2dbae0d 100644
--- a/third_party/WebKit/Source/modules/webaudio/IIRProcessor.h
+++ b/third_party/WebKit/Source/modules/webaudio/IIRProcessor.h
@@ -9,6 +9,7 @@
#include "platform/audio/AudioDSPKernel.h"
#include "platform/audio/AudioDSPKernelProcessor.h"
#include "platform/audio/IIRFilter.h"
+#include <memory>
namespace blink {
@@ -20,7 +21,7 @@ public:
const Vector<double>& feedforwardCoef, const Vector<double>& feedbackCoef);
~IIRProcessor() override;
- PassOwnPtr<AudioDSPKernel> createKernel() override;
+ std::unique_ptr<AudioDSPKernel> createKernel() override;
void process(const AudioBus* source, AudioBus* destination, size_t framesToProcess) override;
@@ -36,7 +37,7 @@ private:
AudioDoubleArray m_feedback;
AudioDoubleArray m_feedforward;
// This holds the IIR kernel for computing the frequency response.
- OwnPtr<IIRDSPKernel> m_responseKernel;
+ std::unique_ptr<IIRDSPKernel> m_responseKernel;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698