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

Issue 2159403002: Replace ASSERT with DCHECK in WebAudio (Closed)

Created:
4 years, 5 months ago by HyungwookLee
Modified:
4 years, 4 months ago
Reviewers:
Raymond Toy, hongchan
CC:
blink-reviews, chromium-reviews, haraken
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace ASSERT with DCHECK in WebAudio BUG=637509 R=hongchan@chromium.org,rtoy@chromium.org Committed: https://crrev.com/261ef60b39f7bf1f3232b4fa595e6c78ff57c048 Cr-Commit-Position: refs/heads/master@{#412483}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 #

Patch Set 4 #

Patch Set 5 #

Total comments: 23

Patch Set 6 #

Patch Set 7 #

Total comments: 5

Patch Set 8 #

Total comments: 5

Patch Set 9 #

Patch Set 10 #

Patch Set 11 : Rebase #

Patch Set 12 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -266 lines) Patch
M third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioBasicInspectorNode.cpp View 1 7 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioBasicProcessorHandler.cpp View 1 7 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp View 1 2 3 4 5 6 7 8 9 chunks +15 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioListener.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 26 chunks +31 lines, -31 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp View 3 4 5 6 7 7 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioNodeOutput.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioNodeOutput.cpp View 1 2 3 4 5 6 7 8 chunks +11 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParam.cpp View 1 7 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp View 1 2 3 4 5 12 chunks +15 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp View 1 2 3 4 5 6 7 8 9 5 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioSummingJunction.cpp View 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp View 1 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BiquadDSPKernel.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/ChannelMergerNode.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.cpp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.cpp View 1 2 3 4 5 6 7 8 9 10 5 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.cpp View 1 2 3 4 5 6 7 8 9 10 10 chunks +17 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/DelayDSPKernel.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/GainNode.cpp View 1 7 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/IIRDSPKernel.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/IIRProcessor.cpp View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp View 1 2 3 4 5 6 7 8 5 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp View 1 2 3 4 5 6 7 8 9 10 10 chunks +17 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/OscillatorNode.cpp View 1 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/PannerNode.cpp View 1 2 3 4 5 6 7 8 9 10 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.cpp View 8 chunks +15 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.cpp View 1 2 3 4 5 6 7 8 9 10 5 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/WaveShaperDSPKernel.cpp View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/WaveShaperNode.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/WaveShaperProcessor.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 59 (24 generated)
HyungwookLee
PTAL.
4 years, 5 months ago (2016-07-20 03:38:07 UTC) #1
Raymond Toy
Please rebase to a more recent version. AbstractAudioContext.* no longer exists.
4 years, 5 months ago (2016-07-20 15:00:06 UTC) #3
hongchan
Thanks for working on this! I didn't go through everything yet, but there are few ...
4 years, 5 months ago (2016-07-20 16:11:19 UTC) #4
HyungwookLee
https://codereview.chromium.org/2159403002/diff/1/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp (right): https://codereview.chromium.org/2159403002/diff/1/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp#newcode587 third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp:587: DCHECK(m_contextState == Running); On 2016/07/20 16:11:19, hoch wrote: > ...
4 years, 5 months ago (2016-07-22 03:30:34 UTC) #5
Raymond Toy
https://codereview.chromium.org/2159403002/diff/20001/third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp File third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp (right): https://codereview.chromium.org/2159403002/diff/20001/third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp#newcode175 third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp:175: DCHECK(numberOfRenderingConnections() > 1 || handler().internalChannelCountMode() != AudioHandler::Max); Since we're ...
4 years, 5 months ago (2016-07-22 14:59:26 UTC) #6
HyungwookLee
https://codereview.chromium.org/2159403002/diff/20001/third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp File third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp (right): https://codereview.chromium.org/2159403002/diff/20001/third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp#newcode175 third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp:175: DCHECK(numberOfRenderingConnections() > 1 || handler().internalChannelCountMode() != AudioHandler::Max); On 2016/07/22 ...
4 years, 5 months ago (2016-07-25 00:24:44 UTC) #7
Raymond Toy
Looks pretty good. A few more things, I think. But I'd really like to get ...
4 years, 5 months ago (2016-07-25 16:56:53 UTC) #8
HyungwookLee
https://codereview.chromium.org/2159403002/diff/80001/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp File third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp (right): https://codereview.chromium.org/2159403002/diff/80001/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp#newcode81 third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp:81: DCHECK_GE(static_cast<int>(numberOfInputs()), 1); On 2016/07/25 16:56:52, Raymond Toy wrote: > ...
4 years, 5 months ago (2016-07-26 00:42:41 UTC) #9
Raymond Toy
Thanks for your work on this. I'm fine with the changes, but I'd like Hongchan ...
4 years, 4 months ago (2016-07-26 16:17:47 UTC) #10
hongchan
I agree with rtoy@ in general. You might have to consult the proper owner to ...
4 years, 4 months ago (2016-07-26 23:53:26 UTC) #11
HyungwookLee
On 2016/07/26 23:53:26, hoch wrote: > I agree with rtoy@ in general. You might have ...
4 years, 4 months ago (2016-07-27 01:08:49 UTC) #12
hongchan
On 2016/07/27 01:08:49, HyungwookLee wrote: > On 2016/07/26 23:53:26, hoch wrote: > > I agree ...
4 years, 4 months ago (2016-07-27 16:28:41 UTC) #13
HyungwookLee
On 2016/07/27 16:28:41, hoch wrote: > On 2016/07/27 01:08:49, HyungwookLee wrote: > > On 2016/07/26 ...
4 years, 4 months ago (2016-08-09 03:53:03 UTC) #14
HyungwookLee
4 years, 4 months ago (2016-08-09 03:53:41 UTC) #15
Raymond Toy
On 2016/08/09 at 03:53:03, hyungwook.lee wrote: > On 2016/07/27 16:28:41, hoch wrote: > > On ...
4 years, 4 months ago (2016-08-09 17:00:13 UTC) #16
HyungwookLee
On 2016/08/09 17:00:13, Raymond Toy wrote: > On 2016/08/09 at 03:53:03, hyungwook.lee wrote: > > ...
4 years, 4 months ago (2016-08-10 13:00:44 UTC) #17
Raymond Toy
https://codereview.chromium.org/2159403002/diff/120001/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp File third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp (right): https://codereview.chromium.org/2159403002/diff/120001/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp#newcode270 third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp:270: // It can happen that framesThisTime is 0. DCHECK ...
4 years, 4 months ago (2016-08-10 16:29:15 UTC) #18
HyungwookLee
https://codereview.chromium.org/2159403002/diff/120001/third_party/WebKit/Source/modules/webaudio/AudioNodeOutput.cpp File third_party/WebKit/Source/modules/webaudio/AudioNodeOutput.cpp (right): https://codereview.chromium.org/2159403002/diff/120001/third_party/WebKit/Source/modules/webaudio/AudioNodeOutput.cpp#newcode124 third_party/WebKit/Source/modules/webaudio/AudioNodeOutput.cpp:124: DCHECK_GT(m_renderingParamFanOutCount, 0u); On 2016/08/10 16:29:15, Raymond Toy wrote: > ...
4 years, 4 months ago (2016-08-11 08:35:15 UTC) #19
Raymond Toy
On 2016/08/11 at 08:35:15, hyungwook.lee wrote: > https://codereview.chromium.org/2159403002/diff/120001/third_party/WebKit/Source/modules/webaudio/AudioNodeOutput.cpp > File third_party/WebKit/Source/modules/webaudio/AudioNodeOutput.cpp (right): > > https://codereview.chromium.org/2159403002/diff/120001/third_party/WebKit/Source/modules/webaudio/AudioNodeOutput.cpp#newcode124 ...
4 years, 4 months ago (2016-08-11 15:52:59 UTC) #20
HyungwookLee
On 2016/08/11 15:52:59, Raymond Toy wrote: > On 2016/08/11 at 08:35:15, hyungwook.lee wrote: > > ...
4 years, 4 months ago (2016-08-13 03:18:16 UTC) #22
Raymond Toy
lgtm from me. I'd lik hongchan@ to take a quick look too.
4 years, 4 months ago (2016-08-15 15:08:16 UTC) #23
hongchan
lgtm with nits. Please take a look if we can substitute ASSERT_UNUSED with DCHECK. If ...
4 years, 4 months ago (2016-08-15 15:43:22 UTC) #24
HyungwookLee
https://codereview.chromium.org/2159403002/diff/140001/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp File third_party/WebKit/Source/modules/webaudio/AudioNode.cpp (right): https://codereview.chromium.org/2159403002/diff/140001/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp#newcode947 third_party/WebKit/Source/modules/webaudio/AudioNode.cpp:947: ASSERT_UNUSED(numberOfOutputs, numberOfOutputs == m_connectedNodes.size()); On 2016/08/15 15:43:21, hoch wrote: ...
4 years, 4 months ago (2016-08-16 03:16:04 UTC) #25
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/2159403002/180001
4 years, 4 months ago (2016-08-16 22:02:23 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/239280)
4 years, 4 months ago (2016-08-16 22:09:42 UTC) #38
hongchan
On 2016/08/16 22:09:42, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 4 months ago (2016-08-16 22:24:15 UTC) #39
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/2159403002/200001
4 years, 4 months ago (2016-08-17 01:57:11 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/252470) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 4 months ago (2016-08-17 01:59:43 UTC) #44
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/2159403002/200001
4 years, 4 months ago (2016-08-17 02:04:19 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/113323) linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 4 months ago (2016-08-17 02:07:27 UTC) #48
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/2159403002/220001
4 years, 4 months ago (2016-08-17 06:21:33 UTC) #51
commit-bot: I haz the power
Exceeded global retry quota
4 years, 4 months ago (2016-08-17 08:34:41 UTC) #53
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/2159403002/220001
4 years, 4 months ago (2016-08-17 09:10:24 UTC) #55
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 4 months ago (2016-08-17 09:29:39 UTC) #57
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 09:31:11 UTC) #59
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/261ef60b39f7bf1f3232b4fa595e6c78ff57c048
Cr-Commit-Position: refs/heads/master@{#412483}

Powered by Google App Engine
This is Rietveld 408576698