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

Issue 2134813002: Implement ConstantSourceNode (Closed)

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

Description

Implement ConstantSourceNode Add implementation of ConstantSourceNode, including a factory method and a constructor. This serves as a very useful constant source node, and, because it has an AudioParam, it can be used as a constructible AudioParam. Feature: https://www.chromestatus.com/features/5647701588836352 Intent: https://groups.google.com/a/chromium.org/d/msg/blink-dev/9uoSMZftWfY/GJaqkCUNAAAJ Spec: https://webaudio.github.io/web-audio-api/#ConstantSourceNode BUG=644438 TEST=constant-source-basic.html, constant-source-output.html Committed: https://crrev.com/f61f1e00fc29d3e88ef4e3d7b1c63d5b469d92f2 Cr-Commit-Position: refs/heads/master@{#425184}

Patch Set 1 #

Patch Set 2 : Handle start/stop for automations too. #

Patch Set 3 : Comment out prints for now; add some comments. #

Patch Set 4 : Add simple tests. #

Patch Set 5 : Fix up tests #

Patch Set 6 : Use audio-testing for tests. #

Patch Set 7 : Fix typo #

Patch Set 8 : Rebase and fix idl errors. #

Patch Set 9 : Use correct inheritance for ConstantSourceNode #

Patch Set 10 : Add automation tests. #

Patch Set 11 : Rebase #

Patch Set 12 : Rebase; add use counter #

Patch Set 13 : Rebase #

Patch Set 14 : Rebase #

Patch Set 15 : Update according to latest spec; add tests #

Patch Set 16 : Add test for onended #

Patch Set 17 : Rebase and regenerate test results #

Patch Set 18 : Rebase #

Total comments: 1

Patch Set 19 : Rebase and reformat #

Patch Set 20 : Rebase #

Total comments: 8

Patch Set 21 : Address review comments #

Total comments: 1

Patch Set 22 : Rebase, fix test, remove unused file #

Patch Set 23 : Rebase #

Patch Set 24 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+705 lines, -29 lines) Patch
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +30 lines, -22 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/constant-source-basic.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +88 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/constant-source-onended.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +39 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/constant-source-output.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +181 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/constructor/constantsource.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +74 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules_idl_files.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioNode.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParam.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParam.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/webaudio/ConstantSourceNode.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +66 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/webaudio/ConstantSourceNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +155 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/webaudio/ConstantSourceNode.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +16 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/modules/webaudio/ConstantSourceOptions.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/WindowWebAudio.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 68 (47 generated)
Raymond Toy
PTAL
4 years, 2 months ago (2016-09-30 16:09:58 UTC) #24
Raymond Toy
https://codereview.chromium.org/2134813002/diff/340001/third_party/WebKit/LayoutTests/webaudio/constant-source-onended.html File third_party/WebKit/LayoutTests/webaudio/constant-source-onended.html (right): https://codereview.chromium.org/2134813002/diff/340001/third_party/WebKit/LayoutTests/webaudio/constant-source-onended.html#newcode21 third_party/WebKit/LayoutTests/webaudio/constant-source-onended.html:21: audit.defineTask("onended", function (taskDone) { Maybe we don't want to ...
4 years, 2 months ago (2016-09-30 16:24:30 UTC) #25
Raymond Toy
Ping. Should I get another reviewer?
4 years, 2 months ago (2016-10-05 15:23:31 UTC) #30
hongchan
lgtm lgtm with some nits in layout tests. https://codereview.chromium.org/2134813002/diff/380001/third_party/WebKit/LayoutTests/webaudio/constant-source-onended.html File third_party/WebKit/LayoutTests/webaudio/constant-source-onended.html (right): https://codereview.chromium.org/2134813002/diff/380001/third_party/WebKit/LayoutTests/webaudio/constant-source-onended.html#newcode32 third_party/WebKit/LayoutTests/webaudio/constant-source-onended.html:32: tester.done(); ...
4 years, 2 months ago (2016-10-06 18:10:23 UTC) #33
Raymond Toy
https://codereview.chromium.org/2134813002/diff/380001/third_party/WebKit/LayoutTests/webaudio/constant-source-onended.html File third_party/WebKit/LayoutTests/webaudio/constant-source-onended.html (right): https://codereview.chromium.org/2134813002/diff/380001/third_party/WebKit/LayoutTests/webaudio/constant-source-onended.html#newcode32 third_party/WebKit/LayoutTests/webaudio/constant-source-onended.html:32: tester.done(); On 2016/10/06 18:10:23, hoch wrote: > This and ...
4 years, 2 months ago (2016-10-07 15:24:07 UTC) #34
Raymond Toy
https://codereview.chromium.org/2134813002/diff/380001/third_party/WebKit/LayoutTests/webaudio/constant-source-output.html File third_party/WebKit/LayoutTests/webaudio/constant-source-output.html (right): https://codereview.chromium.org/2134813002/diff/380001/third_party/WebKit/LayoutTests/webaudio/constant-source-output.html#newcode33 third_party/WebKit/LayoutTests/webaudio/constant-source-output.html:33: Should("ConstantSourceNode({offset: 0.5})", actual).beEqualToArray(expected); On 2016/10/06 18:10:23, hoch wrote: > ...
4 years, 2 months ago (2016-10-07 15:49:10 UTC) #35
Raymond Toy
tkent@ PTAL as API owner
4 years, 2 months ago (2016-10-10 15:37:06 UTC) #38
tkent
https://codereview.chromium.org/2134813002/diff/400001/third_party/WebKit/Source/modules/modules.gypi File third_party/WebKit/Source/modules/modules.gypi (right): https://codereview.chromium.org/2134813002/diff/400001/third_party/WebKit/Source/modules/modules.gypi#newcode1 third_party/WebKit/Source/modules/modules.gypi:1: { I guess you added this file by mistake.
4 years, 2 months ago (2016-10-11 13:58:43 UTC) #39
Raymond Toy
On 2016/10/11 13:58:43, tkent wrote: > https://codereview.chromium.org/2134813002/diff/400001/third_party/WebKit/Source/modules/modules.gypi > File third_party/WebKit/Source/modules/modules.gypi (right): > > https://codereview.chromium.org/2134813002/diff/400001/third_party/WebKit/Source/modules/modules.gypi#newcode1 > ...
4 years, 2 months ago (2016-10-11 16:30:13 UTC) #40
tkent
lgtm
4 years, 2 months ago (2016-10-11 22:22:36 UTC) #45
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/2134813002/440001
4 years, 2 months ago (2016-10-12 15:13:24 UTC) #48
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/279314)
4 years, 2 months ago (2016-10-12 15:25:44 UTC) #50
Raymond Toy
isherman@ PTAL at histograms.xml changes.
4 years, 2 months ago (2016-10-12 15:45:00 UTC) #52
Ilya Sherman
histograms.xml lgtm
4 years, 2 months ago (2016-10-13 00:37:38 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/2134813002/440001
4 years, 2 months ago (2016-10-13 14:56:04 UTC) #55
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/280372)
4 years, 2 months ago (2016-10-13 15:05:17 UTC) #57
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/2134813002/460001
4 years, 2 months ago (2016-10-13 15:22:38 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/311154)
4 years, 2 months ago (2016-10-13 19:09:37 UTC) #62
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/2134813002/460001
4 years, 2 months ago (2016-10-13 20:24:57 UTC) #64
commit-bot: I haz the power
Committed patchset #24 (id:460001)
4 years, 2 months ago (2016-10-13 22:14:59 UTC) #66
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 22:16:47 UTC) #68
Message was sent while issue was closed.
Patchset 24 (id:??) landed as
https://crrev.com/f61f1e00fc29d3e88ef4e3d7b1c63d5b469d92f2
Cr-Commit-Position: refs/heads/master@{#425184}

Powered by Google App Engine
This is Rietveld 408576698