| Index: src/core/SkMatrix.cpp
|
| diff --git a/src/core/SkMatrix.cpp b/src/core/SkMatrix.cpp
|
| index db6cc8953cf34d45d253fd5fff627494de8710d4..f770e0d5e5d24c57b975f3c49d5709312615f522 100644
|
| --- a/src/core/SkMatrix.cpp
|
| +++ b/src/core/SkMatrix.cpp
|
| @@ -569,10 +569,12 @@ static inline float rowcol3(const float row[], const float col[]) {
|
| }
|
|
|
| static void normalize_perspective(SkScalar mat[9]) {
|
| - if (SkScalarAbs(mat[SkMatrix::kMPersp2]) > 1) {
|
| - for (int i = 0; i < 9; i++)
|
| - mat[i] = SkScalarHalf(mat[i]);
|
| - }
|
| + // If it was interesting to never store the last element, we could divide all 8 other
|
| + // elements here by the 9th, making it 1.0...
|
| + //
|
| + // When SkScalar was SkFixed, we would sometimes rescale the entire matrix to keep its
|
| + // component values from getting too large. This is not a concern when using floats/doubles,
|
| + // so we do nothing now.
|
| }
|
|
|
| static bool only_scale_and_translate(unsigned mask) {
|
|
|