diff options
author | 2016-11-30 13:38:32 -0500 | |
---|---|---|
committer | 2016-11-30 20:17:51 +0000 | |
commit | c293a29bc2fced15ac44a66efa813d42cb3f2e0b (patch) | |
tree | f1dc394033e8baa97e05a060ca5dc9885224c85c /src/gpu/batches/GrClearBatch.h | |
parent | c789b61167dd98efc3c3bfcf9673eef24c2e57f4 (diff) |
Make GrGpuCommandBuffer infer its render target from first draw
This is a temporary workaround to allow removal of GrBatch::renderTarget().
Change-Id: Ic14710a369802064cf6446e8191a98ea3595556d
Reviewed-on: https://skia-review.googlesource.com/5342
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/batches/GrClearBatch.h')
-rw-r--r-- | src/gpu/batches/GrClearBatch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/batches/GrClearBatch.h b/src/gpu/batches/GrClearBatch.h index ef38e74af8..724981e658 100644 --- a/src/gpu/batches/GrClearBatch.h +++ b/src/gpu/batches/GrClearBatch.h @@ -100,7 +100,7 @@ private: void onPrepare(GrBatchFlushState*) override {} void onDraw(GrBatchFlushState* state, const SkRect& /*bounds*/) override { - state->commandBuffer()->clear(fClip, fColor); + state->commandBuffer()->clear(fRenderTarget.get(), fClip, fColor); } GrFixedClip fClip; |