| Index: src/effects/gradients/SkSweepGradient.cpp
|
| diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp
|
| index 172c7d152ab1bf3b6600a94ae35647ecd7198157..98a308dfc7a2bfbc84e1ea57d3207d1dc2890d24 100644
|
| --- a/src/effects/gradients/SkSweepGradient.cpp
|
| +++ b/src/effects/gradients/SkSweepGradient.cpp
|
| @@ -192,9 +192,9 @@ private:
|
|
|
| class GrSweepGradient : public GrGradientEffect {
|
| public:
|
| - static GrFragmentProcessor* Create(GrContext* ctx, const SkSweepGradient& shader,
|
| - const SkMatrix& m) {
|
| - return new GrSweepGradient(ctx, shader, m);
|
| + static GrFragmentProcessor* Create(GrContext* ctx,
|
| + const SkSweepGradient& shader, const SkMatrix& m, GrRenderTarget* dst) {
|
| + return new GrSweepGradient(ctx, shader, m, dst);
|
| }
|
| virtual ~GrSweepGradient() { }
|
|
|
| @@ -203,8 +203,8 @@ public:
|
| private:
|
| GrSweepGradient(GrContext* ctx,
|
| const SkSweepGradient& shader,
|
| - const SkMatrix& matrix)
|
| - : INHERITED(ctx, shader, matrix, SkShader::kClamp_TileMode) {
|
| + const SkMatrix& matrix, GrRenderTarget* dst)
|
| + : INHERITED(ctx, shader, matrix, SkShader::kClamp_TileMode, dst) {
|
| this->initClassID<GrSweepGradient>();
|
| }
|
|
|
| @@ -238,7 +238,8 @@ const GrFragmentProcessor* GrSweepGradient::TestCreate(GrProcessorTestData* d) {
|
| colors, stops, colorCount));
|
| const GrFragmentProcessor* fp = shader->asFragmentProcessor(d->fContext,
|
| GrTest::TestMatrix(d->fRandom),
|
| - NULL, kNone_SkFilterQuality);
|
| + NULL, kNone_SkFilterQuality,
|
| + NULL);
|
| GrAlwaysAssert(fp);
|
| return fp;
|
| }
|
| @@ -271,7 +272,8 @@ const GrFragmentProcessor* SkSweepGradient::asFragmentProcessor(
|
| GrContext* context,
|
| const SkMatrix& viewM,
|
| const SkMatrix* localMatrix,
|
| - SkFilterQuality) const {
|
| + SkFilterQuality,
|
| + GrRenderTarget* dst) const {
|
|
|
| SkMatrix matrix;
|
| if (!this->getLocalMatrix().invert(&matrix)) {
|
| @@ -287,7 +289,7 @@ const GrFragmentProcessor* SkSweepGradient::asFragmentProcessor(
|
| matrix.postConcat(fPtsToUnit);
|
|
|
| SkAutoTUnref<const GrFragmentProcessor> inner(
|
| - GrSweepGradient::Create(context, *this, matrix));
|
| + GrSweepGradient::Create(context, *this, matrix, dst));
|
| return GrFragmentProcessor::MulOutputByInputAlpha(inner);
|
| }
|
|
|
|
|