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

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

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: Created 3 years, 10 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/BaseAudioContext.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
index d34708fca6f560a67e6822d45ff8eecc16cf8a20..b808abc46b75c2a671e13b264051497e996928bb 100644
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
@@ -503,8 +503,8 @@ OscillatorNode* BaseAudioContext::createOscillator(
}
PeriodicWave* BaseAudioContext::createPeriodicWave(
- DOMFloat32Array* real,
- DOMFloat32Array* imag,
+ const MaybeShared<DOMFloat32Array>& real,
+ const MaybeShared<DOMFloat32Array>& imag,
ExceptionState& exceptionState) {
DCHECK(isMainThread());
@@ -512,8 +512,8 @@ PeriodicWave* BaseAudioContext::createPeriodicWave(
}
PeriodicWave* BaseAudioContext::createPeriodicWave(
- DOMFloat32Array* real,
- DOMFloat32Array* imag,
+ const MaybeShared<DOMFloat32Array>& real,
+ const MaybeShared<DOMFloat32Array>& imag,
const PeriodicWaveConstraints& options,
ExceptionState& exceptionState) {
DCHECK(isMainThread());

Powered by Google App Engine
This is Rietveld 408576698