diff options
author | Mike Klein <mtklein@chromium.org> | 2017-04-20 09:11:53 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-20 14:29:46 +0000 |
commit | 097d0939e319493765074025d2d34c4179662f7b (patch) | |
tree | 15960ed5f87615953a48bb7efcc2f34e56d26f42 /src/gpu/effects/GrConfigConversionEffect.cpp | |
parent | 5338f99a8a75d0e7622a37c5d1c05fcce49f55f5 (diff) |
more symmetry for from_half/to_half
Tweaks to make the parallels between from_half and to_half stand out.
We can logically do the `auto denorm = em < ...;` comparisons as either
U32 or I32. U32 would read more naturally, but we do I32 because some
instruction sets have direct signed comparison but must synthesize an
unsigned comparison.
CQ_INCLUDE_TRYBOTS=skia.primary:Test-Android-Clang-PixelC-CPU-TegraX1-arm64-Release-Android,Test-Android-Clang-Ci20-CPU-IngenicJZ4780-mipsel-Release-Android,Test-Android-Clang-Nexus10-CPU-Exynos5250-arm-Release-Android,Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Release,Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug,Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug
Change-Id: Ic74fe5b3b850f5bb7fd00fd4435bc32b8628eecd
Reviewed-on: https://skia-review.googlesource.com/13963
Reviewed-by: Matt Sarett <msarett@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/gpu/effects/GrConfigConversionEffect.cpp')
0 files changed, 0 insertions, 0 deletions