| commit | db27fc5ed75c7cf69cf3a0c38b0770d73a6e1508 | [log] [tgz] |
|---|---|---|
| author | bsalomon <bsalomon@google.com> | Mon Aug 29 12:43:27 2016 -0700 |
| committer | Commit bot <commit-bot@chromium.org> | Mon Aug 29 12:43:28 2016 -0700 |
| tree | b808612beba4017767f6179a701329e514e03a5a | |
| parent | adbd480102ff0f1d7f85b09e3d87c713f2442dd2 [diff] |
Skip batch iteration in GrDrawTarget::forwardCombine when the max look ahead is 0 TBR=robertphillips@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2288373002 Review-Url: https://codereview.chromium.org/2288373002
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp index 1889b87..dc2fd30 100644 --- a/src/gpu/GrDrawTarget.cpp +++ b/src/gpu/GrDrawTarget.cpp
@@ -571,6 +571,9 @@ } void GrDrawTarget::forwardCombine() { + if (fMaxBatchLookahead <= 0) { + return; + } for (int i = 0; i < fRecordedBatches.count() - 2; ++i) { GrBatch* batch = fRecordedBatches[i].fBatch.get(); const SkRect& batchBounds = fRecordedBatches[i].fClippedBounds;