Index: src/effects/gradients/SkRadialGradient.cpp |
diff --git a/src/effects/gradients/SkRadialGradient.cpp b/src/effects/gradients/SkRadialGradient.cpp |
index a9cdb2a91296971a198d2b894ee8d8e3dfbba935..b70c7656de9d8894efff0158a46c2e8583777e4a 100644 |
--- a/src/effects/gradients/SkRadialGradient.cpp |
+++ b/src/effects/gradients/SkRadialGradient.cpp |
@@ -442,8 +442,8 @@ public: |
static GrFragmentProcessor* Create(GrContext* ctx, |
const SkRadialGradient& shader, |
const SkMatrix& matrix, |
- SkShader::TileMode tm) { |
- return new GrRadialGradient(ctx, shader, matrix, tm); |
+ SkShader::TileMode tm, GrRenderTarget* dst) { |
+ return new GrRadialGradient(ctx, shader, matrix, tm, dst); |
} |
virtual ~GrRadialGradient() { } |
@@ -454,8 +454,8 @@ private: |
GrRadialGradient(GrContext* ctx, |
const SkRadialGradient& 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<GrRadialGradient>(); |
} |
@@ -490,7 +490,7 @@ const GrFragmentProcessor* GrRadialGradient::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; |
} |
@@ -513,7 +513,8 @@ const GrFragmentProcessor* SkRadialGradient::asFragmentProcessor( |
GrContext* context, |
const SkMatrix& viewM, |
const SkMatrix* localMatrix, |
- SkFilterQuality) const { |
+ SkFilterQuality, |
+ GrRenderTarget* dst) const { |
SkASSERT(context); |
SkMatrix matrix; |
@@ -529,7 +530,7 @@ const GrFragmentProcessor* SkRadialGradient::asFragmentProcessor( |
} |
matrix.postConcat(fPtsToUnit); |
SkAutoTUnref<const GrFragmentProcessor> inner( |
- GrRadialGradient::Create(context, *this, matrix, fTileMode)); |
+ GrRadialGradient::Create(context, *this, matrix, fTileMode, dst)); |
return GrFragmentProcessor::MulOutputByInputAlpha(inner); |
} |