diff options
author | msarett <msarett@google.com> | 2016-09-16 11:45:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-16 11:45:59 -0700 |
commit | c0444615ed76360f680619ad4d1f92cda6181a50 (patch) | |
tree | 4c534202035fd7094967d435e2d986ef9f6ab7d8 /bench | |
parent | bfef32ff0ac743b10995985b891f5fd09fe918db (diff) |
Support Float32 output from SkColorSpaceXform
* Adds Float32 support to SkColorSpaceXform
* Changes API to allows clients to ask for F32, updates clients to
new API
* Adds Sk4f_load4 and Sk4f_store4 to SkNx
* Make use of new xform in SkGr.cpp
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2339233003
CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
Committed: https://skia.googlesource.com/skia/+/43d6651111374b5d1e4ddd9030dcf079b448ec47
Review-Url: https://codereview.chromium.org/2339233003
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()); } |