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

Unified Diff: third_party/WebKit/Source/modules/webaudio/WaveShaperDSPKernel.h

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/WaveShaperDSPKernel.h
diff --git a/third_party/WebKit/Source/modules/webaudio/WaveShaperDSPKernel.h b/third_party/WebKit/Source/modules/webaudio/WaveShaperDSPKernel.h
index 7d8c2dd3001068afbdad84c6045a455ec2da768e..67d143a20d511413fdf490803d24a4bd0fb28a80 100644
--- a/third_party/WebKit/Source/modules/webaudio/WaveShaperDSPKernel.h
+++ b/third_party/WebKit/Source/modules/webaudio/WaveShaperDSPKernel.h
@@ -30,7 +30,7 @@
#include "platform/audio/AudioDSPKernel.h"
#include "platform/audio/DownSampler.h"
#include "platform/audio/UpSampler.h"
-#include "wtf/OwnPtr.h"
+#include <memory>
namespace blink {
@@ -62,12 +62,12 @@ protected:
WaveShaperProcessor* getWaveShaperProcessor() { return static_cast<WaveShaperProcessor*>(processor()); }
// Oversampling.
- OwnPtr<AudioFloatArray> m_tempBuffer;
- OwnPtr<AudioFloatArray> m_tempBuffer2;
- OwnPtr<UpSampler> m_upSampler;
- OwnPtr<DownSampler> m_downSampler;
- OwnPtr<UpSampler> m_upSampler2;
- OwnPtr<DownSampler> m_downSampler2;
+ std::unique_ptr<AudioFloatArray> m_tempBuffer;
+ std::unique_ptr<AudioFloatArray> m_tempBuffer2;
+ std::unique_ptr<UpSampler> m_upSampler;
+ std::unique_ptr<DownSampler> m_downSampler;
+ std::unique_ptr<UpSampler> m_upSampler2;
+ std::unique_ptr<DownSampler> m_downSampler2;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698