commit | 50ce1f28ffede3fa3e38d330d4114ee52b387848 | [log] [tgz] |
---|---|---|
author | msarett <msarett@google.com> | Fri Jul 29 06:23:33 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri Jul 29 06:23:33 2016 -0700 |
tree | ed3baa4c7463f1b46ac59bdee93df65c3eb82e97 | |
parent | 830c913625ac62b16b09cc0f1dbd8f177ec493d9 [diff] [blame] |
Add color space xform support to SkJpegCodec (includes F16!) Also changes SkColorXform to support: RGBA->RGBA RGBA->BGRA Instead of: RGBA->SkPMColor TBR=reed@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2174493002 CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Committed: https://skia.googlesource.com/skia/+/73d55332e2846dd05e9efdaa2f017bcc3872884b Review-Url: https://codereview.chromium.org/2174493002
diff --git a/bench/CodecBench.cpp b/bench/CodecBench.cpp index fc52edf..9bd404d 100644 --- a/bench/CodecBench.cpp +++ b/bench/CodecBench.cpp
@@ -42,7 +42,9 @@ void CodecBench::onDelayedSetup() { SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(fData)); - fInfo = codec->getInfo().makeColorType(fColorType).makeAlphaType(fAlphaType); + fInfo = codec->getInfo().makeColorType(fColorType) + .makeAlphaType(fAlphaType) + .makeColorSpace(nullptr); fPixelStorage.reset(fInfo.getSafeSize(fInfo.minRowBytes())); }