aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLGpuCommandBuffer.h
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2016-10-18 11:48:51 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-10-19 16:06:12 +0000
commit77b53f66bacd9a1d1c9df7d879a419b2abe069ba (patch)
treeb2b0c9efdb14ec09f42575aab1512e2988464698 /src/gpu/gl/GrGLGpuCommandBuffer.h
parent560285d93ae62d88c359a664b7935530ad74e9a8 (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/gl/GrGLGpuCommandBuffer.h')
-rw-r--r--src/gpu/gl/GrGLGpuCommandBuffer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLGpuCommandBuffer.h b/src/gpu/gl/GrGLGpuCommandBuffer.h
index 65ad543d49..069eea5f58 100644
--- a/src/gpu/gl/GrGLGpuCommandBuffer.h
+++ b/src/gpu/gl/GrGLGpuCommandBuffer.h
@@ -10,6 +10,7 @@
#include "GrGpuCommandBuffer.h"
+#include "GrBatchFlushState.h"
#include "GrGLGpu.h"
class GrGLRenderTarget;
@@ -29,6 +30,10 @@ public:
void discard() override {}
+ void inlineUpload(GrBatchFlushState* state, GrDrawBatch::DeferredUploadFn& upload) override {
+ state->doUpload(upload);
+ }
+
private:
GrGpu* gpu() override { return fGpu; }
GrRenderTarget* renderTarget() override { return fRenderTarget; }