Index: src/effects/gradients/SkSweepGradient.cpp |
diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp |
index 6e91e2ba257c229fdda83f7fb2f9d1b2eacd3b1c..bcb2b0dc9e0d9681eb5d05d3b42fa1f073d7c9fc 100644 |
--- a/src/effects/gradients/SkSweepGradient.cpp |
+++ b/src/effects/gradients/SkSweepGradient.cpp |
@@ -260,7 +260,9 @@ GrFragmentProcessor* GrSweepGradient::TestCreate(SkRandom* random, |
SkPaint paint; |
GrFragmentProcessor* fp; |
GrColor paintColor; |
- SkAssertResult(shader->asFragmentProcessor(context, paint, NULL, &paintColor, &fp)); |
+ SkAssertResult(shader->asFragmentProcessor(context, paint, |
+ GrProcessorUnitTest::TestMatrix(random), NULL, |
+ &paintColor, &fp)); |
return fp; |
} |
@@ -293,6 +295,7 @@ void GrGLSweepGradient::emitCode(GrGLFPBuilder* builder, |
///////////////////////////////////////////////////////////////////// |
bool SkSweepGradient::asFragmentProcessor(GrContext* context, const SkPaint& paint, |
+ const SkMatrix& viewM, |
const SkMatrix* localMatrix, GrColor* paintColor, |
GrFragmentProcessor** effect) const { |
@@ -317,7 +320,8 @@ bool SkSweepGradient::asFragmentProcessor(GrContext* context, const SkPaint& pai |
#else |
-bool SkSweepGradient::asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix*, GrColor*, |
+bool SkSweepGradient::asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix&, |
+ const SkMatrix*, GrColor*, |
GrFragmentProcessor**) const { |
SkDEBUGFAIL("Should not call in GPU-less build"); |
return false; |