commit | 54ef7c057ac9cc8ff9cb18eba864686dd59c2d93 | [log] [tgz] |
---|---|---|
author | Jim Van Verth <jvanverth@google.com> | Fri Aug 25 15:15:13 2017 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Aug 25 19:50:07 2017 +0000 |
tree | 1e8e4bb556f0a01e13820d8648b1ecfe0c5a00ce | |
parent | 9b0b32fda4871776eb9afdf9553e523e5c28aa63 [diff] |
Don't use uninitialized gamma data for adjusting SDF distance. If the gamma is linear, the corresponding LUT for adjusting colors is not initialized. This change takes that into account when computing distance adjustments for SDF text. Change-Id: I7ca1410bb27cf29ef08ccd666297bf5c3cd3dcdd Reviewed-on: https://skia-review.googlesource.com/38940 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>