diff options
author | Matt Sarett <msarett@google.com> | 2017-04-11 09:26:24 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-11 14:03:48 +0000 |
commit | 3fbca26e9c0e6e3c27c9dd437c9f790a31f20675 (patch) | |
tree | ee66c03f5b0499ab188ddf44776330dfb601fe30 /include/codec | |
parent | 31f99ce7d2f3c2b61742d07ab92b6dac6a928ef9 (diff) |
Make sure NaNs clamp to 0 in color look up tables
This operation assumes 0-1 input and guarantees 0-1 output.
The old clamp was poorly written, causing the possibility
for NaNs to not be set to 0.
BUG=709941
Change-Id: I691f0494a562a329967f5b0149a1ba04cbeb8464
Reviewed-on: https://skia-review.googlesource.com/13134
Commit-Queue: Matt Sarett <msarett@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'include/codec')
0 files changed, 0 insertions, 0 deletions