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

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

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/platform/audio/DynamicsCompressor.cpp
diff --git a/third_party/WebKit/Source/platform/audio/DynamicsCompressor.cpp b/third_party/WebKit/Source/platform/audio/DynamicsCompressor.cpp
index 2658a871243bd81c546843fcc64112064b757144..163e21bfebe4277ae5a4f3829c1af27a7e8271c4 100644
--- a/third_party/WebKit/Source/platform/audio/DynamicsCompressor.cpp
+++ b/third_party/WebKit/Source/platform/audio/DynamicsCompressor.cpp
@@ -26,10 +26,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "platform/audio/DynamicsCompressor.h"
#include "platform/audio/AudioBus.h"
#include "platform/audio/AudioUtilities.h"
+#include "platform/audio/DynamicsCompressor.h"
#include "wtf/MathExtras.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -195,8 +196,8 @@ void DynamicsCompressor::reset()
void DynamicsCompressor::setNumberOfChannels(unsigned numberOfChannels)
{
- m_sourceChannels = adoptArrayPtr(new const float* [numberOfChannels]);
- m_destinationChannels = adoptArrayPtr(new float* [numberOfChannels]);
+ m_sourceChannels = wrapArrayUnique(new const float* [numberOfChannels]);
+ m_destinationChannels = wrapArrayUnique(new float* [numberOfChannels]);
m_compressor.setNumberOfChannels(numberOfChannels);
m_numberOfChannels = numberOfChannels;

Powered by Google App Engine
This is Rietveld 408576698