Index: src/core/SkLocalMatrixShader.cpp |
diff --git a/src/core/SkLocalMatrixShader.cpp b/src/core/SkLocalMatrixShader.cpp |
index cb85019827d62bb713962d6f32bcb8a5d2f9e4e4..4f74138b9c51b27cb95f8d5022cfd7c5752d8e7b 100644 |
--- a/src/core/SkLocalMatrixShader.cpp |
+++ b/src/core/SkLocalMatrixShader.cpp |
@@ -12,15 +12,13 @@ |
#endif |
#if SK_SUPPORT_GPU |
-sk_sp<GrFragmentProcessor> SkLocalMatrixShader::asFragmentProcessor( |
- GrContext* context, const SkMatrix& viewM, |
- const SkMatrix* localMatrix, SkFilterQuality fq, |
- SkSourceGammaTreatment gammaTreatment) const { |
+sk_sp<GrFragmentProcessor> SkLocalMatrixShader::asFragmentProcessor(const AsFPArgs& args) const { |
SkMatrix tmp = this->getLocalMatrix(); |
- if (localMatrix) { |
- tmp.preConcat(*localMatrix); |
+ if (args.fLocalMatrix) { |
+ tmp.preConcat(*args.fLocalMatrix); |
} |
- return fProxyShader->asFragmentProcessor(context, viewM, &tmp, fq, gammaTreatment); |
+ return fProxyShader->asFragmentProcessor(AsFPArgs( |
+ args.fContext, args.fViewMatrix, &tmp, args.fFilterQuality, args.fGammaTreatment)); |
} |
#endif |