Index: src/effects/gradients/SkGradientShaderPriv.h |
diff --git a/src/effects/gradients/SkGradientShaderPriv.h b/src/effects/gradients/SkGradientShaderPriv.h |
index d792c420b80c25f85d72bc05e72ce53625b87937..31cc9f26171c6184b4535004ea1388d2de024bc4 100644 |
--- a/src/effects/gradients/SkGradientShaderPriv.h |
+++ b/src/effects/gradients/SkGradientShaderPriv.h |
@@ -93,6 +93,7 @@ public: |
int fCount; |
SkShader::TileMode fTileMode; |
SkUnitMapper* fMapper; |
+ uint32_t fFlags; |
}; |
public: |
@@ -141,6 +142,7 @@ protected: |
int fColorCount; |
uint8_t fDstToIndexClass; |
uint8_t fFlags; |
+ uint8_t fGradFlags; |
struct Rec { |
SkFixed fPos; // 0...1 |
@@ -172,7 +174,7 @@ private: |
static void Build16bitCache(uint16_t[], SkColor c0, SkColor c1, int count); |
static void Build32bitCache(SkPMColor[], SkColor c0, SkColor c1, int count, |
- U8CPU alpha); |
+ U8CPU alpha, uint32_t gradFlags); |
void setCacheAlpha(U8CPU alpha) const; |
void initCommon(); |