Index: src/core/SkScalerContext.cpp |
diff --git a/src/core/SkScalerContext.cpp b/src/core/SkScalerContext.cpp |
index 20413a7dd7f292cab3406cc7aa7e4a0e1025520f..b7409ffe9ecbf1e7aace9bcf86ff16d011d7a4ec 100644 |
--- a/src/core/SkScalerContext.cpp |
+++ b/src/core/SkScalerContext.cpp |
@@ -700,6 +700,10 @@ void SkScalerContextRec::getLocalMatrix(SkMatrix* m) const { |
SkPaint::SetTextMatrix(m, fTextSize, fPreScaleX, fPreSkewX); |
} |
+void SkScalerContextRec::getLocalMatrixWithoutTextSize(SkMatrix* m) const { |
+ SkPaint::SetTextMatrix(m, SK_Scalar1, fPreScaleX, fPreSkewX); |
+} |
+ |
void SkScalerContextRec::getSingleMatrix(SkMatrix* m) const { |
this->getLocalMatrix(m); |
@@ -709,6 +713,15 @@ void SkScalerContextRec::getSingleMatrix(SkMatrix* m) const { |
m->postConcat(deviceMatrix); |
} |
+void SkScalerContextRec::getSingleMatrixWithoutTextSize(SkMatrix* m) const { |
+ this->getLocalMatrixWithoutTextSize(m); |
+ |
+ // now concat the device matrix |
+ SkMatrix deviceMatrix; |
+ this->getMatrixFrom2x2(&deviceMatrix); |
+ m->postConcat(deviceMatrix); |
+} |
+ |
SkAxisAlignment SkComputeAxisAlignmentForHText(const SkMatrix& matrix) { |
SkASSERT(!matrix.hasPerspective()); |