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

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

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/IIRFilterNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/IIRFilterNode.cpp b/third_party/WebKit/Source/modules/webaudio/IIRFilterNode.cpp
index bde304df7f59c90589c682379dea197ab348585f..98d008e582f03d9d835c851984b98ca405357f91 100644
--- a/third_party/WebKit/Source/modules/webaudio/IIRFilterNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/IIRFilterNode.cpp
@@ -10,6 +10,7 @@
#include "modules/webaudio/AbstractAudioContext.h"
#include "modules/webaudio/AudioBasicProcessorHandler.h"
#include "platform/Histogram.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -18,7 +19,7 @@ IIRFilterNode::IIRFilterNode(AbstractAudioContext& context, const Vector<double>
{
setHandler(AudioBasicProcessorHandler::create(
AudioHandler::NodeTypeIIRFilter, *this, context.sampleRate(),
- adoptPtr(new IIRProcessor(context.sampleRate(), 1, feedforwardCoef, feedbackCoef))));
+ wrapUnique(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