Index: bench/ColorCodecBench.cpp |
diff --git a/bench/ColorCodecBench.cpp b/bench/ColorCodecBench.cpp |
index 0687f9ca7ed93cd3277d7d1a92f9f7a67319b671..9f57ddc623596fa4b7830e881dc9b8d4e5f56900 100644 |
--- a/bench/ColorCodecBench.cpp |
+++ b/bench/ColorCodecBench.cpp |
@@ -162,10 +162,13 @@ void ColorCodecBench::onDelayedSetup() { |
fSrcInfo = codec->getInfo().makeColorType(kRGBA_8888_SkColorType); |
- fDstInfo = fSrcInfo.makeColorSpace(fDstSpace); |
if (FLAGS_half) { |
fDstInfo = fDstInfo.makeColorType(kRGBA_F16_SkColorType); |
+ fDstSpace = fDstSpace->makeLinearGamma(); |
} |
+ |
+ fDstInfo = fSrcInfo.makeColorSpace(fDstSpace); |
+ |
fDst.reset(fDstInfo.getSafeSize(fDstInfo.minRowBytes())); |
if (FLAGS_xform_only) { |