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
This change allows us to remove all other virtuals on GrGpu around
managing staging buffers.
Commit-Queue: Greg Daniel <email@example.com>
Reviewed-by: Stephen White <firstname.lastname@example.org>
21 files changed