diff options
Diffstat (limited to 'bench')
-rw-r--r-- | bench/ColorCodecBench.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bench/ColorCodecBench.cpp b/bench/ColorCodecBench.cpp index e35aef87c9..faa2a9a118 100644 --- a/bench/ColorCodecBench.cpp +++ b/bench/ColorCodecBench.cpp @@ -8,6 +8,7 @@ #include "ColorCodecBench.h" #include "Resources.h" #include "SkCodec.h" +#include "SkCodecPriv.h" #include "SkColorSpaceXform.h" #include "SkCommandLineFlags.h" @@ -99,8 +100,8 @@ void ColorCodecBench::xformOnly() { void* dst = fDst.get(); void* src = fSrc.get(); for (int y = 0; y < fSrcInfo.height(); y++) { - xform->apply(dst, (uint32_t*) src, fSrcInfo.width(), fDstInfo.colorType(), - fDstInfo.alphaType()); + xform->apply(dst, (uint32_t*) src, fSrcInfo.width(), + select_xform_format(fDstInfo.colorType()), fDstInfo.alphaType()); dst = SkTAddOffset<void>(dst, fDstInfo.minRowBytes()); src = SkTAddOffset<void>(src, fSrcInfo.minRowBytes()); } |