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

Unified Diff: third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.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/OfflineAudioDestinationNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp b/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp
index 954586c250ad2140ba27c668320c68c1c8fffa35..932a211bc0c9667066cdfbfbf29e29dba9df266c 100644
--- a/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp
@@ -200,7 +200,8 @@ void OfflineAudioDestinationHandler::doOfflineRendering() {
for (unsigned channelIndex = 0; channelIndex < numberOfChannels;
++channelIndex) {
const float* source = m_renderBus->channel(channelIndex)->data();
- float* destination = m_renderTarget->getChannelData(channelIndex)->data();
+ float* destination =
+ m_renderTarget->getChannelData(channelIndex).view()->data();
memcpy(destination + m_framesProcessed, source,
sizeof(float) * framesAvailableToCopy);
}

Powered by Google App Engine
This is Rietveld 408576698