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

Issue 2807673002: createPeriodicWave parameters are sequence<float> (Closed)

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

Description

createPeriodicWave parameters are sequence<float> Change the parameter types for createPeriodicWave from Float32Array to sequence<float>. this makes createPeriodicWave signal errors if non-finite Fourier coefficients are used and matches what the PeriodicWave constructor behavior. Also periodic-lengths.html was actually generating Infinity for some coefficient values, so the test is updated to correct for that. And the selected waveform is changed from square to sawtooth because the Fourier series for a sawtooth is non-zero everywhere. This fixes the problem where the wave with 8192 coefficients was the same as for 8191. Which has to be true because a square wave only has non-zero coefficients for the odd terms, so the arrays for 8192 and 8191 were the same. With a sawtooth, these are now different. Add new test to verify that we throw errors if non-finite values are used for the Fourier coefficients. BUG=709512 TEST=periodicwave-lengths.html, periodicwave-exceptions.html Review-Url: https://codereview.chromium.org/2807673002 Cr-Commit-Position: refs/heads/master@{#464441} Committed: https://chromium.googlesource.com/chromium/src/+/445c9544f743c5fb1dee4ba1594360bb10366f92

Patch Set 1 #

Patch Set 2 : Rebaseline #

Patch Set 3 : Remove one unneeded create function #

Patch Set 4 : Rebase #

Total comments: 2

Patch Set 5 : Address review comments #

Patch Set 6 : Rebase #

Patch Set 7 : Rebaseline test result #

Patch Set 8 : Update tests and results (no SharedArrayBuffer for createPeriodicWave) #

Patch Set 9 : Rebaseline test #

Messages

Total messages: 36 (19 generated)
Raymond Toy
PTAL. The spec issue is finalized.
3 years, 8 months ago (2017-04-11 15:06:11 UTC) #2
hongchan
lgtm with nit https://codereview.chromium.org/2807673002/diff/60001/third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-exceptions.html File third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-exceptions.html (right): https://codereview.chromium.org/2807673002/diff/60001/third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-exceptions.html#newcode15 third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-exceptions.html:15: audit.define('non-finite values', (task, should) => { ...
3 years, 8 months ago (2017-04-11 17:15:02 UTC) #3
Raymond Toy
https://codereview.chromium.org/2807673002/diff/60001/third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-exceptions.html File third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-exceptions.html (right): https://codereview.chromium.org/2807673002/diff/60001/third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-exceptions.html#newcode15 third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-exceptions.html:15: audit.define('non-finite values', (task, should) => { On 2017/04/11 17:15:02, ...
3 years, 8 months ago (2017-04-11 20:21:15 UTC) #4
Raymond Toy
PTAL as API Owner. We're changing the parameters for createPeriodicWave from Float32Array to sequence<float>. This ...
3 years, 8 months ago (2017-04-11 20:22:59 UTC) #6
tkent
On 2017/04/11 at 20:22:59, rtoy wrote: > PTAL as API Owner. We're changing the parameters ...
3 years, 8 months ago (2017-04-12 13:47:04 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/2807673002/80001
3 years, 8 months ago (2017-04-12 14:39:52 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xcode-clang/builds/78318) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-12 14:42:20 UTC) #12
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/2807673002/100001
3 years, 8 months ago (2017-04-12 15:09:12 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/429140)
3 years, 8 months ago (2017-04-12 17:12:58 UTC) #17
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/2807673002/120001
3 years, 8 months ago (2017-04-12 17:57:20 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/428300)
3 years, 8 months ago (2017-04-12 19:46:44 UTC) #22
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/2807673002/140001
3 years, 8 months ago (2017-04-12 21:36:23 UTC) #25
Raymond Toy
binji: You added some tests for createPeriodicWave for SharedArrayBuffers. In this CL, createPeriodicWave no longer ...
3 years, 8 months ago (2017-04-12 21:48:23 UTC) #28
binji
On 2017/04/12 at 21:48:23, rtoy wrote: > binji: You added some tests for createPeriodicWave for ...
3 years, 8 months ago (2017-04-12 21:58:28 UTC) #29
Raymond Toy
On 2017/04/12 21:58:28, binji wrote: > On 2017/04/12 at 21:48:23, rtoy wrote: > > binji: ...
3 years, 8 months ago (2017-04-12 22:16:31 UTC) #30
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/2807673002/160001
3 years, 8 months ago (2017-04-13 14:46:28 UTC) #33
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 16:47:08 UTC) #36
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/445c9544f743c5fb1dee4ba15943...

Powered by Google App Engine
This is Rietveld 408576698