b=914030 update AudioNode ownership comment r=roc

--HG--
extra : transplant_source : %B2z%F7%B7%8F%0F%AB%95N%B0%82%AC%8D%917%1B%84%3D%3A%9C
This commit is contained in:
Karl Tomlinson 2013-09-10 16:35:47 +12:00
parent 7b39d8a51c
commit 3609f6d2d3

View File

@ -102,11 +102,9 @@ private:
* real-time processing and output of this AudioNode.
*
* We track the incoming and outgoing connections to other AudioNodes.
* All connections are strong and thus rely on cycle collection to break them.
* However, we also track whether an AudioNode is capable of producing output
* in the future. If it isn't, then we break its connections to its inputs
* and outputs, allowing nodes to be immediately disconnected. This
* disconnection is done internally, invisible to DOM users.
* Outgoing connections have strong ownership. Also, AudioNodes add self
* references if they produce sound on their output even when they have silent
* or no input.
*/
class AudioNode : public nsDOMEventTargetHelper,
public EnableWebAudioCheck