Index: bench/ColorCodecBench.cpp |
diff --git a/bench/ColorCodecBench.cpp b/bench/ColorCodecBench.cpp |
index e35aef87c93bd7c1638de88c59a70a8e829823ee..faa2a9a11886aab131c609d1460407d973043e1f 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()); |
} |