diff options
author | bsalomon <bsalomon@google.com> | 2016-06-06 14:01:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-06 14:01:25 -0700 |
commit | ee295645bd91fcbe1714847c5fe5341759037cc5 (patch) | |
tree | cfa03cc1b5ce3831372218166ffa86a4e1e162f2 /src/gpu/GrStyle.h | |
parent | 982eb7f377a0c771345276558072deb2fcea0d3e (diff) |
Make GrShape track the winding direction and starting point for rrect types.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2042813002
Review-Url: https://codereview.chromium.org/2042813002
Diffstat (limited to 'src/gpu/GrStyle.h')
-rw-r--r-- | src/gpu/GrStyle.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/GrStyle.h b/src/gpu/GrStyle.h index cbaa50d9ef..51908344d4 100644 --- a/src/gpu/GrStyle.h +++ b/src/gpu/GrStyle.h @@ -115,6 +115,8 @@ public: SkPathEffect* pathEffect() const { return fPathEffect.get(); } + bool hasPathEffect() const { return SkToBool(fPathEffect.get()); } + bool hasNonDashPathEffect() const { return fPathEffect.get() && !this->isDashed(); } bool isDashed() const { return SkPathEffect::kDash_DashType == fDashInfo.fType; } |