Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 should be synchronized with m_inputs. | |
| 140 // This RefPtr makes the node graph. We need to call AudioNode:: | |
| 141 // wasConnected() after ref(), and call AudioNode::willBeDisconnected() | |
| 142 // before deref(). | |
| 143 HashSet<RefPtr<AudioNode> > m_inputNodes; | |
|
Raymond Toy
2014/07/09 22:10:34
What is this hash table for? Why is this needed no
tkent
2014/07/10 08:07:42
This holds connection references, and replaces man
| |
| 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 |
| OLD | NEW |