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

Issue 1311273002: fix zero-length tangent (Closed)

Created:
5 years, 4 months ago by caryclark
Modified:
5 years, 4 months ago
Reviewers:
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 zero-length tangent If the end point and the control point are the same, computing the tangent will result in (0, 0). In this case, use the prior control point instead. R=reed@google.com BUG=skia:4191 Committed: https://skia.googlesource.com/skia/+/7544124fb8ee744f68f549a353f8a9163cd7432d

Patch Set 1 #

Total comments: 4

Patch Set 2 : remove duplicate code; add unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -19 lines) Patch
M gm/strokes.cpp View 1 2 chunks +56 lines, -0 lines 0 comments Download
M src/core/SkGeometry.cpp View 1 7 chunks +30 lines, -19 lines 0 comments Download
M tests/GeometryTest.cpp View 1 2 chunks +64 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1311273002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1311273002/1
5 years, 4 months ago (2015-08-24 20:10:46 UTC) #3
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 4 months ago (2015-08-24 20:10:47 UTC) #4
reed1
I suggest both the check and the GM mention the condition they are trying to ...
5 years, 4 months ago (2015-08-24 20:15:46 UTC) #5
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
5 years, 4 months ago (2015-08-25 02:10:09 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1311273002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1311273002/20001
5 years, 4 months ago (2015-08-25 12:04:48 UTC) #9
caryclark
https://codereview.chromium.org/1311273002/diff/1/gm/strokes.cpp File gm/strokes.cpp (right): https://codereview.chromium.org/1311273002/diff/1/gm/strokes.cpp#newcode269 gm/strokes.cpp:269: class Strokes5GM : public skiagm::GM { On 2015/08/24 20:15:46, ...
5 years, 4 months ago (2015-08-25 12:04:48 UTC) #10
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
5 years, 4 months ago (2015-08-25 12:04:49 UTC) #12
reed1
lgtm
5 years, 4 months ago (2015-08-25 14:51:00 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1311273002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1311273002/20001
5 years, 4 months ago (2015-08-25 14:57:26 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/7544124fb8ee744f68f549a353f8a9163cd7432d
5 years, 4 months ago (2015-08-25 15:03:05 UTC) #16
caryclark
5 years, 4 months ago (2015-08-25 17:02:33 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1312243002/ by caryclark@google.com.

The reason for reverting is: causes layout test to draw differently -- new
drawing is more correct. Reverting until layout test ignore is landed..

Powered by Google App Engine
This is Rietveld 408576698