fix color management of CPU drawVertices()
Convert to dst, not linear dst. Change-Id: I2e2701cd08180c3e82730cd4d71a80342f40ab07 Reviewed-on: https://skia-review.googlesource.com/140789 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
939fd6ce9c
commit
e08059d3d8
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user