diff options
author | Brian Osman <brianosman@google.com> | 2018-05-23 13:12:18 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-23 17:47:51 +0000 |
commit | 499afea43c56581a382441c4dc53fde0eff6ffbe (patch) | |
tree | 85810e8c0122c0ab571f5a5f14eed2ff080fbcfd /tests/CodecTest.cpp | |
parent | 496a28233a1ae949d23f81a6519a7e3bfbb4b6ae (diff) |
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>
Diffstat (limited to 'tests/CodecTest.cpp')
-rw-r--r-- | tests/CodecTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/CodecTest.cpp b/tests/CodecTest.cpp index 474cdc6931..14b227c7d0 100644 --- a/tests/CodecTest.cpp +++ b/tests/CodecTest.cpp @@ -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); |