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

Issue 1911133002: Remove connection from AudioParamHandler to AudioContext. (Closed)

Created:
4 years, 8 months ago by Raymond Toy
Modified:
4 years, 7 months ago
Reviewers:
tkent, hongchan
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

Remove connection from AudioParamHandler to AudioContext. This removes the connection from AudioParamHandler and AudioParamTimeline to AudioContext. This is achieved by having AudioParamHandler and AudioParamTimeline access the AudioDestinationHandler instead of the AudioContext. AudioDestinationHandler has the necessary sampleRate(), currentSampleFrame(), and currentTime() methods that AudioParamHandler and AudioParamTimeline need. BUG=605726 TEST=none Committed: https://crrev.com/f1afe5ba38f00c14f9982c8d0b3afd598865f411 Cr-Commit-Position: refs/heads/master@{#390179}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : Address comments #

Total comments: 3

Patch Set 5 : Rebase and Rename #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -24 lines) Patch
M third_party/WebKit/Source/modules/webaudio/AudioParam.h View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParam.cpp View 1 2 3 4 5 chunks +7 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp View 1 2 3 2 chunks +4 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
Raymond Toy
PTAL at the general approach. I don't think there's any cycle between the AudioDestinationHandler and ...
4 years, 7 months ago (2016-04-25 15:55:53 UTC) #2
Raymond Toy
4 years, 7 months ago (2016-04-25 15:56:08 UTC) #4
hongchan
https://codereview.chromium.org/1911133002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp File third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp (right): https://codereview.chromium.org/1911133002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp#newcode305 third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp:305: float AudioParamTimeline::valueForContextTime(AudioDestinationHandler* context, float defaultValue, bool& hasValue) context => ...
4 years, 7 months ago (2016-04-25 16:58:18 UTC) #5
tkent
https://codereview.chromium.org/1911133002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioParam.h File third_party/WebKit/Source/modules/webaudio/AudioParam.h (right): https://codereview.chromium.org/1911133002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioParam.h#newcode64 third_party/WebKit/Source/modules/webaudio/AudioParam.h:64: AudioDestinationHandler* context() const; Maybe we'd like to rename the ...
4 years, 7 months ago (2016-04-25 23:10:09 UTC) #6
Raymond Toy
On 2016/04/25 23:10:09, tkent wrote: > https://codereview.chromium.org/1911133002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioParam.h > File third_party/WebKit/Source/modules/webaudio/AudioParam.h (right): > > https://codereview.chromium.org/1911133002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioParam.h#newcode64 > ...
4 years, 7 months ago (2016-04-25 23:15:33 UTC) #7
Raymond Toy
https://codereview.chromium.org/1911133002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioParam.h File third_party/WebKit/Source/modules/webaudio/AudioParam.h (right): https://codereview.chromium.org/1911133002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioParam.h#newcode64 third_party/WebKit/Source/modules/webaudio/AudioParam.h:64: AudioDestinationHandler* context() const; On 2016/04/25 23:10:09, tkent wrote: > ...
4 years, 7 months ago (2016-04-26 16:37:42 UTC) #8
hongchan
Nits on renaming. https://codereview.chromium.org/1911133002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParam.cpp File third_party/WebKit/Source/modules/webaudio/AudioParam.cpp (right): https://codereview.chromium.org/1911133002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParam.cpp#newcode40 third_party/WebKit/Source/modules/webaudio/AudioParam.cpp:40: return *m_destination; Perhaps: audioDestination() => destinationHandler(); ...
4 years, 7 months ago (2016-04-26 17:04:01 UTC) #9
tkent
lgtm
4 years, 7 months ago (2016-04-26 22:46:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911133002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911133002/80001
4 years, 7 months ago (2016-04-27 15:20:14 UTC) #12
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/212339)
4 years, 7 months ago (2016-04-27 18:46:18 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911133002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911133002/80001
4 years, 7 months ago (2016-04-27 19:51:42 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-04-27 20:54:02 UTC) #17
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:12:54 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f1afe5ba38f00c14f9982c8d0b3afd598865f411
Cr-Commit-Position: refs/heads/master@{#390179}

Powered by Google App Engine
This is Rietveld 408576698