Index: src/effects/gradients/SkSweepGradient.cpp |
diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp |
index 07892370487437268b59e40b7d3a8be9d4300d82..58bb8aa8ed54fcdbbbe7d36420acb76cb4f535a7 100644 |
--- a/src/effects/gradients/SkSweepGradient.cpp |
+++ b/src/effects/gradients/SkSweepGradient.cpp |
@@ -247,8 +247,11 @@ sk_sp<GrFragmentProcessor> SkSweepGradient::asFragmentProcessor(const AsFPArgs& |
} |
matrix.postConcat(fPtsToUnit); |
+ sk_sp<GrColorSpaceXform> colorSpaceXform = GrColorSpaceXform::Make(fColorSpace.get(), |
+ args.fDstColorSpace); |
sk_sp<GrFragmentProcessor> inner(GrSweepGradient::Make( |
- GrGradientEffect::CreateArgs(args.fContext, this, &matrix, SkShader::kClamp_TileMode))); |
+ GrGradientEffect::CreateArgs(args.fContext, this, &matrix, SkShader::kClamp_TileMode, |
+ std::move(colorSpaceXform), SkToBool(args.fDstColorSpace)))); |
return GrFragmentProcessor::MulOutputByInputAlpha(std::move(inner)); |
} |