Lines Matching refs:targetBatch
522 DrawBatch* targetBatch = nullptr; in addDrawOp() local
547 targetBatch = getResult->second; in addDrawOp()
548 if (!((MergingDrawBatch*) targetBatch)->canMergeWith(op, state)) { in addDrawOp()
549 targetBatch = nullptr; in addDrawOp()
554 targetBatch = (DrawBatch*)mBatchLookup[deferInfo.batchId]; in addDrawOp()
557 if (targetBatch || deferInfo.mergeable) { in addDrawOp()
563 if (overBatch == targetBatch) break; in addDrawOp()
568 if (!targetBatch) break; // found insert position, quit in addDrawOp()
575 targetBatch = nullptr; in addDrawOp()
578 targetBatch, i); in addDrawOp()
587 if (!targetBatch) { in addDrawOp()
589 targetBatch = new MergingDrawBatch(deferInfo, in addDrawOp()
592 std::make_pair(deferInfo.mergeId, targetBatch)); in addDrawOp()
594 targetBatch = new DrawBatch(deferInfo); in addDrawOp()
595 mBatchLookup[deferInfo.batchId] = targetBatch; in addDrawOp()
600 targetBatch, deferInfo.batchId, insertBatchIndex); in addDrawOp()
601 mBatches.insert(mBatches.begin() + insertBatchIndex, targetBatch); in addDrawOp()
604 targetBatch->add(op, state, deferInfo.opaqueOverBounds); in addDrawOp()