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

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

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: remove unused checks 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 4a9e8db73300490a2b3c6b7a2de366ddb321e9fc..66fd10cdefbc4e34db678d9d7f9ace5a05d1742c 100644
--- a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp
@@ -82,14 +82,15 @@ PeriodicWave* PeriodicWave::create(BaseAudioContext& context,
}
PeriodicWave* PeriodicWave::create(BaseAudioContext& context,
- DOMFloat32Array* real,
- DOMFloat32Array* imag,
+ const NotShared<DOMFloat32Array>& real,
+ const NotShared<DOMFloat32Array>& imag,
bool disableNormalization,
ExceptionState& exceptionState) {
DCHECK(isMainThread());
- return create(context, real->length(), real->data(), imag->length(),
- imag->data(), disableNormalization, exceptionState);
+ return create(context, real.view()->length(), real.view()->data(),
+ imag.view()->length(), imag.view()->data(),
+ disableNormalization, exceptionState);
}
PeriodicWave* PeriodicWave::create(BaseAudioContext* context,

Powered by Google App Engine
This is Rietveld 408576698