DescriptionBUG=46591
This CL modifies skia/src/SkMatrix.cpp to update a constant used to determine if it is safe to invert a matrix or not. The existing value (SkScalarNearlyZero^2) was failing with Coats_of_arms_of_Argentina.svg due to an unusually large range of coordinate values and scale factors. The previous comment in the code justifies ^2 since the determinant is "on the order of the square of the matrix members", but this should really be ^3 for a 3x3 determinant. If a comparably inexpensive estimate of the matrix condition number can be found that would be even more appropriate, but no such thing exists to my knowledge.
Patch Set 1 #Patch Set 2 : Cr46591 Proposed Patch #
Total comments: 1
Patch Set 3 : Cr46591 Proposed Patch #MessagesTotal messages: 12
|