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

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

Issue 349213007: WebAudio: Remove AudioNode::RefType. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename again Created 6 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/AudioNodeInput.cpp ('k') | Source/modules/webaudio/AudioNodeOutput.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioNodeOutput.h
diff --git a/Source/modules/webaudio/AudioNodeOutput.h b/Source/modules/webaudio/AudioNodeOutput.h
index ade9c1c3350dbced00ad39f28ee870d246e7d95e..f63d108e6ea5ca3630998a17e3196fd7db34ed6e 100644
--- a/Source/modules/webaudio/AudioNodeOutput.h
+++ b/Source/modules/webaudio/AudioNodeOutput.h
@@ -136,6 +136,11 @@ private:
HashSet<AudioNodeInput*> m_inputs;
typedef HashSet<AudioNodeInput*>::iterator InputsIterator;
+ // The content of m_inputNodes must be synchronized with m_inputs.
+ // This RefPtr is connection reference. We must call AudioNode::
+ // makeConnection() after ref(), and call AudioNode::breakConnection()
+ // before deref().
+ HashSet<RefPtr<AudioNode> > m_inputNodes;
tkent 2014/07/14 03:56:04 Using HashSet<> was wrong. We can associate an Au
bool m_isEnabled;
// For the purposes of rendering, keeps track of the number of inputs and AudioParams we're connected to.
« no previous file with comments | « Source/modules/webaudio/AudioNodeInput.cpp ('k') | Source/modules/webaudio/AudioNodeOutput.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698