Index: src/effects/gradients/SkLinearGradient.h |
diff --git a/src/effects/gradients/SkLinearGradient.h b/src/effects/gradients/SkLinearGradient.h |
index c8b91a5537762e017997cf24cb9324ab1af7d7cd..c81eea6d4a52fae50e0dfbfb3d2e140aa52d7efa 100644 |
--- a/src/effects/gradients/SkLinearGradient.h |
+++ b/src/effects/gradients/SkLinearGradient.h |
@@ -26,6 +26,11 @@ struct Sk4fStorage { |
class SkLinearGradient : public SkGradientShaderBase { |
public: |
+ enum { |
+ // Temp flag for testing the 4f impl. |
+ kForce4fContext_PrivateFlag = 1 << 7, |
+ }; |
+ |
SkLinearGradient(const SkPoint pts[2], const Descriptor&); |
size_t contextSize() const override; |
@@ -69,6 +74,8 @@ protected: |
Context* onCreateContext(const ContextRec&, void* storage) const override; |
private: |
+ class LinearGradient4fContext; |
+ |
friend class SkGradientShader; |
typedef SkGradientShaderBase INHERITED; |
const SkPoint fStart; |