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

Issue 2429633003: Handle disabled outputs better when enabling. (Closed)

Created:
4 years, 2 months ago by Raymond Toy
Modified:
4 years, 2 months ago
Reviewers:
hongchan
CC:
chromium-reviews, blink-reviews, haraken, Raymond Toy, hongchan
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle disabled outputs better when enabling. The DCHECK for disabled outputs didn't handle the case where m_disabledOutputs was empty. Of course, the output isn't in m_disabledOutputs if m_disabledOutputs is empty. Items get added to m_disabledOutputs only from disableOutputsIfNecessary which happens when the number of connections goes to 0 or 1, in preparation for collecting the node. In the test case, the nodes still have references so there's no call to disableOutputsIfNecessary. The output is just disconnected from the downstream node. BUG=656652 TEST=audionode-disconnect.html updated to include test Committed: https://crrev.com/b61db9ee9a2987fa92d5d7aa082b5eaa33684991 Cr-Commit-Position: refs/heads/master@{#425979}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -11 lines) Patch
M third_party/WebKit/LayoutTests/webaudio/audionode-disconnect.html View 1 chunk +18 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audionode-disconnect-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
Raymond Toy
PTAL.
4 years, 2 months ago (2016-10-17 19:53:01 UTC) #3
Raymond Toy
4 years, 2 months ago (2016-10-17 20:57:38 UTC) #6
hongchan
lgtm
4 years, 2 months ago (2016-10-17 20:57:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2429633003/1
4 years, 2 months ago (2016-10-18 15:58:17 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-18 16:03:42 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 16:06:22 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/b61db9ee9a2987fa92d5d7aa082b5eaa33684991
Cr-Commit-Position: refs/heads/master@{#425979}

Powered by Google App Engine
This is Rietveld 408576698