commit | 91f283bb4e6ea71bbd4e6efc27befc29118ee543 | [log] [tgz] |
---|---|---|
author | reed <reed@google.com> | Tue Jul 28 06:00:50 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Tue Jul 28 06:00:50 2015 -0700 |
tree | 3145ec8b092c25f8beb4d2b39629a8a100fc9a9f | |
parent | b2c07364a33fa381dcb78c47763d1bf98ab4b8ff [diff] |
change getBounds to return 0000 iff there are zero points This is a contract change for SkPath::getBounds(), which formally was defined to return 0,0,0,0 for a 1-point path, regardless of the coordinates of that point. This seems wacky/inconsistent, and was causing other bugs (incorrect bounds) when this was unioned with other rects. Does anyone remember why we defined it this way? BUG=513799 Review URL: https://codereview.chromium.org/1261773002