aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/shaders/gradients/SkGradientShaderPriv.h
diff options
context:
space:
mode:
authorGravatar Yuqian Li <liyuqian@google.com>2017-12-21 15:14:01 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-21 21:47:55 +0000
commit9df39b4203871e0996433fb56edfa5b6d890ca3c (patch)
tree335b90fa5118e5da086faaa1c78bdf0de8613e93 /src/shaders/gradients/SkGradientShaderPriv.h
parentdf0bde75d6027cd5f7b6131df9431bff5fc546f0 (diff)
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>
Diffstat (limited to 'src/shaders/gradients/SkGradientShaderPriv.h')
-rw-r--r--src/shaders/gradients/SkGradientShaderPriv.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shaders/gradients/SkGradientShaderPriv.h b/src/shaders/gradients/SkGradientShaderPriv.h
index 28c4666d4c..919b451bd9 100644
--- a/src/shaders/gradients/SkGradientShaderPriv.h
+++ b/src/shaders/gradients/SkGradientShaderPriv.h
@@ -291,7 +291,7 @@ protected:
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 @@ private:
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;
};