Index: src/effects/gradients/SkRadialGradient.cpp |
diff --git a/src/effects/gradients/SkRadialGradient.cpp b/src/effects/gradients/SkRadialGradient.cpp |
index 5691188db7d5522fbcff40b24b52030c2707fa1e..6eaecffedd2c8dd52d17bbba47a3f0c80f126697 100644 |
--- a/src/effects/gradients/SkRadialGradient.cpp |
+++ b/src/effects/gradients/SkRadialGradient.cpp |
@@ -355,8 +355,11 @@ sk_sp<GrFragmentProcessor> SkRadialGradient::asFragmentProcessor(const AsFPArgs& |
matrix.postConcat(inv); |
} |
matrix.postConcat(fPtsToUnit); |
+ sk_sp<GrColorSpaceXform> colorSpaceXform = GrColorSpaceXform::Make(fColorSpace.get(), |
+ args.fDstColorSpace); |
sk_sp<GrFragmentProcessor> inner(GrRadialGradient::Make( |
- GrGradientEffect::CreateArgs(args.fContext, this, &matrix, fTileMode))); |
+ GrGradientEffect::CreateArgs(args.fContext, this, &matrix, fTileMode, |
+ std::move(colorSpaceXform), SkToBool(args.fDstColorSpace)))); |
return GrFragmentProcessor::MulOutputByInputAlpha(std::move(inner)); |
} |