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

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

Issue 2760323002: OfflineAudioContext: add missing suspendIfNeeded() call. (Closed)
Patch Set: always call suspendIfNeeded() for OfflineAudioContexts Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp b/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp
index 7e4aec0812b8c8d6a637ae450ca68b878326ed1e..9fc13d4146540484c9c71db53919e0a3c3093dbd 100644
--- a/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp
@@ -90,6 +90,7 @@ OfflineAudioContext* OfflineAudioContext::create(
OfflineAudioContext* audioContext = new OfflineAudioContext(
document, numberOfChannels, numberOfFrames, sampleRate, exceptionState);
+ audioContext->suspendIfNeeded();
if (!audioContext->destination()) {
exceptionState.throwDOMException(
@@ -123,7 +124,6 @@ OfflineAudioContext* OfflineAudioContext::create(
offlineContextLengthHistogram.count(numberOfFrames);
offlineContextSampleRateHistogram.count(sampleRate);
- audioContext->suspendIfNeeded();
return audioContext;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698