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

Unified Diff: third_party/WebKit/Source/modules/webaudio/IIRFilterNode.cpp

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/IIRFilterNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/IIRFilterNode.cpp b/third_party/WebKit/Source/modules/webaudio/IIRFilterNode.cpp
index 98d008e582f03d9d835c851984b98ca405357f91..bde304df7f59c90589c682379dea197ab348585f 100644
--- a/third_party/WebKit/Source/modules/webaudio/IIRFilterNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/IIRFilterNode.cpp
@@ -10,7 +10,6 @@
#include "modules/webaudio/AbstractAudioContext.h"
#include "modules/webaudio/AudioBasicProcessorHandler.h"
#include "platform/Histogram.h"
-#include "wtf/PtrUtil.h"
namespace blink {
@@ -19,7 +18,7 @@ IIRFilterNode::IIRFilterNode(AbstractAudioContext& context, const Vector<double>
{
setHandler(AudioBasicProcessorHandler::create(
AudioHandler::NodeTypeIIRFilter, *this, context.sampleRate(),
- wrapUnique(new IIRProcessor(context.sampleRate(), 1, feedforwardCoef, feedbackCoef))));
+ adoptPtr(new IIRProcessor(context.sampleRate(), 1, feedforwardCoef, feedbackCoef))));
// Histogram of the IIRFilter order. createIIRFilter ensures that the length of |feedbackCoef|
// is in the range [1, IIRFilter::kMaxOrder + 1]. The order is one less than the length of this

Powered by Google App Engine
This is Rietveld 408576698