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

Unified Diff: third_party/WebKit/Source/modules/webaudio/IIRProcessor.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/IIRProcessor.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/IIRProcessor.cpp b/third_party/WebKit/Source/modules/webaudio/IIRProcessor.cpp
index 660dd4437a55c25c3b3143ad22ad626707938f02..e6ce38fa817d88144cc187147fca08ec70ac9451 100644
--- a/third_party/WebKit/Source/modules/webaudio/IIRProcessor.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/IIRProcessor.cpp
@@ -5,6 +5,8 @@
#include "modules/webaudio/IIRProcessor.h"
#include "modules/webaudio/IIRDSPKernel.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -46,7 +48,7 @@ IIRProcessor::IIRProcessor(float sampleRate, size_t numberOfChannels, const Vect
m_feedback[0] = 1;
}
- m_responseKernel = adoptPtr(new IIRDSPKernel(this));
+ m_responseKernel = wrapUnique(new IIRDSPKernel(this));
}
IIRProcessor::~IIRProcessor()
@@ -55,9 +57,9 @@ IIRProcessor::~IIRProcessor()
uninitialize();
}
-PassOwnPtr<AudioDSPKernel> IIRProcessor::createKernel()
+std::unique_ptr<AudioDSPKernel> IIRProcessor::createKernel()
{
- return adoptPtr(new IIRDSPKernel(this));
+ return wrapUnique(new IIRDSPKernel(this));
}
void IIRProcessor::process(const AudioBus* source, AudioBus* destination, size_t framesToProcess)

Powered by Google App Engine
This is Rietveld 408576698