Index: src/animator/SkDrawGradient.cpp |
diff --git a/src/animator/SkDrawGradient.cpp b/src/animator/SkDrawGradient.cpp |
index 1b158f23c108a273c4bbe505b345a70d85af1361..c11559581b919c84e6eff35e831cb5b495d97ba9 100644 |
--- a/src/animator/SkDrawGradient.cpp |
+++ b/src/animator/SkDrawGradient.cpp |
@@ -175,9 +175,9 @@ SkShader* SkDrawLinearGradient::getShader() { |
if (addPrelude() == 0 || points.count() != 4) |
return NULL; |
SkShader* shader = SkGradientShader::CreateLinear((SkPoint*)points.begin(), |
- fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, fUnitMapper); |
+ fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, |
+ fUnitMapper, 0, getMatrix()); |
SkAutoTDelete<SkShader> autoDel(shader); |
- addPostlude(shader); |
(void)autoDel.detach(); |
return shader; |
} |
@@ -210,9 +210,9 @@ SkShader* SkDrawRadialGradient::getShader() { |
if (addPrelude() == 0) |
return NULL; |
SkShader* shader = SkGradientShader::CreateRadial(center, |
- radius, fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, fUnitMapper); |
+ radius, fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, |
+ fUnitMapper, 0, getMatrix()); |
SkAutoTDelete<SkShader> autoDel(shader); |
- addPostlude(shader); |
(void)autoDel.detach(); |
return shader; |
} |