diff options
author | vmpstr <vmpstr@chromium.org> | 2015-06-30 13:36:04 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-30 13:36:04 -0700 |
commit | a8d4559fd6fb4f8ed213e201bb738dbc7b3c3512 (patch) | |
tree | f2899ace478cde5439ba144c1fb832294485c8d5 /include | |
parent | 7f6283bdf8926f72b886389588e3e2d3bc0ea066 (diff) |
Fix infinite matrix during an invert.
This patch ensures that when inverting a SkMatrix44, we handle small
floats properly. When inverted these can cause infinite values, but
still evaluate to true in an if condition.
BUG=chromium:498516
Review URL: https://codereview.chromium.org/1209763002
Diffstat (limited to 'include')
-rw-r--r-- | include/utils/SkMatrix44.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/utils/SkMatrix44.h b/include/utils/SkMatrix44.h index 90f29a994a..2a698f52a2 100644 --- a/include/utils/SkMatrix44.h +++ b/include/utils/SkMatrix44.h @@ -358,7 +358,8 @@ public: } /** If this is invertible, return that in inverse and return true. If it is - not invertible, return false and ignore the inverse parameter. + not invertible, return false and leave the inverse parameter in an + unspecified state. */ bool invert(SkMatrix44* inverse) const; |