aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-09-16 09:51:12 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-16 09:51:12 -0700
commit43d6651111374b5d1e4ddd9030dcf079b448ec47 (patch)
treecd015928e14895e720154f156aab1e14d3536787 /bench
parenta8370b2c56e42b9e29b4cfbda95d14fdfba7f15e (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 Review-Url: https://codereview.chromium.org/2339233003
Diffstat (limited to 'bench')
-rw-r--r--bench/ColorCodecBench.cpp5
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());
}