Fix scaling issue with distance field text.
authorjvanverth <jvanverth@google.com>
Tue, 16 Sep 2014 12:45:19 +0000 (05:45 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Sep 2014 12:45:19 +0000 (05:45 -0700)
commit9564ce60a657acce89fb956deb8645b324eaad1e
tree0fbe408f717124b40ef6c0822828c6d5371fcf0e
parent49005bf8929dd8ca86431e13414d683b509cd538
Fix scaling issue with distance field text.

Picks the correct distance field size based on both the text size and
the max matrix scale. Adjusts the matrix scale if non-unity. Also adds
GM for verifying proper distance field scaling.

BUG=skia:2928
R=bsalomon@google.com, joshualitt@google.com

Author: jvanverth@google.com

Review URL: https://codereview.chromium.org/568843002
gm/dftext.cpp [new file with mode: 0755]
gm/fontscaler.cpp
gyp/gmslides.gypi
src/gpu/GrDistanceFieldTextContext.cpp
src/gpu/GrDistanceFieldTextContext.h
src/gpu/effects/GrDistanceFieldTextureEffect.cpp