aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2018-04-30 23:08:15 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-01 14:54:14 +0000
commit41dff6ef68fc2a537263e0f59ac811cdbae6ea48 (patch)
treec4365927b50e5923fe3537e2ec4d42f12940331a /include
parent8afbecbcc05412fadc66cc9d29955064145b8ba5 (diff)
[skottie] Add support for round-corners geometry effects
TBR= Change-Id: I5505561df28d5953526662d60fe2300cb112bc37 Reviewed-on: https://skia-review.googlesource.com/124769 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/effects/SkCornerPathEffect.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/effects/SkCornerPathEffect.h b/include/effects/SkCornerPathEffect.h
index f7a5e46222..ac9401a7bc 100644
--- a/include/effects/SkCornerPathEffect.h
+++ b/include/effects/SkCornerPathEffect.h
@@ -21,7 +21,7 @@ public:
that should be "rounded".
*/
static sk_sp<SkPathEffect> Make(SkScalar radius) {
- return sk_sp<SkPathEffect>(new SkCornerPathEffect(radius));
+ return radius > 0 ? sk_sp<SkPathEffect>(new SkCornerPathEffect(radius)) : nullptr;
}
virtual bool filterPath(SkPath* dst, const SkPath& src,