Index: src/effects/gradients/SkGradientShaderPriv.h |
diff --git a/src/effects/gradients/SkGradientShaderPriv.h b/src/effects/gradients/SkGradientShaderPriv.h |
index 003191d39781e7beb86a304c741d1f70aeebfca0..86f63f95297b540f5079ae40d9b3399e16eafa57 100644 |
--- a/src/effects/gradients/SkGradientShaderPriv.h |
+++ b/src/effects/gradients/SkGradientShaderPriv.h |
@@ -259,8 +259,13 @@ private: |
kStorageSize = kColorStorageCount * (sizeof(SkColor) + sizeof(SkScalar) + sizeof(Rec)) |
}; |
SkColor fStorage[(kStorageSize + 3) >> 2]; |
+public: |
SkColor* fOrigColors; // original colors, before modulation by paint in context. |
SkScalar* fOrigPos; // original positions |
+ |
+ bool colorsAreOpaque() const { return fColorsAreOpaque; } |
+ |
+private: |
bool fColorsAreOpaque; |
GradientShaderCache* refCache(U8CPU alpha, bool dither) const; |