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

Unified Diff: Source/modules/webaudio/AudioNodeOutput.cpp

Issue 20300002: Fix trailing whitespace in .cpp, .h, and .idl files (ex. Source/core) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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/AudioNodeOutput.h ('k') | Source/modules/webaudio/AudioParam.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioNodeOutput.cpp
diff --git a/Source/modules/webaudio/AudioNodeOutput.cpp b/Source/modules/webaudio/AudioNodeOutput.cpp
index 1eb96782ef1abf069da6f3f1a169f9fa1b7f3f4d..01625dd28fae9aa2a383d5b4b11444121eca144c 100644
--- a/Source/modules/webaudio/AudioNodeOutput.cpp
+++ b/Source/modules/webaudio/AudioNodeOutput.cpp
@@ -95,7 +95,7 @@ void AudioNodeOutput::updateNumberOfChannels()
void AudioNodeOutput::propagateChannelCount()
{
ASSERT(context()->isAudioThread() && context()->isGraphOwner());
-
+
if (isChannelCountKnown()) {
// Announce to any nodes we're connected to that we changed our channel count for its input.
for (InputsIterator i = m_inputs.begin(); i != m_inputs.end(); ++i) {
@@ -110,13 +110,13 @@ AudioBus* AudioNodeOutput::pull(AudioBus* inPlaceBus, size_t framesToProcess)
{
ASSERT(context()->isAudioThread());
ASSERT(m_renderingFanOutCount > 0 || m_renderingParamFanOutCount > 0);
-
+
// Causes our AudioNode to process if it hasn't already for this render quantum.
// We try to do in-place processing (using inPlaceBus) if at all possible,
// but we can't process in-place if we're connected to more than one input (fan-out > 1).
// In this case pull() is called multiple times per rendering quantum, and the processIfNecessary() call below will
- // cause our node to process() only the first time, caching the output in m_internalOutputBus for subsequent calls.
-
+ // cause our node to process() only the first time, caching the output in m_internalOutputBus for subsequent calls.
+
m_isInPlace = inPlaceBus && inPlaceBus->numberOfChannels() == numberOfChannels() && (m_renderingFanOutCount + m_renderingParamFanOutCount) == 1;
m_inPlaceBus = m_isInPlace ? inPlaceBus : 0;
@@ -178,7 +178,7 @@ void AudioNodeOutput::removeInput(AudioNodeInput* input)
void AudioNodeOutput::disconnectAllInputs()
{
ASSERT(context()->isGraphOwner());
-
+
// AudioNodeInput::disconnect() changes m_inputs by calling removeInput().
while (!m_inputs.isEmpty()) {
AudioNodeInput* input = *m_inputs.begin();
« no previous file with comments | « Source/modules/webaudio/AudioNodeOutput.h ('k') | Source/modules/webaudio/AudioParam.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698