commit | 2b64c2dba2ed0743c08b4c08e729f32661f5a9b1 | [log] [tgz] |
---|---|---|
author | Sunny Sachanandani <sunnyps@chromium.org> | Fri Nov 30 00:29:04 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Nov 30 00:29:04 2018 |
tree | 2f55a5a145e00e41ee0771e76e4eb83dd2a785ab | |
parent | adb34adefcbd7343284ad3500b624197efeb6600 [diff] |
GPU scheduler thread safety fixes Two fixes: 1) Create a weak ptr on main thread before use to prevent data race on calling GetWeakPtr() from multiple threads. 2) Ensure sync token release callback is called on main thread so that the weak ptr is not dereferenced on another thread. Sync tokens aren't released on any other thread today, but that might change with ChromeOS image decode accelerator work, and using WaitNonThreadSafe() will not post a task if on the same thread anyway. Bug: 908669 Change-Id: I0bd9e0d56fe94c750513bc792e9e632bb83b30b9 Reviewed-on: https://chromium-review.googlesource.com/c/1352858 Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org> Reviewed-by: Antoine Labour <piman@chromium.org> Cr-Commit-Position: refs/heads/master@{#612471}
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 .