commit | 5bb31c07fbefa8ec97f1c9e7ebc9e94151738ff5 | [log] [tgz] |
---|---|---|
author | Christopher Cameron <ccameron@chromium.org> | Mon May 20 23:03:11 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon May 20 23:03:11 2019 |
tree | e15f7be6e1932922b43d309323a52496ed620c59 | |
parent | cc9f0ad18271670713b10277b6502e6f4051afaf [diff] |
Add Metal support for gl::ProgressReporter As in OpenGL OOP-Raster, it is possible for the GPU watchdog to be starved (non non-OOP-Raster, it can slide in between any two GL calls, but this isn't an option for OOP-Raster because we call GL directly, not through the out-of-process command buffer). To counter this, gl::init::CreateGrGLInterface conditionally wraps some GL calls that can be longer (things that allocate GPU memory or compile shaders) in a gl::ScopedProgressReporter. We are seeing lots of hangs in Metal for similar-seeming reasons (most but not all of them in shader compilation). Add a wrapper over the Metal protocol to report progress for the potentially-longer calls. Bug: 964476 Change-Id: Ibcc40d8054f4d70ce74e5d5d62d5a4cdb57ab766 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1616994 Reviewed-by: Avi Drissman <avi@chromium.org> Reviewed-by: Eric Karl <ericrk@chromium.org> Commit-Queue: ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#661518}
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 .