diff options
author | Cary Clark <caryclark@skia.org> | 2018-04-17 11:53:34 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-17 16:42:04 +0000 |
commit | 1cd6098d52a531451f194437861cd7a548f825a7 (patch) | |
tree | 2b00127b616df01c3038c5c5661968ebe87bb71d /gm/pathfill.cpp | |
parent | a580fb3f9ec5c177e4e8f827f6aa14239f984121 (diff) |
path is rect bug number twelve
Exposes that final close along a diagonal need not
include a close verb if the subsequent verb is move;
so we have to check for a diagonal then.
The later check for diagonal included a comment that
it may not be needed which does appear to be the case.
R=robertphillips@google.com
Bug: 824145,skia:7792
Change-Id: I17a9414e8b3e69b82c2eda28195696eae4e3d513
Reviewed-on: https://skia-review.googlesource.com/121801
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/pathfill.cpp')
-rw-r--r-- | gm/pathfill.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gm/pathfill.cpp b/gm/pathfill.cpp index 0fcffdc23f..db1f3f2557 100644 --- a/gm/pathfill.cpp +++ b/gm/pathfill.cpp @@ -558,4 +558,14 @@ DEF_SIMPLE_GM(bug7792, canvas, 600, 800) { path.moveTo(75, 75); path.close(); canvas->drawPath(path, p); + // from skbug.com/7792#c36 + canvas->translate(200, 0); + path.reset(); + path.moveTo(75, 75); + path.lineTo(150, 75); + path.lineTo(150, 150); + path.lineTo(10, 150); + path.moveTo(75, 75); + path.lineTo(75, 75); + canvas->drawPath(path, p); } |