skia2/src
Cary Clark 54ff302cdc avoid degenerate point in addPath extend mode
SkPath::addPath(... SkPath::kExtend_AddPathMode) duplicates
the last point if the added path first point is the same,
resulting in:

path.xVerbTo(..., pt);
path.lineTo(pt);

The extra point has no effect in filling or stroking.
Pathops uses extend mode a lot; fixing this avoids
the output of Op() and Simplify() requiring another pass
through Simplify() to reduce the path to its minimum.

R=reed@google.com,robertphillips@google.com

Bug: skia:8227
Change-Id: I7d660b6dc45e37221abf351dd291b90c303943ec
Reviewed-on: https://skia-review.googlesource.com/147810
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Cary Clark <caryclark@skia.org>
2018-08-17 17:38:21 +00:00
..
android Stop using SkTSwap. 2018-06-19 02:06:31 +00:00
atlastext Remove prePathMatrix from SkDevice::drawPath 2018-08-15 14:48:19 +00:00
c move blur impl into core 2018-03-12 18:48:18 +00:00
codec SkCodec: Always use 0 for filling 2018-08-13 16:56:19 +00:00
compute Documentation updates and improved gcc compatibility. 2018-08-17 16:56:17 +00:00
core avoid degenerate point in addPath extend mode 2018-08-17 17:38:21 +00:00
effects move patheffect virtuals to protected and rename 2018-08-16 17:47:22 +00:00
fonts move Sk{Test,Random}ScalerContext to tools 2017-11-10 17:02:20 +00:00
gpu Revert "Make directFilterMaskGPU & directFilterRRectMaskGPU no longer require canFilterMaskGPU's permission" 2018-08-17 15:21:31 +00:00
image port most SkAtomic<T> to std::atomic<T> 2018-08-09 23:40:31 +00:00
images Replace nearly all kRespect with kIgnore 2018-07-12 20:54:14 +00:00
jumper Reland "start cleaning up non-skcms SkColorSpaceXforms" 2018-05-23 12:30:36 +00:00
lazy begin cleanup of malloc porting layer 2018-01-05 21:29:35 +00:00
opts turn on alignment sanitizer 2018-08-09 21:13:15 +00:00
pathops pathops remove degenerate line on close 2018-08-17 17:07:57 +00:00
pdf added optimizations to speed up skinning 2018-08-15 15:52:29 +00:00
pipe added optimizations to speed up skinning 2018-08-15 15:52:29 +00:00
ports Update FreeType to use isSubpixel and isVertical. 2018-08-14 19:57:17 +00:00
sfnt turn on alignment sanitizer 2018-08-09 21:13:15 +00:00
shaders add dstAT param to xform steps 2018-08-14 16:26:53 +00:00
sksl After call 'va_start',some place not call 'va_end' 2018-08-17 13:35:28 +00:00
svg added optimizations to speed up skinning 2018-08-15 15:52:29 +00:00
utils Add internal tree implementation to EdgeList. 2018-08-15 19:55:39 +00:00
xml Move SkNoncopyable to include/private. 2018-07-17 21:39:51 +00:00
xps added optimizations to speed up skinning 2018-08-15 15:52:29 +00:00