Index: src/gpu/batches/GrClearBatch.h |
diff --git a/src/gpu/batches/GrClearBatch.h b/src/gpu/batches/GrClearBatch.h |
index ba4b6d6daeabe94baa4ca052a3247026de9d0094..f2249cedb2f126c1dfc3df1f16cc4b3ec9201bb3 100644 |
--- a/src/gpu/batches/GrClearBatch.h |
+++ b/src/gpu/batches/GrClearBatch.h |
@@ -11,6 +11,7 @@ |
#include "GrBatch.h" |
#include "GrBatchFlushState.h" |
#include "GrGpu.h" |
+#include "GrGpuCommandBuffer.h" |
#include "GrRenderTarget.h" |
class GrClearBatch final : public GrBatch { |
@@ -59,7 +60,7 @@ private: |
void onPrepare(GrBatchFlushState*) override {} |
void onDraw(GrBatchFlushState* state) override { |
- state->gpu()->clear(fRect, fColor, fRenderTarget.get()); |
+ state->commandBuffer()->clear(fRect, fColor, fRenderTarget.get()); |
} |
SkIRect fRect; |
@@ -100,7 +101,7 @@ private: |
void onPrepare(GrBatchFlushState*) override {} |
void onDraw(GrBatchFlushState* state) override { |
- state->gpu()->clearStencilClip(fRect, fInsideClip, fRenderTarget.get()); |
+ state->commandBuffer()->clearStencilClip(fRect, fInsideClip, fRenderTarget.get()); |
} |
SkIRect fRect; |