Index: src/effects/gradients/SkLinearGradient.cpp |
diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp |
index 6457630f6c2943b0d3b38f7632964b65505d30f3..7b20b2deef0dc33cb7379b534ce53b92c4dd8d57 100644 |
--- a/src/effects/gradients/SkLinearGradient.cpp |
+++ b/src/effects/gradients/SkLinearGradient.cpp |
@@ -543,9 +543,10 @@ GrFragmentProcessor* GrLinearGradient::TestCreate(SkRandom* random, |
SkPaint paint; |
GrColor paintColor; |
GrFragmentProcessor* fp; |
+ GrPaint grPaint; |
SkAssertResult(shader->asFragmentProcessor(context, paint, |
GrTest::TestMatrix(random), NULL, |
- &paintColor, &fp)); |
+ &paintColor, grPaint.getShaderDataManager(), &fp)); |
return fp; |
} |
@@ -568,7 +569,8 @@ void GrGLLinearGradient::emitCode(GrGLFPBuilder* builder, |
bool SkLinearGradient::asFragmentProcessor(GrContext* context, const SkPaint& paint, |
const SkMatrix& viewm, const SkMatrix* localMatrix, |
- GrColor* paintColor, GrFragmentProcessor** fp) const { |
+ GrColor* paintColor, GrShaderDataManager*, |
+ GrFragmentProcessor** fp) const { |
SkASSERT(context); |
SkMatrix matrix; |
@@ -593,7 +595,7 @@ bool SkLinearGradient::asFragmentProcessor(GrContext* context, const SkPaint& pa |
#else |
bool SkLinearGradient::asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix&, |
- const SkMatrix*, GrColor*, |
+ const SkMatrix*, GrColor*, GrShaderDataManager*, |
GrFragmentProcessor**) const { |
SkDEBUGFAIL("Should not call in GPU-less build"); |
return false; |