Guard gencode dumpInfo() calls with GR_TEST_UTILS, instead of SK_DEBUG.

Change-Id: I8d2688b804e18a3a1a440fc1d2fa1631816f3f1b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/309667
Reviewed-by: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
diff --git a/src/sksl/SkSLCPPCodeGenerator.cpp b/src/sksl/SkSLCPPCodeGenerator.cpp
index 8b7fc72..e3e66ca 100644
--- a/src/sksl/SkSLCPPCodeGenerator.cpp
+++ b/src/sksl/SkSLCPPCodeGenerator.cpp
@@ -1139,7 +1139,7 @@
 }
 
 void CPPCodeGenerator::writeDumpInfo() {
-    this->writef("#ifdef SK_DEBUG\n"
+    this->writef("#if GR_TEST_UTILS\n"
                  "SkString %s::dumpInfo() const {\n", fFullName.c_str());
 
     if (!this->writeSection(kDumpInfoSection)) {