diff options
author | msarett <msarett@google.com> | 2016-10-11 12:15:03 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-11 12:15:03 -0700 |
commit | 31d097e865f266c8398f45114e4c75c0dfdef058 (patch) | |
tree | 474aa98958055b0d7e85483c014fccb4235ef7ef /bench | |
parent | 7a1c53d0f67dcc98937ee5f06c6ba3f3b24882c6 (diff) |
Add SkColorSpaceXform to the public API
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2390263002
Review-Url: https://codereview.chromium.org/2390263002
Diffstat (limited to 'bench')
-rw-r--r-- | bench/ColorCodecBench.cpp | 6 |
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()); } |