aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-10-11 12:15:03 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-10-11 12:15:03 -0700
commit31d097e865f266c8398f45114e4c75c0dfdef058 (patch)
tree474aa98958055b0d7e85483c014fccb4235ef7ef /bench
parent7a1c53d0f67dcc98937ee5f06c6ba3f3b24882c6 (diff)
Add SkColorSpaceXform to the public API
Diffstat (limited to 'bench')
-rw-r--r--bench/ColorCodecBench.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/bench/ColorCodecBench.cpp b/bench/ColorCodecBench.cpp
index b2bb658ffb..3b0ff6706c 100644
--- a/bench/ColorCodecBench.cpp
+++ b/bench/ColorCodecBench.cpp
@@ -101,9 +101,9 @@ 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(),
- select_xform_format(fDstInfo.colorType()),
- SkColorSpaceXform::kRGBA_8888_ColorFormat, fDstInfo.alphaType());
+ SkAssertResult(xform->apply(select_xform_format(fDstInfo.colorType()), dst,
+ SkColorSpaceXform::kRGBA_8888_ColorFormat, src,
+ fSrcInfo.width(), fDstInfo.alphaType()));
dst = SkTAddOffset<void>(dst, fDstInfo.minRowBytes());
src = SkTAddOffset<void>(src, fSrcInfo.minRowBytes());
}