diff options
author | Greg Daniel <egdaniel@google.com> | 2017-03-21 16:56:31 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-22 18:23:41 +0000 |
commit | dbd11ec106e3726b09bf5d240c9fcbf6a671a570 (patch) | |
tree | 19395b94004bbbbc80d65e1fe5fe31d25ed5474e /src/gpu/GrGpuCommandBuffer.h | |
parent | e3060ba87c87bb2f96469389d0ace7b82f85749e (diff) |
Init Command buffer on inlineUploads in Vulkan
When the first thing we do in a GrGpuCommandBuffer is do an inlineUpload,
we need to make sure we've initialized the command buffer in Vulkan.
BUG=skia:
Change-Id: Iabee770864a61697c55fb1df18b31862d8df3cdc
Reviewed-on: https://skia-review.googlesource.com/9970
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrGpuCommandBuffer.h')
-rw-r--r-- | src/gpu/GrGpuCommandBuffer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrGpuCommandBuffer.h b/src/gpu/GrGpuCommandBuffer.h index 332b0e54cd..23a300c2f4 100644 --- a/src/gpu/GrGpuCommandBuffer.h +++ b/src/gpu/GrGpuCommandBuffer.h @@ -73,7 +73,8 @@ public: const SkRect& bounds); // Performs an upload of vertex data in the middle of a set of a set of draws - virtual void inlineUpload(GrOpFlushState* state, GrDrawOp::DeferredUploadFn& upload) = 0; + virtual void inlineUpload(GrOpFlushState* state, GrDrawOp::DeferredUploadFn& upload, + GrRenderTarget* rt) = 0; /** * Clear the passed in render target. Ignores the draw state and clip. |