diff options
Diffstat (limited to 'effects/gradients/SkGradientShaderPriv.h')
-rw-r--r-- | effects/gradients/SkGradientShaderPriv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/effects/gradients/SkGradientShaderPriv.h b/effects/gradients/SkGradientShaderPriv.h index 1d0f0089..f4f53dee 100644 --- a/effects/gradients/SkGradientShaderPriv.h +++ b/effects/gradients/SkGradientShaderPriv.h @@ -205,6 +205,11 @@ protected: void commonAsAGradient(GradientInfo*) const; + // V23_COMPATIBILITY_CODE + // Used for 2-pt conical gradients since we sort start/end cirlces by radius + // Assumes space has already been allocated for fOrigColors + void flipGradientColors(); + private: enum { kColorStorageCount = 4, // more than this many colors, and we'll use sk_malloc for the space |