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

Unified Diff: third_party/WebKit/Source/platform/audio/MultiChannelResampler.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from Kent; merge. 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/platform/audio/MultiChannelResampler.cpp
diff --git a/third_party/WebKit/Source/platform/audio/MultiChannelResampler.cpp b/third_party/WebKit/Source/platform/audio/MultiChannelResampler.cpp
index e8b7168e6d813d0431f4e2774b068790544ff61c..af2e8a240fa56b8b4d81ebec2b141f1871c9ef0a 100644
--- a/third_party/WebKit/Source/platform/audio/MultiChannelResampler.cpp
+++ b/third_party/WebKit/Source/platform/audio/MultiChannelResampler.cpp
@@ -26,8 +26,9 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "platform/audio/MultiChannelResampler.h"
#include "platform/audio/AudioBus.h"
+#include "platform/audio/MultiChannelResampler.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -92,7 +93,7 @@ MultiChannelResampler::MultiChannelResampler(double scaleFactor, unsigned number
{
// Create each channel's resampler.
for (unsigned channelIndex = 0; channelIndex < numberOfChannels; ++channelIndex)
- m_kernels.append(adoptPtr(new SincResampler(scaleFactor)));
+ m_kernels.append(wrapUnique(new SincResampler(scaleFactor)));
}
void MultiChannelResampler::process(AudioSourceProvider* provider, AudioBus* destination, size_t framesToProcess)

Powered by Google App Engine
This is Rietveld 408576698