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

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

Issue 438293003: Enable Oilpan by default for webaudio/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | « Source/modules/webaudio/AudioNodeInput.h ('k') | Source/modules/webaudio/AudioNodeOutput.h » ('j') | 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 24 matching lines...) Expand all
35 namespace blink { 35 namespace blink {
36 36
37 inline AudioNodeInput::AudioNodeInput(AudioNode& node) 37 inline AudioNodeInput::AudioNodeInput(AudioNode& node)
38 : AudioSummingJunction(node.context()) 38 : AudioSummingJunction(node.context())
39 , m_node(node) 39 , m_node(node)
40 { 40 {
41 // Set to mono by default. 41 // Set to mono by default.
42 m_internalSummingBus = AudioBus::create(1, AudioNode::ProcessingSizeInFrames ); 42 m_internalSummingBus = AudioBus::create(1, AudioNode::ProcessingSizeInFrames );
43 } 43 }
44 44
45 PassOwnPtrWillBeRawPtr<AudioNodeInput> AudioNodeInput::create(AudioNode& node) 45 AudioNodeInput* AudioNodeInput::create(AudioNode& node)
46 { 46 {
47 return adoptPtrWillBeNoop(new AudioNodeInput(node)); 47 return new AudioNodeInput(node);
48 } 48 }
49 49
50 void AudioNodeInput::trace(Visitor* visitor) 50 void AudioNodeInput::trace(Visitor* visitor)
51 { 51 {
52 visitor->trace(m_node); 52 visitor->trace(m_node);
53 AudioSummingJunction::trace(visitor); 53 AudioSummingJunction::trace(visitor);
54 } 54 }
55 55
56 void AudioNodeInput::connect(AudioNodeOutput& output) 56 void AudioNodeInput::connect(AudioNodeOutput& output)
57 { 57 {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 // Handle multiple connections case. 227 // Handle multiple connections case.
228 sumAllConnections(internalSummingBus, framesToProcess); 228 sumAllConnections(internalSummingBus, framesToProcess);
229 229
230 return internalSummingBus; 230 return internalSummingBus;
231 } 231 }
232 232
233 } // namespace blink 233 } // namespace blink
234 234
235 #endif // ENABLE(WEB_AUDIO) 235 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioNodeInput.h ('k') | Source/modules/webaudio/AudioNodeOutput.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698