Index: src/effects/gradients/SkLinearGradient.cpp |
diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp |
index e0f216c220fad8bd74c6a53dcf3e7c92e629ebfc..4bc697d9047c425889a6900307d4b5014a9122e5 100644 |
--- a/src/effects/gradients/SkLinearGradient.cpp |
+++ b/src/effects/gradients/SkLinearGradient.cpp |
@@ -62,13 +62,8 @@ static void pts_to_unit_matrix(const SkPoint pts[2], SkMatrix* matrix) { |
/////////////////////////////////////////////////////////////////////////////// |
-SkLinearGradient::SkLinearGradient(const SkPoint pts[2], |
- const SkColor colors[], |
- const SkScalar pos[], |
- int colorCount, |
- SkShader::TileMode mode, |
- SkUnitMapper* mapper) |
- : SkGradientShaderBase(colors, pos, colorCount, mode, mapper) |
+SkLinearGradient::SkLinearGradient(const SkPoint pts[2], const Descriptor& desc) |
+ : SkGradientShaderBase(desc) |
, fStart(pts[0]) |
, fEnd(pts[1]) { |
pts_to_unit_matrix(pts, &fPtsToUnit); |