Small downsample_3_3 optimization
authorMatt Sarett <msarett@google.com>
Wed, 22 Mar 2017 13:20:02 +0000 (09:20 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 22 Mar 2017 14:39:17 +0000 (14:39 +0000)
commitb667fe2f67a072da74d7a7da32cae4f06a2f0ee4
tree3dd86434ae8c1f636f5e29dcae947c595840bd4b
parenta2eb235a16ed430896cc54989e683cf930319eb7
Small downsample_3_3 optimization

Just a little less math...

mipmap_build_2047x2047_0_gamma
Before: 15.8ms
After:  13.4ms

Hard to see much difference on the gamma correct
mips, which are more dominated by load time.

BUG=skia:

Change-Id: I978cbc85a7d75cfcca2d5cd3fbc75e93413782f2
Reviewed-on: https://skia-review.googlesource.com/9988
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Matt Sarett <msarett@google.com>
bench/MipMapBench.cpp
src/core/SkMipMap.cpp