commit | d9a854d8f4c9579a1f9f48c6818177586398d0d3 | [log] [tgz] |
---|---|---|
author | Jim Van Verth <jvanverth@google.com> | Mon Jan 23 14:05:55 2023 -0500 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Mon Jan 23 20:03:32 2023 +0000 |
tree | cbb354b8da2909ee1e8ae5b825ece19618a865e6 | |
parent | ac95d1e82c6d235ada3a640c713328570ce35d53 [diff] |
Add SkMatrixPriv::NearlyAffine. This allows us to check with a tolerance if perspective matrices are nearly affine, and then make affine approximations with little loss of visual quality. Bug: skia:13940 Change-Id: I5c4f230ddd3872f872a0ee08c3ddf8c2ad5239ba Reviewed-on: https://skia-review.googlesource.com/c/skia/+/633057 Commit-Queue: Jim Van Verth <jvanverth@google.com> Reviewed-by: Michael Ludwig <michaelludwig@google.com>