Index: src/effects/gradients/SkLinearGradient.cpp |
diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp |
index 1da8c7a31199ae1bb186761a1d98370105b31c41..4e7a6c729d5c014b89b319a45624f1040266c041 100644 |
--- a/src/effects/gradients/SkLinearGradient.cpp |
+++ b/src/effects/gradients/SkLinearGradient.cpp |
@@ -539,7 +539,9 @@ GrFragmentProcessor* GrLinearGradient::TestCreate(SkRandom* random, |
SkPaint paint; |
GrColor paintColor; |
GrFragmentProcessor* fp; |
- SkAssertResult(shader->asFragmentProcessor(context, paint, NULL, &paintColor, &fp)); |
+ SkAssertResult(shader->asFragmentProcessor(context, paint, |
+ GrProcessorUnitTest::TestMatrix(random), NULL, |
+ &paintColor, &fp)); |
return fp; |
} |
@@ -561,8 +563,8 @@ void GrGLLinearGradient::emitCode(GrGLFPBuilder* builder, |
///////////////////////////////////////////////////////////////////// |
bool SkLinearGradient::asFragmentProcessor(GrContext* context, const SkPaint& paint, |
- const SkMatrix* localMatrix, GrColor* paintColor, |
- GrFragmentProcessor** fp) const { |
+ const SkMatrix& viewm, const SkMatrix* localMatrix, |
+ GrColor* paintColor, GrFragmentProcessor** fp) const { |
SkASSERT(context); |
SkMatrix matrix; |
@@ -586,7 +588,8 @@ bool SkLinearGradient::asFragmentProcessor(GrContext* context, const SkPaint& pa |
#else |
-bool SkLinearGradient::asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix*, GrColor*, |
+bool SkLinearGradient::asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix&, |
+ const SkMatrix*, GrColor*, |
GrFragmentProcessor**) const { |
SkDEBUGFAIL("Should not call in GPU-less build"); |
return false; |