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

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

Issue 349213007: WebAudio: Remove AudioNode::RefType. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
Index: Source/modules/webaudio/AudioNodeOutput.cpp
diff --git a/Source/modules/webaudio/AudioNodeOutput.cpp b/Source/modules/webaudio/AudioNodeOutput.cpp
index 82eddf0a424f15a5962270125d0395f50cb28a97..49c56e4871d4ce0ed9226ffccf11ff56bf4cde11 100644
--- a/Source/modules/webaudio/AudioNodeOutput.cpp
+++ b/Source/modules/webaudio/AudioNodeOutput.cpp
@@ -160,6 +160,8 @@ void AudioNodeOutput::addInput(AudioNodeInput* input)
return;
m_inputs.add(input);
+ m_inputNodes.add(input->node());
+ input->node()->wasConnected();
}
void AudioNodeOutput::removeInput(AudioNodeInput* input)
@@ -171,6 +173,8 @@ void AudioNodeOutput::removeInput(AudioNodeInput* input)
return;
m_inputs.remove(input);
+ input->node()->willBeDisconnected();
+ m_inputNodes.remove(input->node());
}
void AudioNodeOutput::disconnectAllInputs()
« Source/modules/webaudio/AudioNodeOutput.h ('K') | « Source/modules/webaudio/AudioNodeOutput.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698