Replace ICC profile in CodecTest with AdobeRGB
Change-Id: I00ca97ce7f584bdcc042f7e76fb0f8116978b799 Reviewed-on: https://skia-review.googlesource.com/129761 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
496a28233a
commit
499afea43c
@ -1020,8 +1020,7 @@ static void check_color_xform(skiatest::Reporter* r, const char* path) {
|
||||
|
||||
const int dstWidth = subsetWidth / opts.fSampleSize;
|
||||
const int dstHeight = subsetHeight / opts.fSampleSize;
|
||||
sk_sp<SkData> data = GetResourceAsData("icc_profiles/HP_ZR30w.icc");
|
||||
sk_sp<SkColorSpace> colorSpace = SkColorSpace::MakeICC(data->data(), data->size());
|
||||
auto colorSpace = SkColorSpace::MakeRGB(g2Dot2_TransferFn, SkColorSpace::kAdobeRGB_Gamut);
|
||||
SkImageInfo dstInfo = codec->getInfo().makeWH(dstWidth, dstHeight)
|
||||
.makeColorType(kN32_SkColorType)
|
||||
.makeColorSpace(colorSpace);
|
||||
|
Loading…
Reference in New Issue
Block a user