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

Unified Diff: Source/modules/webaudio/AudioContext.cpp

Issue 421603002: Note creation of AudioContext when DEBUG_AUDIONODE_REFERENCES is set. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioContext.cpp
diff --git a/Source/modules/webaudio/AudioContext.cpp b/Source/modules/webaudio/AudioContext.cpp
index ef430aadf0cd245e453646662b5f32239fff73ec..ad34ca789ab554d94a6daf126c610514126107f9 100644
--- a/Source/modules/webaudio/AudioContext.cpp
+++ b/Source/modules/webaudio/AudioContext.cpp
@@ -125,6 +125,9 @@ AudioContext::AudioContext(Document* document)
m_destinationNode = DefaultAudioDestinationNode::create(this);
initialize();
+#if DEBUG_AUDIONODE_REFERENCES
+ fprintf(stderr, "%p: AudioContext::AudioContext() #%u\n", this, AudioContext::s_hardwareContextCount);
Ken Russell (switch to Gerrit) 2014/07/25 18:28:56 Why not just use WTF_LOG from wtf/Assertions.h?
+#endif
}
// Constructor for offline (non-realtime) rendering.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698