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

Issue 349213007: WebAudio: Remove AudioNode::RefType. (Closed)

Created:
6 years, 5 months ago by tkent
Modified:
6 years, 5 months ago
CC:
blink-reviews
Project:
blink
Visibility:
Public.

Description

WebAudio: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -100 lines) Patch
M Source/modules/webaudio/AudioBufferSourceNode.h View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
M Source/modules/webaudio/AudioBufferSourceNode.cpp View 1 2 2 chunks +7 lines, -8 lines 0 comments Download
M Source/modules/webaudio/AudioContext.h View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M Source/modules/webaudio/AudioContext.cpp View 1 2 3 chunks +5 lines, -6 lines 0 comments Download
M Source/modules/webaudio/AudioNode.h View 1 2 2 chunks +13 lines, -8 lines 0 comments Download
M Source/modules/webaudio/AudioNode.cpp View 1 2 4 chunks +39 lines, -46 lines 0 comments Download
M Source/modules/webaudio/AudioNodeInput.cpp View 1 3 chunks +4 lines, -5 lines 0 comments Download
M Source/modules/webaudio/AudioNodeOutput.h View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M Source/modules/webaudio/AudioNodeOutput.cpp View 1 2 3 6 chunks +11 lines, -18 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
tkent
Would you review this please? My goal is to simplify lifetime management in modules/webaudio/. This ...
6 years, 5 months ago (2014-06-27 08:55:04 UTC) #1
Raymond Toy
On 2014/06/27 08:55:04, tkent wrote: > Would you review this please? > > My goal ...
6 years, 5 months ago (2014-06-27 18:01:03 UTC) #2
tkent
On 2014/06/27 18:01:03, Raymond Toy wrote: > Although I guess if they're the same, this ...
6 years, 5 months ago (2014-07-08 06:32:08 UTC) #3
Raymond Toy
On 2014/07/08 06:32:08, tkent wrote: > On 2014/06/27 18:01:03, Raymond Toy wrote: > > Although ...
6 years, 5 months ago (2014-07-09 21:52:38 UTC) #4
Raymond Toy
Looks good overall. Just some questions. https://codereview.chromium.org/349213007/diff/1/Source/modules/webaudio/AudioBufferSourceNode.h File Source/modules/webaudio/AudioBufferSourceNode.h (right): https://codereview.chromium.org/349213007/diff/1/Source/modules/webaudio/AudioBufferSourceNode.h#newcode135 Source/modules/webaudio/AudioBufferSourceNode.h:135: // This RefPtr ...
6 years, 5 months ago (2014-07-09 22:10:34 UTC) #5
tkent
https://codereview.chromium.org/349213007/diff/1/Source/modules/webaudio/AudioBufferSourceNode.h File Source/modules/webaudio/AudioBufferSourceNode.h (right): https://codereview.chromium.org/349213007/diff/1/Source/modules/webaudio/AudioBufferSourceNode.h#newcode135 Source/modules/webaudio/AudioBufferSourceNode.h:135: // This RefPtr makes the node graph. We need ...
6 years, 5 months ago (2014-07-10 08:07:42 UTC) #6
tkent
I uploaded new patch. Please take a look at it.
6 years, 5 months ago (2014-07-10 09:22:49 UTC) #7
Raymond Toy
lgtm, with a nit on the name didConnect. Is makeConnection better? If so, then maybe ...
6 years, 5 months ago (2014-07-10 14:46:29 UTC) #8
tkent
On 2014/07/10 14:46:29, Raymond Toy wrote: > lgtm, with a nit on the name didConnect. ...
6 years, 5 months ago (2014-07-11 00:37:22 UTC) #9
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 5 months ago (2014-07-11 00:37:26 UTC) #10
tkent
The CQ bit was unchecked by tkent@chromium.org
6 years, 5 months ago (2014-07-11 00:37:38 UTC) #11
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 5 months ago (2014-07-11 00:38:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/349213007/60001
6 years, 5 months ago (2014-07-11 00:38:38 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-11 01:38:47 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-11 02:46:58 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/15927)
6 years, 5 months ago (2014-07-11 02:46:59 UTC) #16
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 5 months ago (2014-07-11 02:59:37 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/349213007/60001
6 years, 5 months ago (2014-07-11 02:59:58 UTC) #18
tkent
The CQ bit was unchecked by tkent@chromium.org
6 years, 5 months ago (2014-07-11 07:07:30 UTC) #19
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 5 months ago (2014-07-11 07:21:00 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/349213007/60001
6 years, 5 months ago (2014-07-11 07:22:12 UTC) #21
commit-bot: I haz the power
Change committed as 177910
6 years, 5 months ago (2014-07-11 07:40:09 UTC) #22
falken
On 2014/07/11 07:40:09, I haz the power (commit-bot) wrote: > Change committed as 177910 It ...
6 years, 5 months ago (2014-07-11 08:52:56 UTC) #23
tkent
On 2014/07/11 08:52:56, falken wrote: > On 2014/07/11 07:40:09, I haz the power (commit-bot) wrote: ...
6 years, 5 months ago (2014-07-11 08:56:11 UTC) #24
tkent
A revert of this CL has been created in https://codereview.chromium.org/385953003/ by tkent@chromium.org. The reason for ...
6 years, 5 months ago (2014-07-11 08:56:33 UTC) #25
tkent
https://codereview.chromium.org/349213007/diff/60001/Source/modules/webaudio/AudioNodeOutput.h File Source/modules/webaudio/AudioNodeOutput.h (right): https://codereview.chromium.org/349213007/diff/60001/Source/modules/webaudio/AudioNodeOutput.h#newcode143 Source/modules/webaudio/AudioNodeOutput.h:143: HashSet<RefPtr<AudioNode> > m_inputNodes; Using HashSet<> was wrong. We can ...
6 years, 5 months ago (2014-07-14 03:56:04 UTC) #26
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 5 months ago (2014-07-14 03:56:07 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/349213007/80001
6 years, 5 months ago (2014-07-14 03:56:53 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-14 04:55:35 UTC) #29
commit-bot: I haz the power
6 years, 5 months ago (2014-07-14 05:54:08 UTC) #30
Message was sent while issue was closed.
Change committed as 178026

Powered by Google App Engine
This is Rietveld 408576698