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

Unified Diff: Source/platform/audio/ReverbConvolver.cpp

Issue 1214463003: Split "Online" and "Offline" AudioContext processing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Bring to ToT Created 5 years, 5 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 | « Source/modules/webaudio/WaveShaperNode.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/audio/ReverbConvolver.cpp
diff --git a/Source/platform/audio/ReverbConvolver.cpp b/Source/platform/audio/ReverbConvolver.cpp
index 0f05ecc3496238a988172a8de3c60fd194772863..5acae6aa96ca322c8bd71cd967ecf134b91e3da4 100644
--- a/Source/platform/audio/ReverbConvolver.cpp
+++ b/Source/platform/audio/ReverbConvolver.cpp
@@ -70,10 +70,6 @@ ReverbConvolver::ReverbConvolver(AudioChannel* impulseResponse, size_t renderSli
// processing slices. This way we amortize the cost over more processing slices.
m_maxRealtimeFFTSize = MaxRealtimeFFTSize;
- // For the moment, a good way to know if we have real-time constraint is to check if we're using background threads.
- // Otherwise, assume we're being run from a command-line tool.
- bool hasRealtimeConstraint = useBackgroundThreads;
-
const float* response = impulseResponse->data();
size_t totalResponseLength = impulseResponse->length();
@@ -114,7 +110,7 @@ ReverbConvolver::ReverbConvolver(AudioChannel* impulseResponse, size_t renderSli
fftSize *= 2;
}
- if (hasRealtimeConstraint && !isBackgroundStage && fftSize > m_maxRealtimeFFTSize)
+ if (useBackgroundThreads && !isBackgroundStage && fftSize > m_maxRealtimeFFTSize)
fftSize = m_maxRealtimeFFTSize;
if (fftSize > m_maxFFTSize)
fftSize = m_maxFFTSize;
« no previous file with comments | « Source/modules/webaudio/WaveShaperNode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698