skia: Fix text subpixel half sample default for GPU rasterization
authorhendrikw <hendrikw@chromium.org>
Tue, 31 Mar 2015 19:02:48 +0000 (12:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 31 Mar 2015 19:02:48 +0000 (12:02 -0700)
commite0f812a7a107986dfa72e6855c1608b077428136
treed7f45e8b001a9a135c1163687e5b36d780c319b4
parentc03391e792a55219ddcb033475dc6b80e6a3e2f9
skia: Fix text subpixel half sample default for GPU rasterization

In software, SkDraw1Glyph::Proc SkDraw1Glyph::init initializes
fHalfSampleX, fHalfSampleY to SkGlyph::kSubpixelRound.  In hardware,
however, these values were initialized to zero.

Fix, match software's implementation

BUG=471919

Review URL: https://codereview.chromium.org/1047803004
src/gpu/GrBitmapTextContext.cpp