| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "GrBatchTarget.h" | 8 #include "GrBatchTarget.h" |
| 9 | 9 |
| 10 #include "GrBufferAllocPool.h" | |
| 11 #include "GrPipeline.h" | 10 #include "GrPipeline.h" |
| 12 | 11 |
| 13 /* | 12 /* |
| 14 void GrBatchTarget::flush() { | 13 void GrBatchTarget::flush() { |
| 15 FlushBuffer::Iter iter(fFlushBuffer); | 14 FlushBuffer::Iter iter(fFlushBuffer); |
| 16 fVertexPool->unmap(); | 15 fVertexPool->unmap(); |
| 17 fIndexPool->unmap(); | 16 fIndexPool->unmap(); |
| 18 | 17 |
| 19 while (iter.next()) { | 18 while (iter.next()) { |
| 20 GrProgramDesc desc; | 19 GrProgramDesc desc; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 40 const GrPipeline* pipeline = bf->fPipeline; | 39 const GrPipeline* pipeline = bf->fPipeline; |
| 41 const GrPrimitiveProcessor* primProc = bf->fPrimitiveProcessor.get(); | 40 const GrPrimitiveProcessor* primProc = bf->fPrimitiveProcessor.get(); |
| 42 fGpu->buildProgramDesc(&desc, *primProc, *pipeline, bf->fBatchTracker); | 41 fGpu->buildProgramDesc(&desc, *primProc, *pipeline, bf->fBatchTracker); |
| 43 | 42 |
| 44 GrGpu::DrawArgs args(primProc, pipeline, &desc, &bf->fBatchTracker); | 43 GrGpu::DrawArgs args(primProc, pipeline, &desc, &bf->fBatchTracker); |
| 45 for (int i = 0; i < bf->fDraws.count(); i++) { | 44 for (int i = 0; i < bf->fDraws.count(); i++) { |
| 46 fGpu->draw(args, bf->fDraws[i]); | 45 fGpu->draw(args, bf->fDraws[i]); |
| 47 } | 46 } |
| 48 } | 47 } |
| 49 }*/ | 48 }*/ |
| OLD | NEW |