Commit ee896c1b authored by rtoy@chromium.org's avatar rtoy@chromium.org

Note creation of AudioContext when DEBUG_AUDIONODE_REFERENCES is set.

When DEBUG_AUDIONODE_REFERENCES is set, a message for the destruction
of an AudioContext is printed, but there's no matching message for the
creation of an AudioContext. Add one to make it symmetric and so we
can see how many contexts are created.

BUG=

Review URL: https://codereview.chromium.org/421603002

git-svn-id: svn://svn.chromium.org/blink/trunk@178958 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent a905862c
...@@ -125,6 +125,9 @@ AudioContext::AudioContext(Document* document) ...@@ -125,6 +125,9 @@ AudioContext::AudioContext(Document* document)
m_destinationNode = DefaultAudioDestinationNode::create(this); m_destinationNode = DefaultAudioDestinationNode::create(this);
initialize(); initialize();
#if DEBUG_AUDIONODE_REFERENCES
fprintf(stderr, "%p: AudioContext::AudioContext() #%u\n", this, AudioContext::s_hardwareContextCount);
#endif
} }
// Constructor for offline (non-realtime) rendering. // Constructor for offline (non-realtime) rendering.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment