Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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) |
| OLD | NEW |