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