Lines Matching refs:targetBatch
545 DrawBatch* targetBatch = NULL; in addDrawOp() local
566 if (mMergingBatches[deferInfo.batchId].get(deferInfo.mergeId, targetBatch)) { in addDrawOp()
567 if (!((MergingDrawBatch*) targetBatch)->canMergeWith(op, state)) { in addDrawOp()
568 targetBatch = NULL; in addDrawOp()
573 targetBatch = (DrawBatch*)mBatchLookup[deferInfo.batchId]; in addDrawOp()
576 if (targetBatch || deferInfo.mergeable) { in addDrawOp()
582 if (overBatch == targetBatch) break; in addDrawOp()
587 if (!targetBatch) break; // found insert position, quit in addDrawOp()
594 targetBatch = NULL; in addDrawOp()
597 targetBatch, i); in addDrawOp()
606 if (!targetBatch) { in addDrawOp()
608 targetBatch = new MergingDrawBatch(deferInfo, in addDrawOp()
610 mMergingBatches[deferInfo.batchId].put(deferInfo.mergeId, targetBatch); in addDrawOp()
612 targetBatch = new DrawBatch(deferInfo); in addDrawOp()
613 mBatchLookup[deferInfo.batchId] = targetBatch; in addDrawOp()
618 targetBatch, deferInfo.batchId, insertBatchIndex); in addDrawOp()
619 mBatches.insertAt(targetBatch, insertBatchIndex); in addDrawOp()
622 targetBatch->add(op, state, deferInfo.opaqueOverBounds); in addDrawOp()