Move audioWorklet under BaseAudioContext
Spec PR (approved): https://github.com/WebAudio/web-audio-api/pull/1445 Based on the spec change, this CL moves audioWorklet from `window` to `BaseAudioContext`. This alters the relationship between BaseAudioContext, AudioWorkletMessagingProxy and AudioWorkletGlobalScope: - Now AWMP/AWGS cannot exist without BaseAudioContext, this reduces the code complexity by removing checks. - With this clear ownership, BaseAudioContext only needs to talk to AudioWorklet. AudioWorkletMessagingProxy can be hidden. - When the script evaluation is completed, AWGS will notify the associated BaseAudioContext via AWObjectProxy - AWMessagingProxy. Bug: 786542 Change-Id: I7b55fcacf304a4a25b527bcbcd285bef80881b8d Reviewed-on: https://chromium-review.googlesource.com/779862 Commit-Queue: Hongchan Choi <hongchan@chromium.org> Reviewed-by:Raymond Toy <rtoy@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Reviewed-by:
Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#521078}
Showing
Please register or sign in to comment