diff options
author | 2015-02-02 18:12:39 -0800 | |
---|---|---|
committer | 2015-02-02 18:12:39 -0800 | |
commit | cb3f50468dcd6e838628b425828b8f4386a48109 (patch) | |
tree | 9f9928828694c157f0f0f04f868ee59f71e59e50 /src/gpu/GrBatchTarget.cpp | |
parent | 4c08f16b252a55e438a61f26e5581394ed177da1 (diff) |
Revert of Hairline batch (patchset #16 id:300001 of https://codereview.chromium.org/876673002/)
Reason for revert:
Regression
Original issue's description:
> Hairline batch
>
> BUG=skia:
>
> Committed: https://skia.googlesource.com/skia/+/6eff8701f027016fbb3147412ec2292dcec2b7f5
TBR=bsalomon@google.com,joshualitt@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/894273002
Diffstat (limited to 'src/gpu/GrBatchTarget.cpp')
-rw-r--r-- | src/gpu/GrBatchTarget.cpp | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/src/gpu/GrBatchTarget.cpp b/src/gpu/GrBatchTarget.cpp index 1b68923472..6a3135310a 100644 --- a/src/gpu/GrBatchTarget.cpp +++ b/src/gpu/GrBatchTarget.cpp @@ -32,20 +32,17 @@ void GrBatchTarget::flush() { fFlushBuffer.reset(); }*/ -void GrBatchTarget::flushNext(int n) { - for (; n > 0; n--) { - SkDEBUGCODE(bool verify =) fIter.next(); - SkASSERT(verify); - GrProgramDesc desc; - BufferedFlush* bf = fIter.get(); - const GrPipeline* pipeline = bf->fPipeline; - const GrPrimitiveProcessor* primProc = bf->fPrimitiveProcessor.get(); - fGpu->buildProgramDesc(&desc, *primProc, *pipeline, pipeline->descInfo(), - bf->fBatchTracker); +void GrBatchTarget::flushNext() { + fIter.next(); + GrProgramDesc desc; + BufferedFlush* bf = fIter.get(); + const GrPipeline* pipeline = bf->fPipeline; + const GrPrimitiveProcessor* primProc = bf->fPrimitiveProcessor.get(); + fGpu->buildProgramDesc(&desc, *primProc, *pipeline, pipeline->descInfo(), + bf->fBatchTracker); - GrGpu::DrawArgs args(primProc, pipeline, &desc, &bf->fBatchTracker); - for (int i = 0; i < bf->fDraws.count(); i++) { - fGpu->draw(args, bf->fDraws[i]); - } + GrGpu::DrawArgs args(primProc, pipeline, &desc, &bf->fBatchTracker); + for (int i = 0; i < bf->fDraws.count(); i++) { + fGpu->draw(args, bf->fDraws[i]); } } |