diff options
author | 2016-11-30 15:08:13 -0500 | |
---|---|---|
committer | 2016-11-30 20:57:04 +0000 | |
commit | 5c1c8d15f5f077b3fbec647139b3df31b74a4d95 (patch) | |
tree | 732dc08f34563702d809ac38eace2835ddc854dd /src/gpu/GrRenderTargetOpList.cpp | |
parent | bf49d61fce3dc3829626762e1ffa3c4a70b7db32 (diff) |
Remove batch bounds drawing debug option
Change-Id: I6b8ffc81a1255974f8acd1dfc47cfd406fd4b0bf
Reviewed-on: https://skia-review.googlesource.com/5335
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetOpList.cpp')
-rw-r--r-- | src/gpu/GrRenderTargetOpList.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/gpu/GrRenderTargetOpList.cpp b/src/gpu/GrRenderTargetOpList.cpp index b69d915f06..40c543d361 100644 --- a/src/gpu/GrRenderTargetOpList.cpp +++ b/src/gpu/GrRenderTargetOpList.cpp @@ -58,7 +58,6 @@ GrRenderTargetOpList::GrRenderTargetOpList(GrRenderTargetProxy* rtp, GrGpu* gpu, fContext = fGpu->getContext(); fClipBatchToBounds = options.fClipBatchToBounds; - fDrawBatchBounds = options.fDrawBatchBounds; fMaxBatchLookback = (options.fMaxBatchLookback < 0) ? kDefaultMaxBatchLookback : options.fMaxBatchLookback; fMaxBatchLookahead = (options.fMaxBatchLookahead < 0) ? kDefaultMaxBatchLookahead : @@ -209,16 +208,6 @@ bool GrRenderTargetOpList::drawBatches(GrBatchFlushState* flushState) { } flushState->setCommandBuffer(commandBuffer.get()); } - if (fDrawBatchBounds) { - const SkRect& bounds = fRecordedBatches[i].fClippedBounds; - SkIRect ibounds; - bounds.roundOut(&ibounds); - // In multi-draw buffer all the batches use the same render target and we won't need to - // get the batchs bounds. - if (GrRenderTarget* rt = fRecordedBatches[i].fBatch->renderTarget()) { - fGpu->drawDebugWireRect(rt, ibounds, 0xFF000000 | random.nextU()); - } - } fRecordedBatches[i].fBatch->draw(flushState, fRecordedBatches[i].fClippedBounds); } if (commandBuffer) { |