commit | f0574fc7329d0a5d6f848967dc136b104370e839 | [log] [tgz] |
---|---|---|
author | Bo Liu <boliu@chromium.org> | Fri Mar 22 23:21:21 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Mar 22 23:21:21 2019 |
tree | 53774aa4d51cc8900a4c55a60d9dc530d6a76ecb | |
parent | 8e2b4fd6074f41207ee7c1c9d39c887e79a1013c [diff] |
Make sure gpu client tasks are not nested in webview GPU command buffer code are not reentrant. In webview render thread, the client and service are the same, so running client tasks immediately will cause reentrancy. Instead use the executor to schedule these tasks. In webview, the tasks are queued until the end of ScopedAllowGL to avoid reentrancy. Note InProcessCommandBuffer generally supports multiple client threads so this scheme is only used on webview where this is not a problem. Bug: 944882 Change-Id: If2516f19da2c38010e30c2e4e19a13e10541f646 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1536547 Reviewed-by: Antoine Labour <piman@chromium.org> Commit-Queue: Bo <boliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#643601}
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 .