Chromium Code Reviews| Index: src/core/SkScalerContext.cpp |
| diff --git a/src/core/SkScalerContext.cpp b/src/core/SkScalerContext.cpp |
| index caef2d137721254b865e0f0b29f5fac9af8fadf4..c5f69c749b3217f388af81fabc76715f5af955a7 100644 |
| --- a/src/core/SkScalerContext.cpp |
| +++ b/src/core/SkScalerContext.cpp |
| @@ -827,14 +827,14 @@ void SkScalerContextRec::computeMatrices(PreMatrixScale preMatrixScale, SkVector |
| } |
| } |
| -SkAxisAlignment SkComputeAxisAlignmentForHText(const SkMatrix& matrix) { |
| - SkASSERT(!matrix.hasPerspective()); |
| - |
| - if (0 == matrix[SkMatrix::kMSkewY]) { |
| - return kX_SkAxisAlignment; |
| - } |
| - if (0 == matrix[SkMatrix::kMSkewX]) { |
|
bungeman-skia
2016/02/29 18:00:27
This was incorrect, or at least doesn't do what th
|
| - return kY_SkAxisAlignment; |
| +SkAxisAlignment SkScalerContext::computeAxisAlignmentForHText() { |
| + if (fRec.getHinting() != SkPaint::kNo_Hinting) { |
|
bungeman-skia
2016/02/29 18:00:27
This is causing a lot of churn in gold because mos
|
| + if (0 == fRec.fPost2x2[1][0]) { |
|
bungeman-skia
2016/02/29 18:00:27
To answer the question, does this need to use getS
|
| + return kX_SkAxisAlignment; |
| + } |
| + if (0 == fRec.fPost2x2[0][0]) { |
| + return kY_SkAxisAlignment; |
| + } |
| } |
| return kNone_SkAxisAlignment; |
| } |