Index: src/effects/gradients/SkTwoPointConicalGradient.cpp |
diff --git a/src/effects/gradients/SkTwoPointConicalGradient.cpp b/src/effects/gradients/SkTwoPointConicalGradient.cpp |
index afc77feb5f726ca29fd8b7aa88dc5b4ba08905fb..359ff9e1ffb9cd3f6501be7a6727d2b98bc878d8 100644 |
--- a/src/effects/gradients/SkTwoPointConicalGradient.cpp |
+++ b/src/effects/gradients/SkTwoPointConicalGradient.cpp |
@@ -357,15 +357,11 @@ void SkTwoPointConicalGradient::flatten(SkWriteBuffer& buffer) const { |
#include "SkGr.h" |
sk_sp<GrFragmentProcessor> SkTwoPointConicalGradient::asFragmentProcessor( |
- GrContext* context, |
- const SkMatrix& viewM, |
- const SkMatrix* localMatrix, |
- SkFilterQuality, |
- SkSourceGammaTreatment) const { |
- SkASSERT(context); |
+ const AsFPArgs& args) const { |
+ SkASSERT(args.fContext); |
SkASSERT(fPtsToUnit.isIdentity()); |
sk_sp<GrFragmentProcessor> inner( |
- Gr2PtConicalGradientEffect::Make(context, *this, fTileMode, localMatrix)); |
+ Gr2PtConicalGradientEffect::Make(args.fContext, *this, fTileMode, args.fLocalMatrix)); |
return GrFragmentProcessor::MulOutputByInputAlpha(std::move(inner)); |
} |