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

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

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: add some layout tests 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/AudioBufferSourceNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp b/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp
index 226288bfe6bd6933253b96a1a5f9dc0818cfc615..4d9ede35485e43a7387e3b315afb216ced20a9be 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp
@@ -420,7 +420,7 @@ void AudioBufferSourceHandler::setBuffer(AudioBuffer* buffer,
m_destinationChannels = wrapArrayUnique(new float*[numberOfChannels]);
for (unsigned i = 0; i < numberOfChannels; ++i)
- m_sourceChannels[i] = buffer->getChannelData(i)->data();
+ m_sourceChannels[i] = buffer->getChannelData(i).view()->data();
// If this is a grain (as set by a previous call to start()), validate the
// grain parameters now since it wasn't validated when start was called

Powered by Google App Engine
This is Rietveld 408576698