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

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

Issue 270103005: Tried to move AudioSummingJuction to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | « Source/modules/webaudio/ChannelMergerNode.h ('k') | Source/modules/webaudio/ChannelSplitterNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/ChannelMergerNode.cpp
diff --git a/Source/modules/webaudio/ChannelMergerNode.cpp b/Source/modules/webaudio/ChannelMergerNode.cpp
index 969df9cf897eb4519261a1b807344ad9a7c9e1bf..4cdca27cdd15d51f3f60ed2cacba0d798baa880d 100644
--- a/Source/modules/webaudio/ChannelMergerNode.cpp
+++ b/Source/modules/webaudio/ChannelMergerNode.cpp
@@ -40,12 +40,12 @@ const unsigned DefaultNumberOfOutputChannels = 1;
namespace WebCore {
-PassRefPtr<ChannelMergerNode> ChannelMergerNode::create(AudioContext* context, float sampleRate, unsigned numberOfInputs)
+PassRefPtrWillBeRawPtr<ChannelMergerNode> ChannelMergerNode::create(AudioContext* context, float sampleRate, unsigned numberOfInputs)
{
if (!numberOfInputs || numberOfInputs > AudioContext::maxNumberOfChannels())
return nullptr;
- return adoptRef(new ChannelMergerNode(context, sampleRate, numberOfInputs));
+ return adoptRefWillBeNoop(new ChannelMergerNode(context, sampleRate, numberOfInputs));
}
ChannelMergerNode::ChannelMergerNode(AudioContext* context, float sampleRate, unsigned numberOfInputs)
@@ -55,7 +55,7 @@ ChannelMergerNode::ChannelMergerNode(AudioContext* context, float sampleRate, un
ScriptWrappable::init(this);
// Create the requested number of inputs.
for (unsigned i = 0; i < numberOfInputs; ++i)
- addInput(adoptPtr(new AudioNodeInput(this)));
+ addInput(adoptPtrWillBeNoop(new AudioNodeInput(this)));
addOutput(adoptPtr(new AudioNodeOutput(this, 1)));
setNodeType(NodeTypeChannelMerger);
« no previous file with comments | « Source/modules/webaudio/ChannelMergerNode.h ('k') | Source/modules/webaudio/ChannelSplitterNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698