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

Side by Side Diff: Source/modules/webaudio/AudioNodeOutput.cpp

Issue 402433005: Oilpan: Remove support for tracing off-heap HashSets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix deadWrapper number in heap tests. 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 m_internalBus = AudioBus::create(numberOfChannels, AudioNode::ProcessingSize InFrames); 48 m_internalBus = AudioBus::create(numberOfChannels, AudioNode::ProcessingSize InFrames);
49 } 49 }
50 50
51 PassOwnPtrWillBeRawPtr<AudioNodeOutput> AudioNodeOutput::create(AudioNode* node, unsigned numberOfChannels) 51 PassOwnPtrWillBeRawPtr<AudioNodeOutput> AudioNodeOutput::create(AudioNode* node, unsigned numberOfChannels)
52 { 52 {
53 return adoptPtrWillBeNoop(new AudioNodeOutput(node, numberOfChannels)); 53 return adoptPtrWillBeNoop(new AudioNodeOutput(node, numberOfChannels));
54 } 54 }
55 55
56 void AudioNodeOutput::trace(Visitor* visitor) 56 void AudioNodeOutput::trace(Visitor* visitor)
57 { 57 {
58 #if ENABLE(OILPAN)
58 visitor->trace(m_node); 59 visitor->trace(m_node);
59 visitor->trace(m_inputs); 60 visitor->trace(m_inputs);
60 visitor->trace(m_params); 61 visitor->trace(m_params);
62 #endif
61 } 63 }
62 64
63 void AudioNodeOutput::setNumberOfChannels(unsigned numberOfChannels) 65 void AudioNodeOutput::setNumberOfChannels(unsigned numberOfChannels)
64 { 66 {
65 ASSERT(numberOfChannels <= AudioContext::maxNumberOfChannels()); 67 ASSERT(numberOfChannels <= AudioContext::maxNumberOfChannels());
66 ASSERT(context()->isGraphOwner()); 68 ASSERT(context()->isGraphOwner());
67 69
68 m_desiredNumberOfChannels = numberOfChannels; 70 m_desiredNumberOfChannels = numberOfChannels;
69 71
70 if (context()->isAudioThread()) { 72 if (context()->isAudioThread()) {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 if (!m_isEnabled) { 225 if (!m_isEnabled) {
224 for (InputsIterator i = m_inputs.begin(); i != m_inputs.end(); ++i) 226 for (InputsIterator i = m_inputs.begin(); i != m_inputs.end(); ++i)
225 i->key->enable(*this); 227 i->key->enable(*this);
226 m_isEnabled = true; 228 m_isEnabled = true;
227 } 229 }
228 } 230 }
229 231
230 } // namespace WebCore 232 } // namespace WebCore
231 233
232 #endif // ENABLE(WEB_AUDIO) 234 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/core/svg/animation/SVGSMILElement.cpp ('k') | Source/modules/webdatabase/DatabaseContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698