Index: src/effects/gradients/SkLinearGradient.cpp |
diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp |
index 9de459125a7639dd85404df19e1c55dea4f1679f..4f85da39d378b260bfd883fa0749e9a6f53599c5 100644 |
--- a/src/effects/gradients/SkLinearGradient.cpp |
+++ b/src/effects/gradients/SkLinearGradient.cpp |
@@ -52,11 +52,11 @@ static void pts_to_unit_matrix(const SkPoint pts[2], SkMatrix* matrix) { |
/////////////////////////////////////////////////////////////////////////////// |
-SkLinearGradient::SkLinearGradient(const SkPoint pts[2], const Descriptor& desc, |
- const SkMatrix* localMatrix) |
- : SkGradientShaderBase(desc, localMatrix) |
+SkLinearGradient::SkLinearGradient(const SkPoint pts[2], const Descriptor& desc) |
+ : SkGradientShaderBase(desc) |
, fStart(pts[0]) |
- , fEnd(pts[1]) { |
+ , fEnd(pts[1]) |
+{ |
pts_to_unit_matrix(pts, &fPtsToUnit); |
} |