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

Issue 2391893005: Implement clamping of AudioParam time. (Closed)

Created:
4 years, 2 months ago by Raymond Toy
Modified:
4 years, 1 month ago
Reviewers:
hongchan
CC:
chromium-reviews, blink-reviews, haraken, hongchan
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement clamping of AudioParam time. The specified time when creating an AudioParam is clamped to the currentTime. Because of the thread hop, the clamping needs to be done on the audio thread, not the main thread, which is always behind the audio thread. BUG=622082 TEST=audioparam-clamp-time-to-current-time.html Committed: https://crrev.com/abc380c92e7b096672618c9cbad28dadf46f1df5 Cr-Commit-Position: refs/heads/master@{#431335}

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase and fix typo in comment. #

Total comments: 12

Patch Set 5 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -7 lines) Patch
A third_party/WebKit/LayoutTests/webaudio/audioparam-clamp-time-to-current-time.html View 1 2 3 4 1 chunk +237 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp View 1 2 3 4 4 chunks +32 lines, -7 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
Raymond Toy
PTAL
4 years, 2 months ago (2016-10-05 15:20:06 UTC) #2
hongchan
Mostly nits. Might be worth naming things with 'time' to clarify we are clamping the ...
4 years, 2 months ago (2016-10-18 17:34:59 UTC) #7
Raymond Toy
https://codereview.chromium.org/2391893005/diff/60001/third_party/WebKit/LayoutTests/webaudio/audioparam-clamp-time-to-current-time.html File third_party/WebKit/LayoutTests/webaudio/audioparam-clamp-time-to-current-time.html (right): https://codereview.chromium.org/2391893005/diff/60001/third_party/WebKit/LayoutTests/webaudio/audioparam-clamp-time-to-current-time.html#newcode32 third_party/WebKit/LayoutTests/webaudio/audioparam-clamp-time-to-current-time.html:32: success = Should("Output[0-" + (suspendFrame - 1) + "]", ...
4 years, 2 months ago (2016-10-18 20:33:18 UTC) #9
Raymond Toy
Perhaps this should wait a bit. The current spec says clamping only happens for a ...
4 years, 2 months ago (2016-10-18 20:34:15 UTC) #10
Raymond Toy
On 2016/10/18 at 20:34:15, Raymond Toy wrote: > Perhaps this should wait a bit. The ...
4 years, 1 month ago (2016-10-31 15:31:23 UTC) #11
hongchan
LGTM, but we decided to wait for the official WG decision for the clamping.
4 years, 1 month ago (2016-10-31 20:44:21 UTC) #12
Raymond Toy
On 2016/10/31 20:44:21, hongchan wrote: > LGTM, but we decided to wait for the official ...
4 years, 1 month ago (2016-11-10 18:37:40 UTC) #13
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/2391893005/80001
4 years, 1 month ago (2016-11-10 18:38:23 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-10 20:14:33 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 20:35:51 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/abc380c92e7b096672618c9cbad28dadf46f1df5
Cr-Commit-Position: refs/heads/master@{#431335}

Powered by Google App Engine
This is Rietveld 408576698