Index: third_party/WebKit/Source/platform/audio/Reverb.cpp |
diff --git a/third_party/WebKit/Source/platform/audio/Reverb.cpp b/third_party/WebKit/Source/platform/audio/Reverb.cpp |
index 5f4babda0b13ac2f23200de24ad8798383e85dfe..dc7e9eaa302a143533663d7dcb216619879e36f0 100644 |
--- a/third_party/WebKit/Source/platform/audio/Reverb.cpp |
+++ b/third_party/WebKit/Source/platform/audio/Reverb.cpp |
@@ -26,13 +26,13 @@ |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#include "platform/audio/AudioBus.h" |
#include "platform/audio/Reverb.h" |
+#include <math.h> |
+#include "platform/audio/AudioBus.h" |
#include "platform/audio/VectorMath.h" |
#include "wtf/MathExtras.h" |
-#include "wtf/PtrUtil.h" |
-#include <math.h> |
-#include <memory> |
+#include "wtf/OwnPtr.h" |
+#include "wtf/PassOwnPtr.h" |
#if OS(MACOSX) |
using namespace std; |
@@ -116,7 +116,7 @@ void Reverb::initialize(AudioBus* impulseResponseBuffer, size_t renderSliceSize, |
for (size_t i = 0; i < numResponseChannels; ++i) { |
AudioChannel* channel = impulseResponseBuffer->channel(i); |
- std::unique_ptr<ReverbConvolver> convolver = wrapUnique(new ReverbConvolver(channel, renderSliceSize, maxFFTSize, convolverRenderPhase, useBackgroundThreads)); |
+ OwnPtr<ReverbConvolver> convolver = adoptPtr(new ReverbConvolver(channel, renderSliceSize, maxFFTSize, convolverRenderPhase, useBackgroundThreads)); |
m_convolvers.append(std::move(convolver)); |
convolverRenderPhase += renderSliceSize; |