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

Issue 2028773002: setValueCurveAtTime has implicit setValueAtTime at end (Closed)

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

Description

setValueCurveAtTime has implicit setValueAtTime at end So that the value curve is always run even if there's a linearRamp or exponentialRamp afterwards, call setValueAtTime to establish an event at the end of the curve which will be used as the starting event for any future event. In this way, the value curve is always run. This also exposed a bug in the implementation of SetValueCurveAtTime where the current time would sometimes get reset to 0 instead of monotonically increasing. WebAudio spec issue: https://github.com/WebAudio/web-audio-api/issues/821 Resolved by https://github.com/WebAudio/web-audio-api/pull/832 BUG=613590 TEST=audioparam-setValueCurve-end.html Committed: https://crrev.com/de853bc3e87d40c16d82ddedc2688b95d50be435 Cr-Commit-Position: refs/heads/master@{#399788}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 11

Patch Set 5 : Rebase and expand comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/webaudio/audioparam-setValueCurve-end.html View 1 2 3 1 chunk +159 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/audioparam-setValueCurve-end-expected.txt View 1 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-setValueCurve-exceptions-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp View 1 2 3 4 3 chunks +19 lines, -1 line 0 comments Download

Messages

Total messages: 24 (8 generated)
Raymond Toy
PTAL.
4 years, 6 months ago (2016-06-01 21:26:14 UTC) #2
Raymond Toy
On 2016/06/01 21:26:14, Raymond Toy wrote: > PTAL. Ping.
4 years, 6 months ago (2016-06-03 15:20:51 UTC) #3
hongchan
Sorry for the late response. https://codereview.chromium.org/2028773002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp File third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp (right): https://codereview.chromium.org/2028773002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp#newcode202 third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp:202: insertEvent(ParamEvent::createSetValueEvent(curve->data()[curve->length() - 1], time ...
4 years, 6 months ago (2016-06-03 17:15:47 UTC) #4
Raymond Toy
https://codereview.chromium.org/2028773002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp File third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp (right): https://codereview.chromium.org/2028773002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp#newcode202 third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp:202: insertEvent(ParamEvent::createSetValueEvent(curve->data()[curve->length() - 1], time + duration), exceptionState); On 2016/06/03 ...
4 years, 6 months ago (2016-06-03 17:34:26 UTC) #5
hongchan
https://codereview.chromium.org/2028773002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp File third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp (right): https://codereview.chromium.org/2028773002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp#newcode202 third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp:202: insertEvent(ParamEvent::createSetValueEvent(curve->data()[curve->length() - 1], time + duration), exceptionState); On 2016/06/03 ...
4 years, 6 months ago (2016-06-03 17:39:30 UTC) #6
Raymond Toy
On 2016/06/03 17:39:30, hoch wrote: > https://codereview.chromium.org/2028773002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp > File third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp (right): > > https://codereview.chromium.org/2028773002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp#newcode202 > ...
4 years, 6 months ago (2016-06-03 18:04:15 UTC) #7
hongchan
On 2016/06/03 18:04:15, Raymond Toy wrote: > On 2016/06/03 17:39:30, hoch wrote: > > > ...
4 years, 6 months ago (2016-06-03 18:20:08 UTC) #8
Raymond Toy
Anything else I need to do?
4 years, 6 months ago (2016-06-09 16:23:27 UTC) #9
hongchan
lgtm with nits. https://codereview.chromium.org/2028773002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp File third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp (right): https://codereview.chromium.org/2028773002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp#newcode416 third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp:416: // computed, and we move on ...
4 years, 6 months ago (2016-06-09 16:26:09 UTC) #10
Raymond Toy
https://codereview.chromium.org/2028773002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp File third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp (right): https://codereview.chromium.org/2028773002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp#newcode416 third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp:416: // computed, and we move on to the next ...
4 years, 6 months ago (2016-06-13 16:36:49 UTC) #12
hongchan
lgtm
4 years, 6 months ago (2016-06-13 16:48:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2028773002/80001
4 years, 6 months ago (2016-06-13 16:57:05 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/238036)
4 years, 6 months ago (2016-06-13 22:34:07 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2028773002/80001
4 years, 6 months ago (2016-06-14 16:12:42 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-14 21:45:40 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-06-14 21:48:11 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/de853bc3e87d40c16d82ddedc2688b95d50be435
Cr-Commit-Position: refs/heads/master@{#399788}

Powered by Google App Engine
This is Rietveld 408576698