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

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

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

Powered by Google App Engine
This is Rietveld 408576698