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

Issue 773273002: Update the current frame count in a safe place (Closed)

Created:
6 years ago by Raymond Toy
Modified:
6 years ago
CC:
blink-reviews
Project:
blink
Visibility:
Public.

Description

Update the current frame count in a safe place The main thread needs access to the current sample frame to determine the sample time. Instead of accessing it directly when the audio thread is possibly updating it, the main thread will get a cached value that is updated outside of when the audio thread actively processing the graph. No tests for this because the webaudio layout tests may not have real audio hardware to run a real online realtime audio context. Manually ran the test from the bug report and the test passes. BUG=431874 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186544

Patch Set 1 #

Total comments: 4

Patch Set 2 : Update names according to review #

Patch Set 3 : Modify test to allow 1 block delay. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -3 lines) Patch
M LayoutTests/webaudio/scriptprocessornode.html View 1 2 1 chunk +11 lines, -2 lines 0 comments Download
M Source/modules/webaudio/AudioContext.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M Source/modules/webaudio/AudioContext.cpp View 1 2 4 chunks +12 lines, -0 lines 0 comments Download
M Source/modules/webaudio/ScriptProcessorNode.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (6 generated)
Raymond Toy
PTAL.
6 years ago (2014-12-03 18:11:02 UTC) #2
hongchan
lgtm It is just a practice for me but - LGTM with one suggestion. https://codereview.chromium.org/773273002/diff/1/Source/modules/webaudio/AudioContext.h ...
6 years ago (2014-12-03 18:50:47 UTC) #3
Raymond Toy
https://codereview.chromium.org/773273002/diff/1/Source/modules/webaudio/AudioContext.h File Source/modules/webaudio/AudioContext.h (right): https://codereview.chromium.org/773273002/diff/1/Source/modules/webaudio/AudioContext.h#newcode114 Source/modules/webaudio/AudioContext.h:114: size_t sampleFrame() const; On 2014/12/03 18:50:47, hoch wrote: > ...
6 years ago (2014-12-03 19:04:44 UTC) #4
hongchan
https://codereview.chromium.org/773273002/diff/1/Source/modules/webaudio/AudioContext.h File Source/modules/webaudio/AudioContext.h (right): https://codereview.chromium.org/773273002/diff/1/Source/modules/webaudio/AudioContext.h#newcode114 Source/modules/webaudio/AudioContext.h:114: size_t sampleFrame() const; On 2014/12/03 19:04:44, Raymond Toy wrote: ...
6 years ago (2014-12-03 19:13:29 UTC) #5
Raymond Toy
https://codereview.chromium.org/773273002/diff/1/Source/modules/webaudio/AudioContext.h File Source/modules/webaudio/AudioContext.h (right): https://codereview.chromium.org/773273002/diff/1/Source/modules/webaudio/AudioContext.h#newcode114 Source/modules/webaudio/AudioContext.h:114: size_t sampleFrame() const; On 2014/12/03 19:13:29, hoch wrote: > ...
6 years ago (2014-12-03 19:34:21 UTC) #6
Raymond Toy
I think there's one more issue. The context has a currentTime attribute. This is derived ...
6 years ago (2014-12-03 19:42:12 UTC) #7
hongchan
On 2014/12/03 19:42:12, Raymond Toy wrote: > I think there's one more issue. The context ...
6 years ago (2014-12-03 22:24:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/773273002/20001
6 years ago (2014-12-04 16:49:12 UTC) #10
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years ago (2014-12-04 16:49:15 UTC) #12
Ken Russell (switch to Gerrit)
lgtm
6 years ago (2014-12-04 18:33:47 UTC) #13
Raymond Toy
On 2014/12/04 18:33:47, Ken Russell wrote: > lgtm Thanks!
6 years ago (2014-12-04 18:53:03 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/773273002/20001
6 years ago (2014-12-04 18:53:30 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/36955)
6 years ago (2014-12-04 19:47:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/773273002/40001
6 years ago (2014-12-04 21:04:39 UTC) #20
commit-bot: I haz the power
6 years ago (2014-12-04 22:13:32 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186544

Powered by Google App Engine
This is Rietveld 408576698