Index: third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp |
diff --git a/third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp b/third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp |
index dee1806a710d7743408f6155b144d9ff41bae2bd..3413e7a9225fd12eb9dd063ae824f89ca55444bc 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp |
@@ -22,15 +22,13 @@ |
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+#include "modules/webaudio/ConvolverNode.h" |
#include "bindings/core/v8/ExceptionState.h" |
#include "core/dom/ExceptionCode.h" |
#include "modules/webaudio/AudioBuffer.h" |
#include "modules/webaudio/AudioNodeInput.h" |
#include "modules/webaudio/AudioNodeOutput.h" |
-#include "modules/webaudio/ConvolverNode.h" |
#include "platform/audio/Reverb.h" |
-#include "wtf/PtrUtil.h" |
-#include <memory> |
// Note about empirical tuning: |
// The maximum FFT size affects reverb performance and accuracy. |
@@ -129,7 +127,7 @@ void ConvolverHandler::setBuffer(AudioBuffer* buffer, ExceptionState& exceptionS |
bufferBus->setSampleRate(buffer->sampleRate()); |
// Create the reverb with the given impulse response. |
- std::unique_ptr<Reverb> reverb = wrapUnique(new Reverb(bufferBus.get(), ProcessingSizeInFrames, MaxFFTSize, 2, context() && context()->hasRealtimeConstraint(), m_normalize)); |
+ OwnPtr<Reverb> reverb = adoptPtr(new Reverb(bufferBus.get(), ProcessingSizeInFrames, MaxFFTSize, 2, context() && context()->hasRealtimeConstraint(), m_normalize)); |
{ |
// Synchronize with process(). |