diff options
author | 2015-02-25 06:47:06 -0800 | |
---|---|---|
committer | 2015-02-25 06:47:06 -0800 | |
commit | b69d0e0ac45e13f667bc11a937dcb547072bc93d (patch) | |
tree | 5812e63a4c4c502ee9bd4c5ea751c3766ddec836 /src/gpu/GrBitmapTextContext.cpp | |
parent | 5a23a14b1fbc7503bdeff83e4b45ae7c258c6e96 (diff) |
BUG=skia:
(mtklein from here on)
No public API changes.
TBR=reed@google.com
Committed: https://skia.googlesource.com/skia/+/f8d24e2c0c7b44b7ccf20e40890514db4cde7b15
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; |