aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrBitmapTextContext.cpp
diff options
context:
space:
mode:
authorGravatar herb <herb@google.com>2015-02-25 06:47:06 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-25 06:47:06 -0800
commitb69d0e0ac45e13f667bc11a937dcb547072bc93d (patch)
tree5812e63a4c4c502ee9bd4c5ea751c3766ddec836 /src/gpu/GrBitmapTextContext.cpp
parent5a23a14b1fbc7503bdeff83e4b45ae7c258c6e96 (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-xsrc/gpu/GrBitmapTextContext.cpp2
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;