diff options
author | Cary Clark <caryclark@skia.org> | 2018-04-17 09:30:14 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-17 13:50:13 +0000 |
commit | a7651567ca7e5462de993f1b23d681c6171bcccf (patch) | |
tree | 11d2f27bb78b83528b7e3918a6d558dd5ee6b452 /gm | |
parent | 8954d097c35296d2b33293e65552cc3de39c5d2a (diff) |
yet another path is rect exploit
This one accumulates the othershoot when all four sides
have the same direction, and the final side when closed
should cause the overshoot to be ignored.
Docs-Preview: https://skia.org/?cl=121787
Bug: 824145,skia:7792
Change-Id: I71ea0fcdd0f03a4fcac224b57220c65c321112f6
Reviewed-on: https://skia-review.googlesource.com/121787
Commit-Queue: Cary Clark <caryclark@skia.org>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Auto-Submit: Cary Clark <caryclark@skia.org>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'gm')
-rw-r--r-- | gm/pathfill.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gm/pathfill.cpp b/gm/pathfill.cpp index cb878abe14..0fcffdc23f 100644 --- a/gm/pathfill.cpp +++ b/gm/pathfill.cpp @@ -547,4 +547,15 @@ DEF_SIMPLE_GM(bug7792, canvas, 600, 800) { path.moveTo(75, 75); path.close(); canvas->drawPath(path, p); + // from skbug.com/7792#c31 + canvas->translate(200, 0); + path.reset(); + path.moveTo(75, 75); + path.lineTo(150, 75); + path.lineTo(150, 150); + path.lineTo(75, 150); + path.lineTo(75, 10); + path.moveTo(75, 75); + path.close(); + canvas->drawPath(path, p); } |