Index: src/effects/gradients/SkGradientShaderPriv.h |
diff --git a/src/effects/gradients/SkGradientShaderPriv.h b/src/effects/gradients/SkGradientShaderPriv.h |
index e01609462b6ea22038f24562a8d982383a03c362..d2a9d1758894bb343f32045885490d5fe8d50b1e 100644 |
--- a/src/effects/gradients/SkGradientShaderPriv.h |
+++ b/src/effects/gradients/SkGradientShaderPriv.h |
@@ -205,6 +205,10 @@ protected: |
void commonAsAGradient(GradientInfo*) const; |
+ // 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 |