Chromium Code Reviews
DescriptionWebAudio: Remove AudioNode::RefType.
The motivation of this CL is to reduce manual ref()/deref().
AudioNode has two types of ref()/deref(); RefTypeNormal and RefTypeConnection.
It made the code complex, and we couldn't use RefPtr<> for the connection type
references.
This CL removes AudioNode::RefType.
- m_normalRefCount and m_connectionRefCount were updated independently. After
this CL, connection type references updates both of them.
- We use RefPtr<> for connection type references, and call
AudioNode::makeConnection() and AudioNode::breakConnection() explicitly when
connections are updated.
BUG=392788
TEST=none; This CL should not have behavior changes.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177910
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178026
Patch Set 1 #
Total comments: 22
Patch Set 2 : renaming, etc. #Patch Set 3 : rename again #
Total comments: 1
Patch Set 4 : Fix webaudio/delaynode-max-nondefault-delay.html #
Messages
Total messages: 30 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||