Index: src/gpu/GrInOrderDrawBuffer.cpp |
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp |
index 8805711bb9b229f96574366bf5a587956d03817e..a760dcbf6fc4fd147811df36a5dd41ea7918c23e 100644 |
--- a/src/gpu/GrInOrderDrawBuffer.cpp |
+++ b/src/gpu/GrInOrderDrawBuffer.cpp |
@@ -473,8 +473,7 @@ |
// TODO temporary hack |
if (kDrawBatch_Cmd == strip_trace_bit(iter->fType)) { |
- DrawBatch* db = reinterpret_cast<DrawBatch*>(iter.get()); |
- fBatchTarget.flushNext(db->fBatch->numberOfDraws()); |
+ fBatchTarget.flushNext(); |
continue; |
} |
@@ -647,9 +646,7 @@ |
void GrInOrderDrawBuffer::closeBatch() { |
if (fDrawBatch) { |
- fBatchTarget.resetNumberOfDraws(); |
fDrawBatch->execute(this, fPrevState); |
- fDrawBatch->fBatch->setNumberOfDraws(fBatchTarget.numberOfDraws()); |
fDrawBatch = NULL; |
} |
} |