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

Issue 1533103002: Implement cancelValuesAndHoldAtTime (Closed)

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

Description

Implement cancelValuesAndHoldAtTime cancelValuesAndHoldAtTime(time) should cancel all events after time |time| and when the context current time reaches |time|, the automation value that is current at that time is held as if setValueAtTime were called with the appropriate value and time. Spec: https://webaudio.github.io/web-audio-api/#widl-AudioParam-cancelAndHoldAtTime-AudioParam-double-cancelTime Intent: https://groups.google.com/a/chromium.org/d/msg/blink-dev/IftXib6yFyw/CLoxngG9BgAJ BUG=432934 TEST=audioparam-cancel-scheduled-values.html Review-Url: https://codereview.chromium.org/1533103002 Cr-Commit-Position: refs/heads/master@{#442916} Committed: https://chromium.googlesource.com/chromium/src/+/4260025dd80eed380e0c1fff0e4be2bdd0ae0e8a

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : More tests #

Patch Set 7 : Rebase; tests fail #

Patch Set 8 : Fix code to pass tests. #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Patch Set 11 : Rebase #

Patch Set 12 : Rebase #

Patch Set 13 : Rebase #

Patch Set 14 : Rebase and use std::move() #

Patch Set 15 : Rebase, one test still fails #

Patch Set 16 : Rebase #

Patch Set 17 : Fix whitespace issues #

Patch Set 18 : Put scripts in correct order. #

Patch Set 19 : Rebase #

Patch Set 20 : Update test to audit.js #

Patch Set 21 : Remove expected results file #

Patch Set 22 : Rebase #

Patch Set 23 : Rebase test expectations #

Patch Set 24 : Indent #

Patch Set 25 : Cleanup #

Patch Set 26 : Move tests to directory; rebase #

Total comments: 4

Patch Set 27 : Address review comments #

Total comments: 23

Patch Set 28 : Address review comments #

Patch Set 29 : Rebase and adjust threshold #

Patch Set 30 : Regenerate expected result #

Patch Set 31 : Rebase #

Patch Set 32 : Fix test #

Patch Set 33 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1233 lines, -128 lines) Patch
M third_party/WebKit/LayoutTests/platform/linux/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 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/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 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -0 lines 0 comments Download
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 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-cancel-and-hold.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +516 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 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -0 lines 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 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 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParam.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.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 24 25 26 27 28 29 30 31 32 4 chunks +147 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.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 24 25 26 27 28 29 30 31 32 26 chunks +555 lines, -101 lines 0 comments Download

Messages

Total messages: 49 (31 generated)
Raymond Toy
PTAL
4 years ago (2016-12-20 16:31:06 UTC) #16
hongchan
The first pass - few superficial feedback. I started looking at the logic for the ...
4 years ago (2016-12-20 19:48:59 UTC) #19
Raymond Toy
https://codereview.chromium.org/1533103002/diff/500001/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-cancel-and-hold.html File third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-cancel-and-hold.html (right): https://codereview.chromium.org/1533103002/diff/500001/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-cancel-and-hold.html#newcode1 third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-cancel-and-hold.html:1: <!doctype html> On 2016/12/20 19:48:59, hongchan wrote: > Can ...
4 years ago (2016-12-20 22:40:10 UTC) #20
hongchan
The second pass: I focused on the style and the convention. https://codereview.chromium.org/1533103002/diff/520001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp File third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp (right): ...
4 years ago (2016-12-22 18:41:37 UTC) #21
Raymond Toy
If you're not going to finish reviewing this by today, I'd hold off because it's ...
4 years ago (2016-12-22 19:06:23 UTC) #22
Raymond Toy
I guess I should have mentioned that a lot of the changes are because I ...
4 years ago (2016-12-22 19:08:47 UTC) #23
blink-reviews
Thanks. I was wondering why unique_ptr was introduced. On Thu, Dec 22, 2016 at 11:08 ...
4 years ago (2016-12-22 19:10:17 UTC) #24
chromium-reviews
Thanks. I was wondering why unique_ptr was introduced. On Thu, Dec 22, 2016 at 11:08 ...
4 years ago (2016-12-22 19:10:18 UTC) #25
Raymond Toy
https://codereview.chromium.org/1533103002/diff/520001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp File third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp (right): https://codereview.chromium.org/1533103002/diff/520001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp#newcode253 third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp:253: DCHECK(getType() == ParamEvent::CancelValues); On 2016/12/22 18:41:36, hongchan wrote: > ...
4 years ago (2016-12-22 19:21:35 UTC) #26
hongchan
lgtm This is a new feature, so I believe the only possible (sane) way to ...
3 years, 11 months ago (2017-01-03 17:52:42 UTC) #27
Raymond Toy
foolip: PTAL as API Owner
3 years, 11 months ago (2017-01-03 21:28:14 UTC) #29
Raymond Toy
The linux test failure is a flaky test. It is being tracked in crbug.com/678069 and ...
3 years, 11 months ago (2017-01-03 21:29:20 UTC) #30
Raymond Toy
Friendly ping.
3 years, 11 months ago (2017-01-09 19:20:38 UTC) #35
Raymond Toy
tkent: PTAL as API Owner
3 years, 11 months ago (2017-01-10 16:19:23 UTC) #37
tkent
lgtm
3 years, 11 months ago (2017-01-10 23:32:56 UTC) #40
foolip
lgtm, I'm slow and sorry.
3 years, 11 months ago (2017-01-11 13:45:09 UTC) #43
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/1533103002/640001
3 years, 11 months ago (2017-01-11 16:03:16 UTC) #46
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 16:10:06 UTC) #49
Message was sent while issue was closed.
Committed patchset #33 (id:640001) as
https://chromium.googlesource.com/chromium/src/+/4260025dd80eed380e0c1fff0e4b...

Powered by Google App Engine
This is Rietveld 408576698