Index: src/core/SkScalerContext.cpp |
diff --git a/src/core/SkScalerContext.cpp b/src/core/SkScalerContext.cpp |
index 1f71bf088550a7bc782d14facde29cc7b5ca9f08..521cb9b6b1ae28e70c6bcf9d97186650b5692c25 100644 |
--- a/src/core/SkScalerContext.cpp |
+++ b/src/core/SkScalerContext.cpp |
@@ -791,10 +791,7 @@ void SkScalerContextRec::getMatrixFrom2x2(SkMatrix* dst) const { |
} |
void SkScalerContextRec::getLocalMatrix(SkMatrix* m) const { |
- m->setScale(SkScalarMul(fTextSize, fPreScaleX), fTextSize); |
- if (fPreSkewX) { |
- m->postSkew(fPreSkewX, 0); |
- } |
+ SkPaint::SetTextMatrix(m, fTextSize, fPreScaleX, fPreSkewX); |
} |
void SkScalerContextRec::getSingleMatrix(SkMatrix* m) const { |