Index: src/effects/gradients/SkTwoPointConicalGradient.h |
diff --git a/src/effects/gradients/SkTwoPointConicalGradient.h b/src/effects/gradients/SkTwoPointConicalGradient.h |
index 80aa6fa6939ab3559cc9827df3fa5536718f7db0..4c049172d3131fcce3303df03f0f96c9b4305f3b 100644 |
--- a/src/effects/gradients/SkTwoPointConicalGradient.h |
+++ b/src/effects/gradients/SkTwoPointConicalGradient.h |
@@ -25,11 +25,9 @@ |
float fA; |
float fRadius2; |
float fRDR; |
- bool fFlipped; |
void init(const SkPoint& center0, SkScalar rad0, |
- const SkPoint& center1, SkScalar rad1, |
- bool flipped); |
+ const SkPoint& center1, SkScalar rad1); |
static bool DontDrawT(SkFixed t) { |
return kDontDrawT == (uint32_t)t; |
@@ -44,7 +42,7 @@ |
public: |
SkTwoPointConicalGradient(const SkPoint& start, SkScalar startRadius, |
const SkPoint& end, SkScalar endRadius, |
- bool flippedGrad, const Descriptor&); |
+ const Descriptor&); |
virtual SkShader::Context* createContext(const SkBitmap&, const SkPaint&, const SkMatrix&, |
@@ -78,7 +76,6 @@ |
const SkPoint& getStartCenter() const { return fCenter1; } |
const SkPoint& getEndCenter() const { return fCenter2; } |
SkScalar getEndRadius() const { return fRadius2; } |
- bool isFlippedGrad() const { return fFlippedGrad; } |
SK_TO_STRING_OVERRIDE() |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTwoPointConicalGradient) |
@@ -88,11 +85,10 @@ |
virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; |
private: |
- SkPoint fCenter1; |
- SkPoint fCenter2; |
- SkScalar fRadius1; |
- SkScalar fRadius2; |
- bool fFlippedGrad; |
+ const SkPoint fCenter1; |
+ const SkPoint fCenter2; |
+ const SkScalar fRadius1; |
+ const SkScalar fRadius2; |
typedef SkGradientShaderBase INHERITED; |
}; |