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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioNodeOutput.h

Issue 2159403002: Replace ASSERT with DCHECK in WebAudio (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // If m_isInPlace is true, use m_inPlaceBus as the valid AudioBus; If false, use the default m_internalBus. 143 // If m_isInPlace is true, use m_inPlaceBus as the valid AudioBus; If false, use the default m_internalBus.
144 bool m_isInPlace; 144 bool m_isInPlace;
145 145
146 // This HashSet holds connection references. We must call 146 // This HashSet holds connection references. We must call
147 // AudioNode::makeConnection when we add an AudioNodeInput to this, and must 147 // AudioNode::makeConnection when we add an AudioNodeInput to this, and must
148 // call AudioNode::breakConnection() when we remove an AudioNodeInput from 148 // call AudioNode::breakConnection() when we remove an AudioNodeInput from
149 // this. 149 // this.
150 HashSet<AudioNodeInput*> m_inputs; 150 HashSet<AudioNodeInput*> m_inputs;
151 bool m_isEnabled; 151 bool m_isEnabled;
152 152
153 #if ENABLE(ASSERT)
154 bool m_didCallDispose; 153 bool m_didCallDispose;
155 #endif
156 154
157 // For the purposes of rendering, keeps track of the number of inputs and Au dioParams we're connected to. 155 // For the purposes of rendering, keeps track of the number of inputs and Au dioParams we're connected to.
158 // These value should only be changed at the very start or end of the render ing quantum. 156 // These value should only be changed at the very start or end of the render ing quantum.
159 unsigned m_renderingFanOutCount; 157 unsigned m_renderingFanOutCount;
160 unsigned m_renderingParamFanOutCount; 158 unsigned m_renderingParamFanOutCount;
161 159
162 // This collection of raw pointers is safe because they are retained by 160 // This collection of raw pointers is safe because they are retained by
163 // AudioParam objects retained by m_connectedParams of the owner AudioNode. 161 // AudioParam objects retained by m_connectedParams of the owner AudioNode.
164 HashSet<AudioParamHandler*> m_params; 162 HashSet<AudioParamHandler*> m_params;
165 }; 163 };
166 164
167 } // namespace blink 165 } // namespace blink
168 166
169 #endif // AudioNodeOutput_h 167 #endif // AudioNodeOutput_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698