Index: bench/ColorCodecBench.cpp |
diff --git a/bench/ColorCodecBench.cpp b/bench/ColorCodecBench.cpp |
index 3b0ff6706c03fb8c9ae640e85a953e8b84633fab..9ae5601d49ef512d8792ce1b25819e0505156c2b 100644 |
--- a/bench/ColorCodecBench.cpp |
+++ b/bench/ColorCodecBench.cpp |
@@ -9,6 +9,7 @@ |
#include "Resources.h" |
#include "SkCodec.h" |
#include "SkCodecPriv.h" |
+#include "SkColorSpace_Base.h" |
#include "SkColorSpaceXform.h" |
#include "SkCommandLineFlags.h" |
@@ -168,7 +169,7 @@ void ColorCodecBench::onDelayedSetup() { |
if (FLAGS_half) { |
fDstInfo = fDstInfo.makeColorType(kRGBA_F16_SkColorType); |
- fDstSpace = fDstSpace->makeLinearGamma(); |
+ fDstSpace = as_CSB(fDstSpace)->makeLinearGamma(); |
} |
fDstInfo = fDstInfo.makeColorSpace(fDstSpace); |