skia2/dm
Greg Daniel a58db7f87e Add GrStagingBufferManager and use GrGpuBuffers to manage caching.
With this change if a backend Gr*Gpu wants to using staging buffers
they just add a generic GrStagingBufferManager member object. This
object can be used to get slices of upload buffers. Then they just need
to implement the virtual for taking ownership of buffers during submit.

We rely on our GrResourceCache to handle caching and reuse of these
buffers.

This change allows us to remove all other virtuals on GrGpu around
managing staging buffers.

Change-Id: I5db9a3c52133978ea89d6c0de440f434fbf91a51
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/300226
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Stephen White <senorblanco@google.com>
2020-07-15 14:17:50 +00:00
..
DM.cpp Make GM::onGpuSetup take a GrDirectContext 2020-07-01 19:25:55 +00:00
DMGpuTestProcs.cpp Add GrStagingBufferManager and use GrGpuBuffers to manage caching. 2020-07-15 14:17:50 +00:00
DMJsonWriter.cpp Remove all global mutexes 2019-06-18 00:39:15 +00:00
DMJsonWriter.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
DMSrcSink.cpp Update DDL test harness to use GrDirectContexts 2020-07-08 12:33:27 +00:00
DMSrcSink.h Make GM::onGpuSetup take a GrDirectContext 2020-07-01 19:25:55 +00:00