Debug random 2pt conical shaders

Bug: skia:7436
Change-Id: I5131c7f1208f04e6145c0bc11454ef0c39ce8e2f
Reviewed-on: https://skia-review.googlesource.com/88426
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Yuqian Li <liyuqian@google.com>
diff --git a/src/shaders/gradients/SkGradientShaderPriv.h b/src/shaders/gradients/SkGradientShaderPriv.h
index 28c4666..919b451 100644
--- a/src/shaders/gradients/SkGradientShaderPriv.h
+++ b/src/shaders/gradients/SkGradientShaderPriv.h
@@ -291,7 +291,7 @@
         the gradient factory. (The constructor may decide not to use stops, in which case fStops
         will be nullptr). */
     struct RandomGradientParams {
-        static const int kMaxRandomGradientColors = 5;
+        static constexpr int kMaxRandomGradientColors = 5;
 
         RandomGradientParams(SkRandom* r);
 
@@ -338,6 +338,9 @@
     PremulType            fPremulType; // This is already baked into the table for texture
                                        // gradients, and only changes behavior for gradients
                                        // that don't use a texture.
+
+    friend class DumpHelper; // to access RandomGradientParams
+
     typedef GrFragmentProcessor INHERITED;
 
 };