Index: src/effects/gradients/SkTwoPointConicalGradient.cpp |
diff --git a/src/effects/gradients/SkTwoPointConicalGradient.cpp b/src/effects/gradients/SkTwoPointConicalGradient.cpp |
index 2fc848e10962a86a4bd7dbd2a7644b9308306f4a..94751a89c63a30c3cf8373ecc2af307557075879 100644 |
--- a/src/effects/gradients/SkTwoPointConicalGradient.cpp |
+++ b/src/effects/gradients/SkTwoPointConicalGradient.cpp |
@@ -186,18 +186,13 @@ static void twopoint_mirror(TwoPtRadialContext* rec, SkPMColor* SK_RESTRICT dstC |
} |
} |
-void SkTwoPointConicalGradient::init() { |
- fRec.init(fCenter1, fRadius1, fCenter2, fRadius2, fFlippedGrad); |
- fPtsToUnit.reset(); |
-} |
- |
///////////////////////////////////////////////////////////////////// |
SkTwoPointConicalGradient::SkTwoPointConicalGradient( |
const SkPoint& start, SkScalar startRadius, |
const SkPoint& end, SkScalar endRadius, |
bool flippedGrad, const Descriptor& desc) |
- : SkGradientShaderBase(desc) |
+ : SkGradientShaderBase(desc, SkMatrix::I()) |
, fCenter1(start) |
, fCenter2(end) |
, fRadius1(startRadius) |
@@ -206,7 +201,7 @@ SkTwoPointConicalGradient::SkTwoPointConicalGradient( |
{ |
// this is degenerate, and should be caught by our caller |
SkASSERT(fCenter1 != fCenter2 || fRadius1 != fRadius2); |
- this->init(); |
+ fRec.init(fCenter1, fRadius1, fCenter2, fRadius2, fFlippedGrad); |
} |
bool SkTwoPointConicalGradient::isOpaque() const { |