Index: Source/modules/webaudio/AudioNode.h |
diff --git a/Source/modules/webaudio/AudioNode.h b/Source/modules/webaudio/AudioNode.h |
index e487561de9a79ca473cbffbde9cadb270b6090cf..fc67044cf42d9c431d917dc1872598922572b34b 100644 |
--- a/Source/modules/webaudio/AudioNode.h |
+++ b/Source/modules/webaudio/AudioNode.h |
@@ -60,6 +60,7 @@ public: |
// dispose() is called just before the destructor. This must be called in |
// the main thread, and while the graph lock is held. |
virtual void dispose(); |
+ static unsigned instanceCount() { return s_instanceCount; } |
AudioContext* context() { return m_context.get(); } |
const AudioContext* context() const { return m_context.get(); } |
@@ -231,6 +232,7 @@ private: |
static bool s_isNodeCountInitialized; |
static int s_nodeCount[NodeTypeEnd]; |
#endif |
+ static unsigned s_instanceCount; |
#if !ENABLE(OILPAN) |
virtual void refEventTarget() OVERRIDE FINAL { ref(); } |