Improve the gamma GM significantly
authorbrianosman <brianosman@google.com>
Tue, 30 Aug 2016 14:08:07 +0000 (07:08 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 30 Aug 2016 14:08:07 +0000 (07:08 -0700)
commit7a99a0a30194805329c5d2368dc36c61b449d0f9
treeb52e7aa2969c2b365bd5e6acd2b402c7363e2b66
parent0e22eb8e6efc7d7ab7a601ba555947916d139906
Improve the gamma GM significantly

- Switch to portable typeface, to avoid per-platform diffs in the labels
- Stretch out the image slightly, to avoid overlap with larger font
- Fix several tests that were no longer matching ground-truth. We treat
  SkColor as sRGB, so 0x7F is incorrect, for example. Several of the
  XferMode tests had similar math errors now. Computed new values, and
  verified that they work as expected.
- Removed a couple tests that were mixing color and alpha in funny ways

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2288053003

Review-Url: https://codereview.chromium.org/2288053003
gm/gamma.cpp