Fix debug code in GrDrawingManager
Looks like this code got a little dusty.
Change-Id: Iac0f475abac9d0891e34bba59ddbde3ec63d065a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/328176
Auto-Submit: Adlai Holler <adlai@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrDrawingManager.cpp b/src/gpu/GrDrawingManager.cpp
index 823f941..fea1c1e 100644
--- a/src/gpu/GrDrawingManager.cpp
+++ b/src/gpu/GrDrawingManager.cpp
@@ -289,13 +289,13 @@
#if 0
// Enable this to print out verbose GrOp information
- SkDEBUGCODE(SkDebugf("onFlush renderTasks:"));
+ SkDEBUGCODE(SkDebugf("onFlush renderTasks (%d):\n", fOnFlushRenderTasks.count()));
for (const auto& onFlushRenderTask : fOnFlushRenderTasks) {
- SkDEBUGCODE(onFlushRenderTask->dump();)
+ SkDEBUGCODE(onFlushRenderTask->dump(/* printDependencies */ true);)
}
- SkDEBUGCODE(SkDebugf("Normal renderTasks:"));
- for (int i = 0; i < fRenderTasks.count(); ++i) {
- SkDEBUGCODE(fRenderTasks[i]->dump();)
+ SkDEBUGCODE(SkDebugf("Normal renderTasks (%d):\n", fDAG.numRenderTasks()));
+ for (int i = 0; i < fDAG.numRenderTasks(); ++i) {
+ SkDEBUGCODE(fDAG.renderTask(i)->dump(/* printDependencies */ true);)
}
#endif