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

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: Fix webaudio/delaynode-max-nondefault-delay.html 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // The main thread sets m_desiredNumberOfChannels which will later get picke d up in the audio thread in updateNumberOfChannels(). 127 // The main thread sets m_desiredNumberOfChannels which will later get picke d up in the audio thread in updateNumberOfChannels().
128 unsigned m_numberOfChannels; 128 unsigned m_numberOfChannels;
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 // This RefPtr<AudioNode> is connection reference. We must call AudioNode::
138 typedef HashSet<AudioNodeInput*>::iterator InputsIterator; 138 // makeConnection() after ref(), and call AudioNode::breakConnection()
139 // before deref().
140 HashMap<AudioNodeInput*, RefPtr<AudioNode> > m_inputs;
141 typedef HashMap<AudioNodeInput*, RefPtr<AudioNode> >::iterator InputsIterato r;
139 bool m_isEnabled; 142 bool m_isEnabled;
140 143
141 // For the purposes of rendering, keeps track of the number of inputs and Au dioParams we're connected to. 144 // 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. 145 // These value should only be changed at the very start or end of the render ing quantum.
143 unsigned m_renderingFanOutCount; 146 unsigned m_renderingFanOutCount;
144 unsigned m_renderingParamFanOutCount; 147 unsigned m_renderingParamFanOutCount;
145 148
146 WillBePersistentHeapHashSet<RefPtrWillBeMember<AudioParam> > m_params; 149 WillBePersistentHeapHashSet<RefPtrWillBeMember<AudioParam> > m_params;
147 }; 150 };
148 151
149 } // namespace WebCore 152 } // namespace WebCore
150 153
151 #endif // AudioNodeOutput_h 154 #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