Make GrGpuCommandBuffer infer its render target from first draw
authorBrian Salomon <bsalomon@google.com>
Wed, 30 Nov 2016 18:38:32 +0000 (13:38 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 30 Nov 2016 20:17:51 +0000 (20:17 +0000)
commitc293a29bc2fced15ac44a66efa813d42cb3f2e0b
treef1dc394033e8baa97e05a060ca5dc9885224c85c
parentc789b61167dd98efc3c3bfcf9673eef24c2e57f4
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>
15 files changed:
src/gpu/GrGpu.h
src/gpu/GrGpuCommandBuffer.cpp
src/gpu/GrGpuCommandBuffer.h
src/gpu/GrRenderTargetOpList.cpp
src/gpu/batches/GrClearBatch.h
src/gpu/batches/GrClearStencilClipBatch.h
src/gpu/batches/GrDiscardBatch.h
src/gpu/gl/GrGLGpu.cpp
src/gpu/gl/GrGLGpu.h
src/gpu/gl/GrGLGpuCommandBuffer.h
src/gpu/vk/GrVkGpu.cpp
src/gpu/vk/GrVkGpu.h
src/gpu/vk/GrVkGpuCommandBuffer.cpp
src/gpu/vk/GrVkGpuCommandBuffer.h
tools/gpu/GrTest.cpp