diff options
author | Greg Daniel <egdaniel@google.com> | 2016-10-18 11:48:51 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-10-19 16:06:12 +0000 |
commit | 77b53f66bacd9a1d1c9df7d879a419b2abe069ba (patch) | |
tree | b2b0c9efdb14ec09f42575aab1512e2988464698 /src/gpu/GrGpuCommandBuffer.h | |
parent | 560285d93ae62d88c359a664b7935530ad74e9a8 (diff) |
Support inline uploads in Vulkan
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3586
Change-Id: I5913c336aa33851d6d2e80d9638df2efa8ac0400
Reviewed-on: https://skia-review.googlesource.com/3586
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrGpuCommandBuffer.h')
-rw-r--r-- | src/gpu/GrGpuCommandBuffer.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/gpu/GrGpuCommandBuffer.h b/src/gpu/GrGpuCommandBuffer.h index 841d311e96..ef4f428c9c 100644 --- a/src/gpu/GrGpuCommandBuffer.h +++ b/src/gpu/GrGpuCommandBuffer.h @@ -9,7 +9,9 @@ #define GrGpuCommandBuffer_DEFINED #include "GrColor.h" +#include "batches/GrDrawBatch.h" +class GrBatchFlushState; class GrFixedClip; class GrGpu; class GrMesh; @@ -64,17 +66,20 @@ public: int meshCount, const SkRect& bounds); + // Performs an upload of vertex data in the middle of a set of a set of draws + virtual void inlineUpload(GrBatchFlushState* state, GrDrawBatch::DeferredUploadFn& upload) = 0; + /** - * Clear the passed in render target. Ignores the draw state and clip. - */ + * Clear the passed in render target. Ignores the draw state and clip. + */ void clear(const GrFixedClip&, GrColor); void clearStencilClip(const GrFixedClip&, bool insideStencilMask); /** - * Discards the contents render target. nullptr indicates that the current render target should - * be discarded. - **/ + * Discards the contents render target. nullptr indicates that the current render target should + * be discarded. + */ // TODO: This should be removed in the future to favor using the load and store ops for discard virtual void discard() = 0; |