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

Issue 1484873003: add more conservative check for wayward divide (Closed)

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

Description

add more conservative check for wayward divide When the parallel stroke to the curve can't be computed from the intersection of the tangent lines, as straight line connects the two points instead. Allow the intersection to succeed unless the ratio isn't finite or the contribution of (1 - ratio) isn't significant. R=reed@google.com,fmalita@chromium.org BUG=skia:4603 Committed: https://skia.googlesource.com/skia/+/b775e91e8760200f145a95672c29cc703b8a4f5f

Patch Set 1 #

Patch Set 2 : make test simpler #

Total comments: 1

Patch Set 3 : greater than compare removes need for finite check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -6 lines) Patch
M gm/strokes.cpp View 1 1 chunk +16 lines, -0 lines 0 comments Download
M src/core/SkStroke.cpp View 1 2 1 chunk +4 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (9 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/1484873003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1484873003/1
5 years ago (2015-11-30 20:37:26 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-30 20:56:38 UTC) #4
caryclark
5 years ago (2015-11-30 21:09:13 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1484873003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1484873003/20001
5 years ago (2015-11-30 21:09:20 UTC) #7
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years ago (2015-11-30 21:09:21 UTC) #8
reed1
lgtm https://codereview.chromium.org/1484873003/diff/20001/src/core/SkStroke.cpp File src/core/SkStroke.cpp (right): https://codereview.chromium.org/1484873003/diff/20001/src/core/SkStroke.cpp#newcode842 src/core/SkStroke.cpp:842: bool validDivide = SkScalarIsFinite(numerA) && numerA != numerA ...
5 years ago (2015-11-30 21:24:13 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1484873003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1484873003/40001
5 years ago (2015-11-30 21:29:59 UTC) #15
commit-bot: I haz the power
5 years ago (2015-11-30 21:47:16 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/b775e91e8760200f145a95672c29cc703b8a4f5f

Powered by Google App Engine
This is Rietveld 408576698