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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 , m_connectionCount(0) 118 , m_connectionCount(0)
119 , m_audioThread(0) 119 , m_audioThread(0)
120 , m_graphOwnerThread(UndefinedThreadIdentifier) 120 , m_graphOwnerThread(UndefinedThreadIdentifier)
121 , m_isOfflineContext(false) 121 , m_isOfflineContext(false)
122 { 122 {
123 ScriptWrappable::init(this); 123 ScriptWrappable::init(this);
124 124
125 m_destinationNode = DefaultAudioDestinationNode::create(this); 125 m_destinationNode = DefaultAudioDestinationNode::create(this);
126 126
127 initialize(); 127 initialize();
128 #if DEBUG_AUDIONODE_REFERENCES
129 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?
130 #endif
128 } 131 }
129 132
130 // Constructor for offline (non-realtime) rendering. 133 // Constructor for offline (non-realtime) rendering.
131 AudioContext::AudioContext(Document* document, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate) 134 AudioContext::AudioContext(Document* document, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate)
132 : ActiveDOMObject(document) 135 : ActiveDOMObject(document)
133 , m_isStopScheduled(false) 136 , m_isStopScheduled(false)
134 , m_isCleared(false) 137 , m_isCleared(false)
135 , m_isInitialized(false) 138 , m_isInitialized(false)
136 , m_destinationNode(nullptr) 139 , m_destinationNode(nullptr)
137 #if !ENABLE(OILPAN) 140 #if !ENABLE(OILPAN)
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 visitor->trace(m_referencedNodes); 1023 visitor->trace(m_referencedNodes);
1021 visitor->trace(m_liveNodes); 1024 visitor->trace(m_liveNodes);
1022 visitor->trace(m_liveAudioSummingJunctions); 1025 visitor->trace(m_liveAudioSummingJunctions);
1023 #endif 1026 #endif
1024 EventTargetWithInlineData::trace(visitor); 1027 EventTargetWithInlineData::trace(visitor);
1025 } 1028 }
1026 1029
1027 } // namespace blink 1030 } // namespace blink
1028 1031
1029 #endif // ENABLE(WEB_AUDIO) 1032 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« 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