diff options
author | 2014-09-16 08:29:29 -0700 | |
---|---|---|
committer | 2014-09-16 08:29:29 -0700 | |
commit | a32f1758b7ebd889eecfdc67c935e7edcedc5be3 (patch) | |
tree | 0fc0cba22953bbe7f34ea45759012f422d4d5646 /include/utils/SkMatrix44.h | |
parent | 49586bec7383d4ccb81f85f8e2dc4162e2d4f6a8 (diff) |
Add helper SkMatrix44::hasPerspective()
BUG=skia:1017
R=danakj@chromium.org, reed@google.com
Author: tomhudson@google.com
Review URL: https://codereview.chromium.org/513343002
Diffstat (limited to 'include/utils/SkMatrix44.h')
-rw-r--r-- | include/utils/SkMatrix44.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/utils/SkMatrix44.h b/include/utils/SkMatrix44.h index 26247a01e9..83b5443d68 100644 --- a/include/utils/SkMatrix44.h +++ b/include/utils/SkMatrix44.h @@ -198,6 +198,10 @@ public: return !(this->getType() & ~(kScale_Mask | kTranslate_Mask)); } + inline bool hasPerspective() const { + return SkToBool(this->getType() & kPerspective_Mask); + } + void setIdentity(); inline void reset() { this->setIdentity();} |