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

Side by Side Diff: Source/modules/webaudio/AudioNode.h

Issue 455353002: Add an ASSERT to verify that AudioNode::dispose() is always called (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 #if !ENABLE(OILPAN) 222 #if !ENABLE(OILPAN)
223 // Ref-counting 223 // Ref-counting
224 volatile int m_normalRefCount; 224 volatile int m_normalRefCount;
225 #endif 225 #endif
226 volatile int m_connectionRefCount; 226 volatile int m_connectionRefCount;
227 227
228 bool m_isMarkedForDeletion; 228 bool m_isMarkedForDeletion;
229 bool m_isDisabled; 229 bool m_isDisabled;
230 230
231 #ifndef NDEBUG
tkent 2014/08/11 10:13:06 should be |#if ENABLE(ASSERT)|. We have a bot wit
232 bool m_disposeIsCalled;
tkent 2014/08/11 10:13:06 m_disposeWasCalled, or m_didCallDispose?
haraken 2014/08/11 10:33:00 Done.
233 #endif
234
231 #if DEBUG_AUDIONODE_REFERENCES 235 #if DEBUG_AUDIONODE_REFERENCES
232 static bool s_isNodeCountInitialized; 236 static bool s_isNodeCountInitialized;
233 static int s_nodeCount[NodeTypeEnd]; 237 static int s_nodeCount[NodeTypeEnd];
234 #endif 238 #endif
235 static unsigned s_instanceCount; 239 static unsigned s_instanceCount;
236 240
237 #if !ENABLE(OILPAN) 241 #if !ENABLE(OILPAN)
238 virtual void refEventTarget() OVERRIDE FINAL { ref(); } 242 virtual void refEventTarget() OVERRIDE FINAL { ref(); }
239 virtual void derefEventTarget() OVERRIDE FINAL { deref(); } 243 virtual void derefEventTarget() OVERRIDE FINAL { deref(); }
240 #endif 244 #endif
241 245
242 protected: 246 protected:
243 unsigned m_channelCount; 247 unsigned m_channelCount;
244 ChannelCountMode m_channelCountMode; 248 ChannelCountMode m_channelCountMode;
245 AudioBus::ChannelInterpretation m_channelInterpretation; 249 AudioBus::ChannelInterpretation m_channelInterpretation;
246 }; 250 };
247 251
248 } // namespace blink 252 } // namespace blink
249 253
250 #endif // AudioNode_h 254 #endif // AudioNode_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/webaudio/AudioNode.cpp » ('j') | Source/modules/webaudio/AudioNode.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698