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

Unified Diff: third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp

Issue 2812833003: Revert of [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: Created 3 years, 8 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 8e9af22d2e963142699540e8ecd9c0d68c2b9e10..c33bd1de857f47a8cede03d49c0482f9c6601706 100644
--- a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp
@@ -83,15 +83,14 @@
}
PeriodicWave* PeriodicWave::Create(BaseAudioContext& context,
- NotShared<DOMFloat32Array> real,
- NotShared<DOMFloat32Array> imag,
+ DOMFloat32Array* real,
+ DOMFloat32Array* imag,
bool disable_normalization,
ExceptionState& exception_state) {
DCHECK(IsMainThread());
- return Create(context, real.View()->length(), real.View()->Data(),
- imag.View()->length(), imag.View()->Data(),
- disable_normalization, exception_state);
+ return Create(context, real->length(), real->Data(), imag->length(),
+ imag->Data(), disable_normalization, exception_state);
}
PeriodicWave* PeriodicWave::Create(BaseAudioContext* context,

Powered by Google App Engine
This is Rietveld 408576698