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

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

Powered by Google App Engine
This is Rietveld 408576698