Lines Matching refs:fDAG
107 bool used = std::any_of(fDAG.begin(), fDAG.end(), [&](auto& task) { in flush()
156 fFlushingRenderTaskIDs.reserve_back(fDAG.count()); in flush()
157 for (const auto& task : fDAG) { in flush()
204 SkDEBUGCODE(SkDebugf("Normal renderTasks (%d):\n", fDAG.count())); in flush()
205 for (const auto& task : fDAG) { in flush()
212 for (const auto& task : fDAG) { in flush()
260 SkDebugf("Flushing %d opsTasks\n", fDAG.count()); in executeRenderTasks()
261 for (int i = 0; i < fDAG.count(); ++i) { in executeRenderTasks()
262 if (fDAG[i]) { in executeRenderTasks()
264 label.printf("task %d/%d", i, fDAG.count()); in executeRenderTasks()
265 fDAG[i]->dump(label, {}, true, true); in executeRenderTasks()
272 for (const auto& renderTask : fDAG) { in executeRenderTasks()
309 for (const auto& renderTask : fDAG) { in executeRenderTasks()
336 for (const auto& task : fDAG) { in removeRenderTasks()
346 fDAG.reset(); in removeRenderTasks()
355 if (!GrTTopoSort<GrRenderTask, GrRenderTask::TopoSortTraits>(&fDAG)) { in sortTasks()
363 if (!fDAG.empty()) { in sortTasks()
364 GrOpsTask* prevOpsTask = fDAG[0]->asOpsTask(); in sortTasks()
365 for (int i = 1; i < fDAG.count(); ++i) { in sortTasks()
366 GrOpsTask* curOpsTask = fDAG[i]->asOpsTask(); in sortTasks()
395 bool clustered = GrClusterRenderTasks(SkMakeSpan(fDAG), &llist); in reorderTasks()
412 reorder_array_by_llist(llist, &fDAG); in reorderTasks()
415 for (int i = 0; i < fDAG.count(); i++) { in reorderTasks()
416 sk_sp<GrRenderTask>& task = fDAG[i]; in reorderTasks()
418 size_t remaining = fDAG.size() - i - 1; in reorderTasks()
419 SkSpan<sk_sp<GrRenderTask>> nextTasks{fDAG.end() - remaining, remaining}; in reorderTasks()
426 fDAG[newCount++] = std::move(task); in reorderTasks()
428 fDAG.resize_back(newCount); in reorderTasks()
434 for (auto& task : fDAG) { in closeAllTasks()
442 SkASSERT(!fDAG.empty()); in insertTaskBeforeLast()
450 fDAG.emplace_back(fDAG.back().release()); in insertTaskBeforeLast()
451 return (fDAG[fDAG.count() - 2] = std::move(task)).get(); in insertTaskBeforeLast()
458 return fDAG.push_back(std::move(task)).get(); in appendTask()
577 fDAG.swap(ddl->fRenderTasks); in moveRenderTasksToDDL()
578 SkASSERT(fDAG.empty()); in moveRenderTasksToDDL()
648 SkASSERT(!fDAG.empty()); in validate()
650 SkASSERT(fActiveOpsTask == fDAG.back().get()); in validate()
653 for (int i = 0; i < fDAG.count(); ++i) { in validate()
654 if (fActiveOpsTask != fDAG[i].get()) { in validate()
658 fActiveOpsTask && fActiveOpsTask->fTextureResolveTask == fDAG[i].get(); in validate()
659 SkASSERT(isActiveResolveTask || fDAG[i]->isClosed()); in validate()
663 if (!fDAG.empty() && !fDAG.back()->isClosed()) { in validate()
664 SkASSERT(fActiveOpsTask == fDAG.back().get()); in validate()