Add LCD support for distance field text.

LCD support is handled by shifting the uv coordinate by 1/3 of a pixel (transformed by the inverse CTM) to the left and right of the original texture coordinate, and using left, center, and right lookups to set the RGB values. This supports both RGB and BGR subpixel order.

BUG=skia:2173
R=robertphillips@google.com, egdaniel@google.com, bungeman@google.com

Author: jvanverth@google.com

Review URL: https://codereview.chromium.org/219243012

git-svn-id: http://skia.googlecode.com/svn/trunk@14049 2bbb7eff-a529-9590-31e7-b0007b416f81
4 files changed