aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpu.h
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2017-08-24 15:59:33 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-24 20:18:27 +0000
commit500d58b2a6e6fd03239622da42b67b2c9843b7be (patch)
treedc77637f3bbcc07773c3bdbd292870c59f28e333 /src/gpu/GrGpu.h
parentfb126fa96e0f49f5dc17a9a043acced68be99e93 (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/GrGpu.h')
-rw-r--r--src/gpu/GrGpu.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index cc55a05722..8f11249463 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -366,15 +366,16 @@ public:
return fMultisampleSpecs[uniqueID];
}
- // Creates a GrGpuCommandBuffer in which the GrOpList can send draw commands to instead of
- // directly to the Gpu object. This currently does not take a GrRenderTarget. The command buffer
- // is expected to infer the render target from the first draw, clear, or discard. This is an
- // awkward workaround that goes away after MDB is complete and the render target is known from
- // the GrRenderTargetOpList.
- virtual GrGpuCommandBuffer* createCommandBuffer(
+ // Creates a GrGpuRTCommandBuffer which GrOpLists send draw commands to instead of directly
+ // to the Gpu object.
+ virtual GrGpuRTCommandBuffer* createCommandBuffer(
GrRenderTarget*, GrSurfaceOrigin,
- const GrGpuCommandBuffer::LoadAndStoreInfo&,
- const GrGpuCommandBuffer::StencilLoadAndStoreInfo&) = 0;
+ const GrGpuRTCommandBuffer::LoadAndStoreInfo&,
+ const GrGpuRTCommandBuffer::StencilLoadAndStoreInfo&) = 0;
+
+ // Creates a GrGpuTextureCommandBuffer which GrOpLists send texture commands to instead of
+ // directly to the Gpu object.
+ virtual GrGpuTextureCommandBuffer* createCommandBuffer(GrTexture*, GrSurfaceOrigin) = 0;
// Called by GrDrawingManager when flushing.
// Provides a hook for post-flush actions (e.g. Vulkan command buffer submits). This will also