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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/webaudio/AudioNodeInput.cpp ('k') | Source/modules/webaudio/AudioNodeOutput.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 unsigned m_desiredNumberOfChannels; 129 unsigned m_desiredNumberOfChannels;
130 130
131 // m_internalBus and m_inPlaceBus must only be changed in the audio thread w ith the context's graph lock (or constructor). 131 // m_internalBus and m_inPlaceBus must only be changed in the audio thread w ith the context's graph lock (or constructor).
132 RefPtr<AudioBus> m_internalBus; 132 RefPtr<AudioBus> m_internalBus;
133 RefPtr<AudioBus> m_inPlaceBus; 133 RefPtr<AudioBus> m_inPlaceBus;
134 // If m_isInPlace is true, use m_inPlaceBus as the valid AudioBus; If false, use the default m_internalBus. 134 // If m_isInPlace is true, use m_inPlaceBus as the valid AudioBus; If false, use the default m_internalBus.
135 bool m_isInPlace; 135 bool m_isInPlace;
136 136
137 HashSet<AudioNodeInput*> m_inputs; 137 HashSet<AudioNodeInput*> m_inputs;
138 typedef HashSet<AudioNodeInput*>::iterator InputsIterator; 138 typedef HashSet<AudioNodeInput*>::iterator InputsIterator;
139 // The content of m_inputNodes must be synchronized with m_inputs.
140 // This RefPtr is connection reference. We must call AudioNode::
141 // makeConnection() after ref(), and call AudioNode::breakConnection()
142 // before deref().
143 HashSet<RefPtr<AudioNode> > m_inputNodes;
tkent 2014/07/14 03:56:04 Using HashSet<> was wrong. We can associate an Au
139 bool m_isEnabled; 144 bool m_isEnabled;
140 145
141 // For the purposes of rendering, keeps track of the number of inputs and Au dioParams we're connected to. 146 // For the purposes of rendering, keeps track of the number of inputs and Au dioParams we're connected to.
142 // These value should only be changed at the very start or end of the render ing quantum. 147 // These value should only be changed at the very start or end of the render ing quantum.
143 unsigned m_renderingFanOutCount; 148 unsigned m_renderingFanOutCount;
144 unsigned m_renderingParamFanOutCount; 149 unsigned m_renderingParamFanOutCount;
145 150
146 WillBePersistentHeapHashSet<RefPtrWillBeMember<AudioParam> > m_params; 151 WillBePersistentHeapHashSet<RefPtrWillBeMember<AudioParam> > m_params;
147 }; 152 };
148 153
149 } // namespace WebCore 154 } // namespace WebCore
150 155
151 #endif // AudioNodeOutput_h 156 #endif // AudioNodeOutput_h
OLDNEW
« 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