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

Unified Diff: third_party/WebKit/Source/modules/webaudio/PeriodicWave.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/modules/webaudio/PeriodicWave.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp
index fdd7ebd13aab3d323579c022f26a859ff6de8678..cbe3d437b6c15313156e4dd7d2acb873883de5ee 100644
--- a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp
@@ -26,17 +26,15 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "modules/webaudio/PeriodicWave.h"
#include "bindings/core/v8/ExceptionMessages.h"
#include "bindings/core/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
#include "modules/webaudio/AbstractAudioContext.h"
#include "modules/webaudio/OscillatorNode.h"
-#include "modules/webaudio/PeriodicWave.h"
#include "platform/audio/FFTFrame.h"
#include "platform/audio/VectorMath.h"
-#include "wtf/PtrUtil.h"
#include <algorithm>
-#include <memory>
namespace blink {
@@ -244,7 +242,7 @@ void PeriodicWave::createBandLimitedTables(const float* realData, const float* i
// Create the band-limited table.
unsigned waveSize = periodicWaveSize();
- std::unique_ptr<AudioFloatArray> table = wrapUnique(new AudioFloatArray(waveSize));
+ OwnPtr<AudioFloatArray> table = adoptPtr(new AudioFloatArray(waveSize));
adjustV8ExternalMemory(waveSize * sizeof(float));
m_bandLimitedTables.append(std::move(table));

Powered by Google App Engine
This is Rietveld 408576698