diff options
author | Yuqian Li <liyuqian@google.com> | 2018-02-07 19:04:34 +0800 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-08 03:57:49 +0000 |
commit | 4a657adf745ee364f00734677d0e68754ae933a7 (patch) | |
tree | b875df92f4418a159be5e9842f6fdc5c83829988 /gm/aaa.cpp | |
parent | 854f68b5859ddb3261dd536fe4fbfb4b708f778c (diff) |
Fix the left/right edge swapping in isSmoothEnough
Bug: skia:7573
Change-Id: I02d863ac15c04fab39c1d7b0b8970bad484ca12c
Reviewed-on: https://skia-review.googlesource.com/104840
Reviewed-by: Cary Clark <caryclark@google.com>
Commit-Queue: Yuqian Li <liyuqian@google.com>
Diffstat (limited to 'gm/aaa.cpp')
-rw-r--r-- | gm/aaa.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gm/aaa.cpp b/gm/aaa.cpp index 4f81fc9a2c..910ce19988 100644 --- a/gm/aaa.cpp +++ b/gm/aaa.cpp @@ -75,6 +75,18 @@ protected: // Manually setting convexity is required. Otherwise, this path will be considered concave. path.setConvexity(SkPath::kConvex_Convexity); canvas->drawPath(path, p); + + // skbug.com/7573 + y += 200; + canvas->translate(0, y); + p.setAntiAlias(true); + path.reset(); + path.moveTo(1.98009784f, 9.0162744f); + path.lineTo(47.843992f, 10.1922744f); + path.lineTo(47.804008f, 11.7597256f); + path.lineTo(1.93990216f, 10.5837256f); + canvas->drawPath(path, p); + canvas->restore(); } private: |