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

Unified Diff: Source/modules/webaudio/AudioNode.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.cpp ('k') | Source/modules/webaudio/AudioNodeInput.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioNode.cpp
diff --git a/Source/modules/webaudio/AudioNode.cpp b/Source/modules/webaudio/AudioNode.cpp
index c1cd449c2e6f3d057fbdca01ebfd65cba4db0f8d..cc88387fe4acf00ef093f073ceaa65e3767775b3 100644
--- a/Source/modules/webaudio/AudioNode.cpp
+++ b/Source/modules/webaudio/AudioNode.cpp
@@ -126,7 +126,7 @@ AudioNodeOutput* AudioNode::output(unsigned i)
void AudioNode::connect(AudioNode* destination, unsigned outputIndex, unsigned inputIndex, ExceptionState& es)
{
- ASSERT(isMainThread());
+ ASSERT(isMainThread());
AudioContext::AutoLocker locker(context());
if (!destination) {
@@ -342,7 +342,7 @@ bool AudioNode::propagatesSilence() const
void AudioNode::pullInputs(size_t framesToProcess)
{
ASSERT(context()->isAudioThread());
-
+
// Process all of the AudioNodes connected to our inputs.
for (unsigned i = 0; i < m_inputs.size(); ++i)
input(i)->pull(0, framesToProcess);
@@ -437,7 +437,7 @@ void AudioNode::deref(RefType refType)
// In the case of the audio thread, we must use a tryLock to avoid glitches.
bool hasLock = false;
bool mustReleaseLock = false;
-
+
if (context()->isAudioThread()) {
// Real-time audio thread must not contend lock (to avoid glitches).
hasLock = context()->tryLock(mustReleaseLock);
@@ -445,7 +445,7 @@ void AudioNode::deref(RefType refType)
context()->lock(mustReleaseLock);
hasLock = true;
}
-
+
if (hasLock) {
// This is where the real deref work happens.
finishDeref(refType);
@@ -469,7 +469,7 @@ void AudioNode::deref(RefType refType)
void AudioNode::finishDeref(RefType refType)
{
ASSERT(context()->isGraphOwner());
-
+
switch (refType) {
case RefTypeNormal:
ASSERT(m_normalRefCount > 0);
@@ -482,7 +482,7 @@ void AudioNode::finishDeref(RefType refType)
default:
ASSERT_NOT_REACHED();
}
-
+
#if DEBUG_AUDIONODE_REFERENCES
fprintf(stderr, "%p: %d: AudioNode::deref(%d) %d %d\n", this, nodeType(), refType, m_normalRefCount, m_connectionRefCount);
#endif
« no previous file with comments | « Source/modules/webaudio/AudioDestinationNode.cpp ('k') | Source/modules/webaudio/AudioNodeInput.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698