diff options
author | 2015-02-24 05:12:05 -0800 | |
---|---|---|
committer | 2015-02-24 05:12:05 -0800 | |
commit | f8d24e2c0c7b44b7ccf20e40890514db4cde7b15 (patch) | |
tree | 01187c9c660dbc97ca5a3281b4d64a4a056b86b7 /src/gpu/GrBitmapTextContext.cpp | |
parent | 73953e7d00f0a75a98e985ceed88059d35945327 (diff) |
BUG=skia:
(mtklein from here on)
No public API changes.
TBR=reed@google.com
Review URL: https://codereview.chromium.org/939123002
Diffstat (limited to 'src/gpu/GrBitmapTextContext.cpp')
-rwxr-xr-x | src/gpu/GrBitmapTextContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrBitmapTextContext.cpp b/src/gpu/GrBitmapTextContext.cpp index 30c9205627..2345ac1f4c 100755 --- a/src/gpu/GrBitmapTextContext.cpp +++ b/src/gpu/GrBitmapTextContext.cpp @@ -140,7 +140,7 @@ void GrBitmapTextContext::onDrawText(GrRenderTarget* rt, const GrPaint& paint, SkFixed fyMask = ~0; SkFixed halfSampleX, halfSampleY; if (cache->isSubpixel()) { - halfSampleX = halfSampleY = (SK_FixedHalf >> SkGlyph::kSubBits); + halfSampleX = halfSampleY = SkGlyph::kSubpixelRound; SkAxisAlignment baseline = SkComputeAxisAlignmentForHText(viewMatrix); if (kX_SkAxisAlignment == baseline) { fyMask = 0; |