Index: src/effects/gradients/SkSweepGradient.cpp |
diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp |
index 07892370487437268b59e40b7d3a8be9d4300d82..bdb0e1ce25d86cb4ed2f6ead60b813691bd45eed 100644 |
--- a/src/effects/gradients/SkSweepGradient.cpp |
+++ b/src/effects/gradients/SkSweepGradient.cpp |
@@ -129,16 +129,19 @@ |
public: |
class GLSLSweepProcessor; |
- static sk_sp<GrFragmentProcessor> Make(const CreateArgs& args) { |
- return sk_sp<GrFragmentProcessor>(new GrSweepGradient(args)); |
+ static sk_sp<GrFragmentProcessor> Make(GrContext* ctx, const SkSweepGradient& shader, |
+ const SkMatrix& m) { |
+ return sk_sp<GrFragmentProcessor>(new GrSweepGradient(ctx, shader, m)); |
} |
virtual ~GrSweepGradient() { } |
const char* name() const override { return "Sweep Gradient"; } |
private: |
- GrSweepGradient(const CreateArgs& args) |
- : INHERITED(args) { |
+ GrSweepGradient(GrContext* ctx, |
+ const SkSweepGradient& shader, |
+ const SkMatrix& matrix) |
+ : INHERITED(ctx, shader, matrix, SkShader::kClamp_TileMode) { |
this->initClassID<GrSweepGradient>(); |
} |
@@ -247,8 +250,7 @@ |
} |
matrix.postConcat(fPtsToUnit); |
- sk_sp<GrFragmentProcessor> inner(GrSweepGradient::Make( |
- GrGradientEffect::CreateArgs(args.fContext, this, &matrix, SkShader::kClamp_TileMode))); |
+ sk_sp<GrFragmentProcessor> inner(GrSweepGradient::Make(args.fContext, *this, matrix)); |
return GrFragmentProcessor::MulOutputByInputAlpha(std::move(inner)); |
} |