Revert of Mike's radial gradient CL with better float -> int. (patchset #7 id:120001...
authormtklein <mtklein@google.com>
Mon, 27 Apr 2015 18:21:16 +0000 (11:21 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Apr 2015 18:21:16 +0000 (11:21 -0700)
commit8d3e9dff3f3db3fa77c383e4cd6c47b9898a8fcd
treeeee352eb6dc903b3762a47da5a8fecbdcbdb6016
parent8a0a16d0a5e684e22cc3464642bc03bf341149a8
Revert of Mike's radial gradient CL with better float -> int. (patchset #7 id:120001 of https://codereview.chromium.org/1109643002/)

Reason for revert:
compile failures.

Original issue's description:
> Mike's radial gradient CL with better float -> int.
>
> patch from issue 1072303005 at patchset 40001 (http://crrev.com/1072303005#ps40001)
>
> This looks quite launchable.  radial_gradient3, min of 100 samples:
>   N5:  985µs -> 946µs
>   MBP: 395µs -> 279µs
>
> On my MBP, most of the meat looks like it's now in reading the cache and writing to dst one color at a time.  Is that something we could do in float math rather than with a lookup table?
>
> BUG=skia:
>
> CQ_EXTRA_TRYBOTS=client.skia.android:Test-Android-GCC-Nexus5-CPU-NEON-Arm7-Debug-Trybot,Test-Android-GCC-Nexus9-CPU-Denver-Arm64-Debug-Trybot
>
> Committed: https://skia.googlesource.com/skia/+/abf6c5cf95e921fae59efb487480e5b5081cf0ec

TBR=reed@google.com,robertphillips@google.com,mtklein@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Review URL: https://codereview.chromium.org/1109883003
gm/gradients.cpp
src/core/SkNx.h
src/effects/gradients/SkRadialGradient.cpp
src/opts/SkNx_neon.h
src/opts/SkNx_sse.h
tests/SkNxTest.cpp