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

Issue 1532003004: fix bugs in path contains (Closed)

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

Description

fix bugs in path contains Pull out the logic to check to see if the point is on the edge so all curve types can share. Reorder cubic to be like conic and quad so that mixed types consider the curves consistently. Don't count on curve points twice if they are on the end and compute a zero cross product. Remove logic that checks, when there are no roots, if the point is closer to the top or the bottom (it's always the top). Initialize the iterator correctly when it is accessing the list of on point curves. Use 'multiply' instead of 'subtract' to see if the vectors are pointing in opposite directions. Add more test cases. R=reed@google.com,fs@opera.com BUG=skia:4265 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1532003004 Committed: https://skia.googlesource.com/skia/+/9cb5d755e7ea8647bcf8bb1ee151ca4c86051107

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -29 lines) Patch
M src/core/SkPath.cpp View 12 chunks +53 lines, -29 lines 1 comment Download
M tests/PathTest.cpp View 3 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1532003004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1532003004/1
5 years ago (2015-12-17 22:13:52 UTC) #3
caryclark
Adding more test cases found more bugs. Please take a look when you have time.
5 years ago (2015-12-17 22:14:15 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-17 22:28:18 UTC) #6
fs
lgtm https://codereview.chromium.org/1532003004/diff/1/src/core/SkPath.cpp File src/core/SkPath.cpp (right): https://codereview.chromium.org/1532003004/diff/1/src/core/SkPath.cpp#newcode2880 src/core/SkPath.cpp:2880: if (x != x1 || y != pts[1].fY) ...
5 years ago (2015-12-18 10:18:34 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1532003004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1532003004/1
5 years ago (2015-12-18 12:34:51 UTC) #9
commit-bot: I haz the power
5 years ago (2015-12-18 12:35:29 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/9cb5d755e7ea8647bcf8bb1ee151ca4c86051107

Powered by Google App Engine
This is Rietveld 408576698