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

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

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/webaudio/AudioNode.idl ('k') | Source/modules/webaudio/AudioNodeInput.cpp » ('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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Called from context's audio thread. 72 // Called from context's audio thread.
73 AudioBus* bus(); 73 AudioBus* bus();
74 74
75 // updateInternalBus() updates m_internalSummingBus appropriately for the nu mber of channels. 75 // updateInternalBus() updates m_internalSummingBus appropriately for the nu mber of channels.
76 // This must be called when we own the context's graph lock in the audio thr ead at the very start or end of the render quantum. 76 // This must be called when we own the context's graph lock in the audio thr ead at the very start or end of the render quantum.
77 void updateInternalBus(); 77 void updateInternalBus();
78 78
79 // The number of channels of the connection with the largest number of chann els. 79 // The number of channels of the connection with the largest number of chann els.
80 unsigned numberOfChannels() const; 80 unsigned numberOfChannels() const;
81 81
82 virtual void trace(Visitor*) OVERRIDE;
83
82 private: 84 private:
83 AudioNode* m_node; 85 AudioNode* m_node;
84 86
85 // m_disabledOutputs contains the AudioNodeOutputs which are disabled (will not be processed) by the audio graph rendering. 87 // m_disabledOutputs contains the AudioNodeOutputs which are disabled (will not be processed) by the audio graph rendering.
86 // But, from JavaScript's perspective, these outputs are still connected to us. 88 // But, from JavaScript's perspective, these outputs are still connected to us.
87 // Generally, these represent disabled connections from "notes" which have f inished playing but are not yet garbage collected. 89 // Generally, these represent disabled connections from "notes" which have f inished playing but are not yet garbage collected.
88 HashSet<AudioNodeOutput*> m_disabledOutputs; 90 HashSet<AudioNodeOutput*> m_disabledOutputs;
89 91
90 // Called from context's audio thread. 92 // Called from context's audio thread.
91 AudioBus* internalSummingBus(); 93 AudioBus* internalSummingBus();
92 void sumAllConnections(AudioBus* summingBus, size_t framesToProcess); 94 void sumAllConnections(AudioBus* summingBus, size_t framesToProcess);
93 95
94 RefPtr<AudioBus> m_internalSummingBus; 96 RefPtr<AudioBus> m_internalSummingBus;
95 }; 97 };
96 98
97 } // namespace WebCore 99 } // namespace WebCore
98 100
99 #endif // AudioNodeInput_h 101 #endif // AudioNodeInput_h
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioNode.idl ('k') | Source/modules/webaudio/AudioNodeInput.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698