Chromium Code Reviews| Index: include/utils/SkMatrix44.h |
| diff --git a/include/utils/SkMatrix44.h b/include/utils/SkMatrix44.h |
| index 26247a01e99c0aa19dad0152d61309d1c75b577e..513ff96471146331e150bae4f6fa41fe29232173 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 !(this->getType() & ~kPerspective_Mask); |
|
danakj
2014/08/28 19:37:41
Don't you want (getType() & kPerspective_mask) ?
reed1
2014/08/28 20:47:17
We use SkToBool(predicate) for this sort of thing.
tomhudson
2014/08/29 15:32:56
Done.
|
| + } |
| + |
| void setIdentity(); |
| inline void reset() { this->setIdentity();} |