| Index: include/core/SkMatrix.h
|
| diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h
|
| index d52ab67f8c968896af88abd163356d232ed364f5..7aa079ebdaefb43fb0b531c2a72f27e39fad77f8 100644
|
| --- a/include/core/SkMatrix.h
|
| +++ b/include/core/SkMatrix.h
|
| @@ -563,22 +563,29 @@ public:
|
| SK_TO_STRING_NONVIRT()
|
|
|
| /**
|
| - * Calculates the minimum scaling factor of the matrix. If the matrix has
|
| - * perspective -1 is returned.
|
| + * Calculates the minimum scaling factor of the matrix as computed from the SVD of the upper
|
| + * left 2x2. If the matrix has perspective -1 is returned.
|
| *
|
| * @return minumum scale factor
|
| */
|
| SkScalar getMinScale() const;
|
|
|
| /**
|
| - * Calculates the maximum scale factor of the matrix. If the matrix has
|
| - * perspective -1 is returned.
|
| + * Calculates the maximum scaling factor of the matrix as computed from the SVD of the upper
|
| + * left 2x2. If the matrix has perspective -1 is returned.
|
| *
|
| * @return maximum scale factor
|
| */
|
| SkScalar getMaxScale() const;
|
|
|
| /**
|
| + * Gets both the min and max scale factors. The min scale factor is scaleFactors[0] and the max
|
| + * is scaleFactors[1]. If the matrix has perspective false will be returned and scaleFactors
|
| + * will be unchanged.
|
| + */
|
| + bool getMinMaxScales(SkScalar scaleFactors[2]) const;
|
| +
|
| + /**
|
| * Return a reference to a const identity matrix
|
| */
|
| static const SkMatrix& I();
|
|
|