diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-19 15:18:05 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-19 15:18:05 +0000 |
commit | c2f7824436d05da6e8514d06a54773538aace028 (patch) | |
tree | df94bf8fa90324ab1ce8e840fa1f16b94b32d410 /include/core/SkRRect.h | |
parent | 92da60cd6339de32b2d8b19420f511208adf4187 (diff) |
Analytic rrect clip for cicular corners, radius >= 0.5
BUG=skia:2181
R=robertphillips@google.com, jvanverth@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/171413004
git-svn-id: http://skia.googlecode.com/svn/trunk@13498 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkRRect.h')
-rw-r--r-- | include/core/SkRRect.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h index e70cff6db9..141a3d27af 100644 --- a/include/core/SkRRect.h +++ b/include/core/SkRRect.h @@ -96,6 +96,9 @@ public: inline bool isRect() const { return kRect_Type == this->getType(); } inline bool isOval() const { return kOval_Type == this->getType(); } inline bool isSimple() const { return kSimple_Type == this->getType(); } + inline bool isSimpleCircular() const { + return this->isSimple() && fRadii[0].fX == fRadii[0].fY; + } inline bool isComplex() const { return kComplex_Type == this->getType(); } SkScalar width() const { return fRect.width(); } |