commit | d8b32f76e74dee52d7742500d647a032c6828ed9 | [log] [tgz] |
---|---|---|
author | Hongchan Choi <[email protected]> | Mon Feb 26 22:53:29 2018 |
committer | Commit Bot <[email protected]> | Mon Feb 26 22:53:29 2018 |
tree | f11946f64c624301f39b15d8d0529af50721fa78 | |
parent | 384c9d450f2d0301fbfa138d79dce8bdd5eac6c8 [diff] |
Add currentFrame in AudioWorkletGlobalScope This CL adds |currentFrame| property to AudioWorkletGlobalScope according to: https://github.com/WebAudio/web-audio-api/pull/1493. 1. Previously the time stamp (currentTime) was updated when the first worklet processor gets called, and it was inconsistent with how it is updated in the other nodes. Now updating the frame number is streamlined, so the worklet processor also gets the same treatment. 2. In order to streamline this process, WorkerThread reference was added to BaseAudioContext. Due to the GC rule, BaseAudioContext cannot keep a reference of WorkletGlobalScope, so it always derives the global scope from the worker thread. Bug: 814794 Test: http/tests/webaudio/audio-worklet/timing-info.html Change-Id: I4b313377d80f8678c473cf788211e373fd1644cb Reviewed-on: https://chromium-review.googlesource.com/935157 Commit-Queue: Hongchan Choi <[email protected]> Reviewed-by: Kentaro Hara <[email protected]> Reviewed-by: Raymond Toy <[email protected]> Cr-Commit-Position: refs/heads/master@{#539300}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .