diff options
author | 2015-08-21 13:47:06 -0700 | |
---|---|---|
committer | 2015-08-21 13:47:06 -0700 | |
commit | 21b998b181bedcd92c3a0460d29492312c0cdc89 (patch) | |
tree | 6eb2e1aa25ee22ae2488e28b84cd983c1f90b072 /include | |
parent | dd3c165828fffb369d0f4b13b48381169a0249a9 (diff) |
Revert of experiment with zero-length round capped line segments (patchset #4 id:60001 of https://codereview.chromium.org/1309753002/ )
Reason for revert:
More GMs changed than I expected. Will probably affect layout tests as well; reverting until I can verify that the changes are correct.
Original issue's 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
TBR=reed@google.com,schenney@google.com,schenney@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=422974
Review URL: https://codereview.chromium.org/1304163008
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPaint.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index 0c071ad361..1b993fc5ea 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -398,15 +398,6 @@ public: /** Cap enum specifies the settings for the paint's strokecap. This is the treatment that is applied to the beginning and end of each non-closed contour (e.g. lines). - - If the cap is round or square, the caps are drawn when the contour has - a zero length. Zero length contours can be created by following moveTo - with a lineTo at the same point, or a moveTo followed by a close. - - A dash with an on interval of zero also creates a zero length contour. - - The zero length contour draws the square cap without rotation, since - the no direction can be inferred. */ enum Cap { kButt_Cap, //!< begin/end contours with no extension |