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

Issue 460813002: Fallback to moveTo when unable to find the first tangent in cubicTo (Closed)

Created:
6 years, 4 months ago by Rémi Piotaix
Modified:
6 years, 3 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Fallback to moveTo when unable to find the first tangent in cubicTo When calling cubicTo(a, b, c) and if the distance between fPrevPt and a is too small, b is used instead of a to calculate the first tangent, even if the distance between fPrevPt and b is too small. In debug mode, this is causing an assertion to fail in SkPathStroker::preJoinTo() and, in Release, the use of an unitialized value. The first patch set is adding a failing test. The second one add the fix to SkPathStroker::cubicTo() BUG=skia:2820 Committed: https://skia.googlesource.com/skia/+/fac4e0e83666ab59373169d6c157d3654cb479a3

Patch Set 1 #

Patch Set 2 : Bugfix #

Total comments: 6

Patch Set 3 : Corrections... #

Patch Set 4 : Add comment #

Total comments: 4

Patch Set 5 : Again #

Total comments: 2

Patch Set 6 : is -> was #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
M src/core/SkStroke.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M tests/PathTest.cpp View 1 2 3 4 5 2 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Rémi Piotaix
PTAL
6 years, 4 months ago (2014-08-11 21:06:16 UTC) #1
Rémi Piotaix
On 2014/08/11 21:06:16, Rémi Piotaix wrote: > PTAL Ping?
6 years, 4 months ago (2014-08-18 14:33:16 UTC) #2
bsalomon
Using Mike's @google address and adding Cary.
6 years, 4 months ago (2014-08-18 16:22:44 UTC) #3
Justin Novosad
On 2014/08/18 16:22:44, bsalomon wrote: > Using Mike's @google address and adding Cary. Review ping. ...
6 years, 4 months ago (2014-08-20 14:26:12 UTC) #4
reed1
https://codereview.chromium.org/460813002/diff/20001/tests/PathTest.cpp File tests/PathTest.cpp (right): https://codereview.chromium.org/460813002/diff/20001/tests/PathTest.cpp#newcode67 tests/PathTest.cpp:67: static void make_path_crbugskia2820(SkPath* path, skiatest::Reporter* reporter) { Seems like ...
6 years, 4 months ago (2014-08-20 14:47:11 UTC) #5
Rémi Piotaix
https://codereview.chromium.org/460813002/diff/20001/tests/PathTest.cpp File tests/PathTest.cpp (right): https://codereview.chromium.org/460813002/diff/20001/tests/PathTest.cpp#newcode67 tests/PathTest.cpp:67: static void make_path_crbugskia2820(SkPath* path, skiatest::Reporter* reporter) { On 2014/08/20 ...
6 years, 4 months ago (2014-08-20 18:18:08 UTC) #6
reed1
https://codereview.chromium.org/460813002/diff/60001/tests/PathTest.cpp File tests/PathTest.cpp (right): https://codereview.chromium.org/460813002/diff/60001/tests/PathTest.cpp#newcode73 tests/PathTest.cpp:73: orig = SkPoint::Make(SkIntToScalar(1), SkIntToScalar(1)); :) I find this very ...
6 years, 4 months ago (2014-08-20 19:07:18 UTC) #7
Rémi Piotaix
https://codereview.chromium.org/460813002/diff/60001/tests/PathTest.cpp File tests/PathTest.cpp (right): https://codereview.chromium.org/460813002/diff/60001/tests/PathTest.cpp#newcode73 tests/PathTest.cpp:73: orig = SkPoint::Make(SkIntToScalar(1), SkIntToScalar(1)); On 2014/08/20 19:07:18, reed1 wrote: ...
6 years, 4 months ago (2014-08-20 19:21:09 UTC) #8
Justin Novosad
https://codereview.chromium.org/460813002/diff/80001/tests/PathTest.cpp File tests/PathTest.cpp (right): https://codereview.chromium.org/460813002/diff/80001/tests/PathTest.cpp#newcode68 tests/PathTest.cpp:68: * In debug mode, this path is causing an ...
6 years, 3 months ago (2014-08-26 18:10:16 UTC) #9
Rémi Piotaix
https://codereview.chromium.org/460813002/diff/80001/tests/PathTest.cpp File tests/PathTest.cpp (right): https://codereview.chromium.org/460813002/diff/80001/tests/PathTest.cpp#newcode68 tests/PathTest.cpp:68: * In debug mode, this path is causing an ...
6 years, 3 months ago (2014-08-26 18:17:42 UTC) #10
Justin Novosad
On 2014/08/26 18:17:42, Rémi Piotaix wrote: > https://codereview.chromium.org/460813002/diff/80001/tests/PathTest.cpp > File tests/PathTest.cpp (right): > > https://codereview.chromium.org/460813002/diff/80001/tests/PathTest.cpp#newcode68 ...
6 years, 3 months ago (2014-08-26 18:20:14 UTC) #11
reed1
as verbose as it is, I like the test! lgtm
6 years, 3 months ago (2014-08-26 18:37:15 UTC) #12
Rémi Piotaix
The CQ bit was checked by piotaixr@chromium.org
6 years, 3 months ago (2014-08-26 18:38:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/piotaixr@chromium.org/460813002/100001
6 years, 3 months ago (2014-08-26 18:39:23 UTC) #14
commit-bot: I haz the power
6 years, 3 months ago (2014-08-26 18:59:09 UTC) #15
Message was sent while issue was closed.
Committed patchset #6 (100001) as fac4e0e83666ab59373169d6c157d3654cb479a3

Powered by Google App Engine
This is Rietveld 408576698