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

Unified Diff: Source/modules/webaudio/AudioDestinationNode.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/AudioDestinationNode.h ('k') | Source/modules/webaudio/AudioNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioDestinationNode.cpp
diff --git a/Source/modules/webaudio/AudioDestinationNode.cpp b/Source/modules/webaudio/AudioDestinationNode.cpp
index b989c3386b153ffd381f307f8b55b5ff96fcbbc9..6c7984f371c0835db5ad86b1e6ea7787b77fb0b6 100644
--- a/Source/modules/webaudio/AudioDestinationNode.cpp
+++ b/Source/modules/webaudio/AudioDestinationNode.cpp
@@ -35,7 +35,7 @@
#include "modules/webaudio/AudioNodeOutput.h"
namespace WebCore {
-
+
AudioDestinationNode::AudioDestinationNode(AudioContext* context, float sampleRate)
: AudioNode(context, sampleRate)
, m_currentSampleFrame(0)
@@ -57,9 +57,9 @@ void AudioDestinationNode::render(AudioBus* sourceBus, AudioBus* destinationBus,
// since they can very seriously hurt performance.
// This will take care of all AudioNodes because they all process within this scope.
DenormalDisabler denormalDisabler;
-
+
context()->setAudioThread(currentThread());
-
+
if (!context()->isRunnable()) {
destinationBus->zero();
return;
@@ -75,7 +75,7 @@ void AudioDestinationNode::render(AudioBus* sourceBus, AudioBus* destinationBus,
// This will cause the node(s) connected to us to process, which in turn will pull on their input(s),
// all the way backwards through the rendering graph.
AudioBus* renderedBus = input(0)->pull(destinationBus, numberOfFrames);
-
+
if (!renderedBus)
destinationBus->zero();
else if (renderedBus != destinationBus) {
@@ -88,7 +88,7 @@ void AudioDestinationNode::render(AudioBus* sourceBus, AudioBus* destinationBus,
// Let the context take care of any business at the end of each render quantum.
context()->handlePostRenderTasks();
-
+
// Advance current sample-frame.
m_currentSampleFrame += numberOfFrames;
}
« no previous file with comments | « Source/modules/webaudio/AudioDestinationNode.h ('k') | Source/modules/webaudio/AudioNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698