commit | ca1156974cbe707fd023a00ae62104528833a44e | [log] [tgz] |
---|---|---|
author | Raymond Toy <rtoy@chromium.org> | Tue Jul 17 01:20:11 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jul 17 01:20:11 2018 |
tree | ec3fbe49b29b6043d3f036675c9df14eca5417f1 | |
parent | 9df3533884d2a5db7731c1af749b1e813dd1d528 [diff] |
Audio thread should not access destination node The AudioDestinationNode is an object managed by Oilpan so the audio thread should not access it. However, the audio thread needs information (currentTime, etc) from the destination node. So instead of accessing the audio destination handler (a scoped_refptr) via the destination node, add a new member to the base audio context that holds onto the destination handler. The destination handler is not an oilpan object and lives at least as long as the base audio context. Bug: 860626, 860522, 863951 Test: Test case from 860522 doesn't crash on asan build Change-Id: I3add844d4eb8fdc7e05b89292938b843a0abbb99 Reviewed-on: https://chromium-review.googlesource.com/1138974 Commit-Queue: Raymond Toy <rtoy@chromium.org> Reviewed-by: Hongchan Choi <hongchan@chromium.org> Cr-Commit-Position: refs/heads/master@{#575509}
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 .