Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Issue 1228383002: compute convexity for very small paths (Closed)

Created:
5 years, 5 months ago by caryclark
Modified:
5 years, 5 months ago
Reviewers:
robertphillips, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Very tiny paths are subsumed by the Convexicator and are treated as convex when they are not. Allow the SkPath::Iter to leave degenerate path segments unmolested by passing an additional exact bool to next(). Treat any non-zero length as significant in addPt(). R=reed@google.com,robertphillips@google.com BUG=493450 Committed: https://skia.googlesource.com/skia/+/e8c5666e0387e70bd921e01558e627af3f1411db

Patch Set 1 #

Patch Set 2 : fix tiny convexity : proof of concept #

Patch Set 3 : now with more tests #

Total comments: 2

Patch Set 4 : fix path documentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -16 lines) Patch
M include/core/SkPath.h View 1 2 3 5 chunks +13 lines, -9 lines 0 comments Download
M src/core/SkPath.cpp View 1 6 chunks +6 lines, -6 lines 0 comments Download
M src/core/SkStroke.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/PathTest.cpp View 1 2 2 chunks +64 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
caryclark
5 years, 5 months ago (2015-07-10 16:06:16 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228383002/20001
5 years, 5 months ago (2015-07-10 16:06:20 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-10 16:13:42 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228383002/40001
5 years, 5 months ago (2015-07-10 16:31:57 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-10 16:54:41 UTC) #9
caryclark
5 years, 5 months ago (2015-07-13 12:13:07 UTC) #11
robertphillips
lgtm but since I'm sure I don't understand all the implications I would prefer Mike ...
5 years, 5 months ago (2015-07-13 17:49:12 UTC) #12
caryclark
https://codereview.chromium.org/1228383002/diff/40001/include/core/SkPath.h File include/core/SkPath.h (right): https://codereview.chromium.org/1228383002/diff/40001/include/core/SkPath.h#newcode802 include/core/SkPath.h:802: deemed degenerate (too short) and skip those. On 2015/07/13 ...
5 years, 5 months ago (2015-07-13 18:23:42 UTC) #13
reed1
Maybe its time to pull in those predicate functions into private... lgtm
5 years, 5 months ago (2015-07-14 15:14:37 UTC) #14
reed1
nit: an enum ( Tolerance, Exact ) or something like it might make the call-sites ...
5 years, 5 months ago (2015-07-14 15:15:22 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228383002/60001
5 years, 5 months ago (2015-07-14 17:58:34 UTC) #18
commit-bot: I haz the power
5 years, 5 months ago (2015-07-14 18:19:30 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/e8c5666e0387e70bd921e01558e627af3f1411db

Powered by Google App Engine
This is Rietveld 408576698