Index: src/effects/gradients/SkLinearGradient.cpp |
diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp |
index 11c79f0956248e0a56f891aacdab56c7f4186847..c8166ba4e15d178b16f221fa8b3f99779e7be102 100644 |
--- a/src/effects/gradients/SkLinearGradient.cpp |
+++ b/src/effects/gradients/SkLinearGradient.cpp |
@@ -470,8 +470,8 @@ public: |
static GrFragmentProcessor* Create(GrContext* ctx, |
const SkLinearGradient& shader, |
const SkMatrix& matrix, |
- SkShader::TileMode tm) { |
- return new GrLinearGradient(ctx, shader, matrix, tm); |
+ SkShader::TileMode tm, GrRenderTarget* dst) { |
+ return new GrLinearGradient(ctx, shader, matrix, tm, dst); |
} |
virtual ~GrLinearGradient() { } |
@@ -482,8 +482,8 @@ private: |
GrLinearGradient(GrContext* ctx, |
const SkLinearGradient& shader, |
const SkMatrix& matrix, |
- SkShader::TileMode tm) |
- : INHERITED(ctx, shader, matrix, tm) { |
+ SkShader::TileMode tm, GrRenderTarget* dst) |
+ : INHERITED(ctx, shader, matrix, tm, dst) { |
this->initClassID<GrLinearGradient>(); |
} |
@@ -518,7 +518,7 @@ const GrFragmentProcessor* GrLinearGradient::TestCreate(GrProcessorTestData* d) |
colors, stops, colorCount, |
tm)); |
const GrFragmentProcessor* fp = shader->asFragmentProcessor(d->fContext, |
- GrTest::TestMatrix(d->fRandom), NULL, kNone_SkFilterQuality); |
+ GrTest::TestMatrix(d->fRandom), NULL, kNone_SkFilterQuality, NULL); |
GrAlwaysAssert(fp); |
return fp; |
} |
@@ -540,7 +540,8 @@ const GrFragmentProcessor* SkLinearGradient::asFragmentProcessor( |
GrContext* context, |
const SkMatrix& viewm, |
const SkMatrix* localMatrix, |
- SkFilterQuality) const { |
+ SkFilterQuality, |
+ GrRenderTarget* dst) const { |
SkASSERT(context); |
SkMatrix matrix; |
@@ -557,11 +558,10 @@ const GrFragmentProcessor* SkLinearGradient::asFragmentProcessor( |
matrix.postConcat(fPtsToUnit); |
SkAutoTUnref<const GrFragmentProcessor> inner( |
- GrLinearGradient::Create(context, *this, matrix, fTileMode)); |
+ GrLinearGradient::Create(context, *this, matrix, fTileMode, dst)); |
return GrFragmentProcessor::MulOutputByInputAlpha(inner); |
} |
- |
#endif |
#ifndef SK_IGNORE_TO_STRING |