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

Unified Diff: third_party/WebKit/Source/platform/audio/DynamicsCompressorKernel.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/DynamicsCompressorKernel.cpp
diff --git a/third_party/WebKit/Source/platform/audio/DynamicsCompressorKernel.cpp b/third_party/WebKit/Source/platform/audio/DynamicsCompressorKernel.cpp
index cdb82827b10bdc909be5bcb4577d7eaac90166ce..81fab59cd3ae35981e28b1aed9b22539b0f06e7b 100644
--- a/third_party/WebKit/Source/platform/audio/DynamicsCompressorKernel.cpp
+++ b/third_party/WebKit/Source/platform/audio/DynamicsCompressorKernel.cpp
@@ -26,11 +26,10 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "platform/audio/DynamicsCompressorKernel.h"
#include "platform/audio/AudioUtilities.h"
#include "platform/audio/DenormalDisabler.h"
-#include "platform/audio/DynamicsCompressorKernel.h"
#include "wtf/MathExtras.h"
-#include "wtf/PtrUtil.h"
#include <algorithm>
#include <cmath>
@@ -73,7 +72,7 @@ void DynamicsCompressorKernel::setNumberOfChannels(unsigned numberOfChannels)
m_preDelayBuffers.clear();
for (unsigned i = 0; i < numberOfChannels; ++i)
- m_preDelayBuffers.append(wrapUnique(new AudioFloatArray(MaxPreDelayFrames)));
+ m_preDelayBuffers.append(adoptPtr(new AudioFloatArray(MaxPreDelayFrames)));
}
void DynamicsCompressorKernel::setPreDelayTime(float preDelayTime)

Powered by Google App Engine
This is Rietveld 408576698