commit | 0ce48858c99320dc36ec25ee673f860b4352b8d1 | [log] [tgz] |
---|---|---|
author | Mike Reed <reed@google.com> | Wed Jan 27 15:28:09 2021 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Jan 28 14:35:58 2021 +0000 |
tree | 5f3ceb3b024c80d5020ee420e7d8f76f61c4e66e | |
parent | b03f4a1dc831202cc7a68945c752ec56c4415607 [diff] |
Faster (conservative) IsAxisAligned This is used to decide when we can keep the convex bit during path.transform. This new version is much faster than the old, but can return a false negative if there are multiple contours. However, the caller now only calls this if the path is known to be convex, so there should never be multiple contours. This, along with https://skia-review.googlesource.com/c/skia/+/359837 make path.transform() approx 2x faster Bug: skia:11227 Change-Id: Ied7ca97d87b9224a3ecd9b77b22b823964809a52 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/359916 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org>