| Index: src/gpu/GrBatchTarget.cpp
|
| diff --git a/src/gpu/GrBatchTarget.cpp b/src/gpu/GrBatchTarget.cpp
|
| index d5d8d8f28508a386f9e35e4df85fbea5e7a801a9..7a2d14e923fb610e8d37ccfe831b5dc02a317a3c 100644
|
| --- a/src/gpu/GrBatchTarget.cpp
|
| +++ b/src/gpu/GrBatchTarget.cpp
|
| @@ -30,17 +30,20 @@ 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, 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, 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]);
|
| + }
|
| }
|
| -}
|
| +}*/
|
|
|