aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrStyle.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-06-06 14:01:25 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-06 14:01:25 -0700
commitee295645bd91fcbe1714847c5fe5341759037cc5 (patch)
treecfa03cc1b5ce3831372218166ffa86a4e1e162f2 /src/gpu/GrStyle.h
parent982eb7f377a0c771345276558072deb2fcea0d3e (diff)
Make GrShape track the winding direction and starting point for rrect types.
Diffstat (limited to 'src/gpu/GrStyle.h')
-rw-r--r--src/gpu/GrStyle.h2
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; }