commit | 6abb9c6ab1f716ed3ff64794ed51fb85b7453c45 | [log] [tgz] |
---|---|---|
author | Kevin Lubick <kjlubick@google.com> | Tue May 30 21:28:22 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue May 30 21:28:22 2023 |
tree | 05560933ca6bf5aeee2187af26cb257c4a70de00 | |
parent | 7293bd484ab2301d04f2fdf83443fc6137e7f952 [diff] |
Migrate calls from SkSurface::flush -> GrDirectContext::flush Presently, SkSurface::flush() defers to the GrDirectContext used to create the surface to send work to the GPU. As part of an effort to decouple SkSurface from the GPU code, we want to explicitly call flush on the GrDirectContext and remove flushing from Surfaces. http://review.skia.org/698237 In migrating these APIs, I tried to track where that context was and use it directly and explicitly. In cases where that was not obvious, I fell back to the existing behavior of "extract GrRecordingContext, cast to GrDirectContext, check if it is non-null (e.g. Raster or Graphite surfaces), and then call flush". In cases where the default flush options were used, the helper skgpu::ganesh::Flush() was used. One peculiarity I found was in skia_output_device_dawn.cc where the surfaces made in that file appear to be Graphite-backed (and thus calling flush is a no-op), but when I removed that flush, tests broke. So, I kept flushing in that spot. Bug: skia:13983 Change-Id: Ifc68815b5da4b1a0d53099d1154440600e59175d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4566404 Reviewed-by: Nate Fischer <ntfschr@chromium.org> Reviewed-by: Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Kevin Lubick <kjlubick@chromium.org> Reviewed-by: Kenneth Russell <kbr@chromium.org> Reviewed-by: ccameron chromium <ccameron@chromium.org> Cr-Commit-Position: refs/heads/main@{#1150871}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.