Refactor swizzle names and types.
authormtklein <mtklein@chromium.org>
Fri, 22 Jan 2016 15:42:53 +0000 (07:42 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 22 Jan 2016 15:42:53 +0000 (07:42 -0800)
commit8bf7b79cf9776b4edb3f6810e5ab8c80c49d3480
tree65f114dce236fffbbc0e4605a6f1223523281e41
parent6c9cd55f00beeba3ded3f28bcbdd6ef030c4dac7
Refactor swizzle names and types.

  - Plant a flag to say "pretend all the inputs are RGBA".
    This is how libpng thinks.
    This is the opposite of what the implementation had been doing,
    so I've rearranged everything to reflect the new orientation.

  - Rewrite the names to be less mysterious looking.  No more Xs.

  - Make the src type uniformly const void*, to allow for 888 (RGB) srcs.

This should be performance and pixel neutral.  (Please revert if it's not.)

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1626463002
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot

Review URL: https://codereview.chromium.org/1626463002
bench/SwizzleBench.cpp
src/codec/SkSwizzler.cpp
src/core/SkOpts.cpp
src/core/SkOpts.h
src/opts/SkOpts_neon.cpp
src/opts/SkOpts_ssse3.cpp
src/opts/SkSwizzler_opts.h
tests/SwizzlerTest.cpp