commit | ce2f42188182d792fd79b8eca99476b51c7a444a | [log] [tgz] |
---|---|---|
author | Antoine Labour <piman@chromium.org> | Fri Nov 09 02:21:09 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Nov 09 02:21:09 2018 |
tree | 806e190ea8d9fc199bfb0d44127782aa6b2cf552 | |
parent | 7f6f0f6a7cb3b0845cd39f930c17d4c915ed8c9b [diff] |
Fix data race in in-process SharedImageInterface WeakPtrFactory::GetWeakPtr is not thread-safe, but SharedImageInterface is expected to be called from multiple threads (without locks). Instead, grab a single WeakPtr for the GPU thread at construction time. It's more efficient anyway. Bug: 870116 Change-Id: Ie550b788a4569e0ff8ed62a690e21ae52e0a1e0c Reviewed-on: https://chromium-review.googlesource.com/c/1325566 Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org> Commit-Queue: Antoine Labour <piman@chromium.org> Cr-Commit-Position: refs/heads/master@{#606697}
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 .