diff options
-rw-r--r-- | src/core/SkDraw_vertices.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/SkDraw_vertices.cpp b/src/core/SkDraw_vertices.cpp index f918269992..544e84d6a6 100644 --- a/src/core/SkDraw_vertices.cpp +++ b/src/core/SkDraw_vertices.cpp @@ -145,8 +145,7 @@ static SkPM4f* convert_colors(const SkColor src[], int count, SkColorSpace* devi } } else { auto srcCS = SkColorSpace::MakeSRGB(); - auto dstCS = deviceCS->makeLinearGamma(); - SkColorSpaceXform::Apply(dstCS.get(), SkColorSpaceXform::kRGBA_F32_ColorFormat, dst, + SkColorSpaceXform::Apply(deviceCS , SkColorSpaceXform::kRGBA_F32_ColorFormat, dst, srcCS.get(), SkColorSpaceXform::kBGRA_8888_ColorFormat, src, count, SkColorSpaceXform::kPremul_AlphaOp); } |