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

Issue 1309753002: experiment with zero-length round capped line segments (Closed)

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

Description

experiment with zero-length round capped line segments If the endcap is not butt, draw the endcaps even when the line has zero length. If the dash length is zero, generate a zero length line segment. Treat a move followed by a close as a move followed by a zero-length line. R=reed@google.com,schenney@google.com BUG=422974 Committed: https://skia.googlesource.com/skia/+/dd3c165828fffb369d0f4b13b48381169a0249a9

Patch Set 1 #

Patch Set 2 : add square cap tests #

Total comments: 6

Patch Set 3 : add explanitory comments #

Patch Set 4 : add overall documentation with paint caps #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -11 lines) Patch
M gm/strokes.cpp View 1 3 chunks +80 lines, -6 lines 0 comments Download
M include/core/SkPaint.h View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M src/core/SkPathMeasure.cpp View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M src/core/SkStroke.cpp View 1 2 4 chunks +21 lines, -2 lines 0 comments Download
M src/utils/SkDashPath.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (4 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/1309753002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309753002/1
5 years, 4 months ago (2015-08-21 13:08:48 UTC) #2
caryclark
Stephen: Please take a look. I'm especially interested if the GM correctly tests the need ...
5 years, 4 months ago (2015-08-21 13:10:49 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-21 13:15:29 UTC) #5
Stephen Chennney
The test covers the SVG case for round caps. There's also the square cap case ...
5 years, 4 months ago (2015-08-21 14:15:02 UTC) #7
Stephen Chennney
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap
5 years, 4 months ago (2015-08-21 14:15:21 UTC) #8
caryclark
On 2015/08/21 14:15:02, Stephen Chenney wrote: > The test covers the SVG case for round ...
5 years, 4 months ago (2015-08-21 14:31:55 UTC) #9
reed1
Definitely want to capture the CL's documentation about our behaviors in these various scenarios somewhere ...
5 years, 4 months ago (2015-08-21 15:26:55 UTC) #10
caryclark
Done
5 years, 4 months ago (2015-08-21 15:52:45 UTC) #11
caryclark
https://codereview.chromium.org/1309753002/diff/20001/src/core/SkPathMeasure.cpp File src/core/SkPathMeasure.cpp (right): https://codereview.chromium.org/1309753002/diff/20001/src/core/SkPathMeasure.cpp#newcode317 src/core/SkPathMeasure.cpp:317: SkPoint lastPt; On 2015/08/21 15:26:55, reed1 wrote: > Perhaps ...
5 years, 4 months ago (2015-08-21 15:52:56 UTC) #12
reed1
lgtm
5 years, 4 months ago (2015-08-21 20:11:07 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309753002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309753002/60001
5 years, 4 months ago (2015-08-21 20:21:00 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/dd3c165828fffb369d0f4b13b48381169a0249a9
5 years, 4 months ago (2015-08-21 20:27:41 UTC) #16
caryclark
5 years, 4 months ago (2015-08-21 20:46:44 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1304163008/ by caryclark@google.com.

The reason for reverting is: More GMs changed than I expected. Will probably
affect layout tests as well; reverting until I can verify that the changes are
correct..

Powered by Google App Engine
This is Rietveld 408576698