Index: src/gpu/SkGr.cpp |
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp |
index 7c0d09b70210d0eec463a2187214c371d4248ee9..c8839f3f1a49b0863df897e6f60de1a421ea0c54 100644 |
--- a/src/gpu/SkGr.cpp |
+++ b/src/gpu/SkGr.cpp |
@@ -537,6 +537,10 @@ static inline bool skpaint_to_grpaint_impl(GrContext* context, |
origColor.fRGBA[0] = exact_srgb_to_linear(origColor.fRGBA[0]); |
origColor.fRGBA[1] = exact_srgb_to_linear(origColor.fRGBA[1]); |
origColor.fRGBA[2] = exact_srgb_to_linear(origColor.fRGBA[2]); |
+ |
+ if (dc->getColorXformFromSRGB()) { |
+ origColor = dc->getColorXformFromSRGB()->apply(origColor); |
+ } |
} |
// Setup the initial color considering the shader, the SkPaint color, and the presence or not |