diff options
author | 2017-08-24 15:59:33 -0400 | |
---|---|---|
committer | 2017-08-24 20:18:27 +0000 | |
commit | 500d58b2a6e6fd03239622da42b67b2c9843b7be (patch) | |
tree | dc77637f3bbcc07773c3bdbd292870c59f28e333 /src/gpu/GrOpFlushState.h | |
parent | fb126fa96e0f49f5dc17a9a043acced68be99e93 (diff) |
Make Copy Ops to go through GpuCommandBuffer instead of straigt to GPU.
Bug: skia:
Change-Id: I4eae4507e07278997e26419e94586eef0780c423
Reviewed-on: https://skia-review.googlesource.com/38361
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrOpFlushState.h')
-rw-r--r-- | src/gpu/GrOpFlushState.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrOpFlushState.h b/src/gpu/GrOpFlushState.h index cc1d22b962..a5a5f82c31 100644 --- a/src/gpu/GrOpFlushState.h +++ b/src/gpu/GrOpFlushState.h @@ -15,6 +15,7 @@ class GrGpu; class GrGpuCommandBuffer; +class GrGpuRTCommandBuffer; class GrResourceProvider; /** Tracks the state across all the GrOps (really just the GrDrawOps) in a GrOpList flush. */ @@ -86,6 +87,8 @@ public: void putBackVertexSpace(size_t sizeInBytes) { fVertexPool.putBack(sizeInBytes); } GrGpuCommandBuffer* commandBuffer() { return fCommandBuffer; } + // Helper function used by Ops that are only called via RenderTargetOpLists + GrGpuRTCommandBuffer* rtCommandBuffer(); void setCommandBuffer(GrGpuCommandBuffer* buffer) { fCommandBuffer = buffer; } GrGpu* gpu() { return fGpu; } |