Add GrDDLTask::dump method

Change-Id: I763db23e200a359b8eae3514c9cd244f358ea3c2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/350605
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrDDLTask.cpp b/src/gpu/GrDDLTask.cpp
index e83993f..a6be087 100644
--- a/src/gpu/GrDDLTask.cpp
+++ b/src/gpu/GrDDLTask.cpp
@@ -20,7 +20,7 @@
         , fOffset(offset) {
     (void) fOffset;  // fOffset will be used shortly
 
-    for (const sk_sp<GrRenderTask>& task : fDDL->priv().renderTasks()) {
+    for (auto& task : fDDL->priv().renderTasks()) {
         SkASSERT(task->isClosed());
 
         for (int i = 0; i < task->numTargets(); ++i) {
@@ -104,3 +104,13 @@
 
     return anyCommandsIssued;
 }
+
+#if GR_TEST_UTILS
+void GrDDLTask::dump(bool printDependencies) const {
+    INHERITED::dump(printDependencies);
+
+    for (auto& task : fDDL->priv().renderTasks()) {
+        task->dump(printDependencies);
+    }
+}
+#endif