commit | a4fa4f6eb727e8b97f6d8a58d9fda4aea56bbc75 | [log] [tgz] |
---|---|---|
author | msarett <msarett@google.com> | Mon Jun 06 10:42:51 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon Jun 06 10:42:51 2016 -0700 |
tree | cea2b6a233bb2dc5511f3a20e350f412da64bf5d | |
parent | 09f5cd44ae30f7089cde0131a3d07abf4c47af67 [diff] |
Gamma sanity checks (1) Make load_gammas() return false on invalid gammas. (2) Assert that gamma always exists after loading. (3) Avoid dividing by zero. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2043803002 Review-Url: https://codereview.chromium.org/2043803002