aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sfnt
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2016-03-10 11:10:43 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-10 11:10:43 -0800
commitcf371bb41b4a0591347a076ce7d83336d4bbc6fb (patch)
treecd0e34686433786ab2a759ddf619f86faa718931 /src/sfnt
parent4ba051cbcfbd379714250b1fe463c1610e7df04c (diff)
Use correct gradient calculation for rotated distance fields.
For all uniform scaled matrices, we were using the y coordinate of the y-direction gradient of the v texel space coordinate to scale the distance values. The problem is, if you rotate by 90 degrees this value becomes 0. The correct answer is to take the length of the y-direction gradient. BUG=skia:4864 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1776383002 Review URL: https://codereview.chromium.org/1776383002
Diffstat (limited to 'src/sfnt')
0 files changed, 0 insertions, 0 deletions