| Index: src/gpu/GrDistanceFieldTextContext.cpp
|
| diff --git a/src/gpu/GrDistanceFieldTextContext.cpp b/src/gpu/GrDistanceFieldTextContext.cpp
|
| index 568f09563ff513d3d1a223fdc4b0833451aa9831..448e70980547c23220fd21cd6f2c44add0f89b44 100755
|
| --- a/src/gpu/GrDistanceFieldTextContext.cpp
|
| +++ b/src/gpu/GrDistanceFieldTextContext.cpp
|
| @@ -239,10 +239,11 @@ void GrDistanceFieldTextContext::drawPackedGlyph(GrGlyph::PackedID packed,
|
| }
|
|
|
| GrContext::AutoMatrix am;
|
| - SkMatrix translate;
|
| - translate.setTranslate(sx, sy);
|
| + SkMatrix ctm;
|
| + ctm.setScale(fTextRatio, fTextRatio);
|
| + ctm.postTranslate(sx, sy);
|
| GrPaint tmpPaint(fPaint);
|
| - am.setPreConcat(fContext, translate, &tmpPaint);
|
| + am.setPreConcat(fContext, ctm, &tmpPaint);
|
| SkStrokeRec stroke(SkStrokeRec::kFill_InitStyle);
|
| fContext->drawPath(tmpPaint, *glyph->fPath, stroke);
|
| return;
|
|
|