summaryrefslogtreecommitdiffstats
path: root/gfx
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-05-27 17:59:55 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-05-27 17:59:55 +0200
commit47c52f2dc2cc4eb4f5582a7ca50b682548b1708c (patch)
treeb455734703df934f07a8bd791b9c4be1c3033a0d /gfx
parent5b5743eeeb799cfcbb7386a36fc92dd3c31ac678 (diff)
downloadUXP-47c52f2dc2cc4eb4f5582a7ca50b682548b1708c.tar
UXP-47c52f2dc2cc4eb4f5582a7ca50b682548b1708c.tar.gz
UXP-47c52f2dc2cc4eb4f5582a7ca50b682548b1708c.tar.lz
UXP-47c52f2dc2cc4eb4f5582a7ca50b682548b1708c.tar.xz
UXP-47c52f2dc2cc4eb4f5582a7ca50b682548b1708c.zip
Port an upstream Skia fix.
Diffstat (limited to 'gfx')
-rw-r--r--gfx/skia/skia/src/core/SkPath.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gfx/skia/skia/src/core/SkPath.cpp b/gfx/skia/skia/src/core/SkPath.cpp
index fc3db3ee5..88a449993 100644
--- a/gfx/skia/skia/src/core/SkPath.cpp
+++ b/gfx/skia/skia/src/core/SkPath.cpp
@@ -1620,10 +1620,10 @@ void SkPath::reverseAddPath(const SkPath& srcPath) {
src = tmp.set(srcPath);
}
- SkPathRef::Editor ed(&fPathRef, src->fPathRef->countPoints(), src->fPathRef->countVerbs());
+ SkPathRef::Editor ed(&fPathRef, src->countPoints(), src->countVerbs());
const SkPoint* pts = src->fPathRef->pointsEnd();
- // we will iterator through src's verbs backwards
+ // we will iterate through src's verbs backwards
const uint8_t* verbs = src->fPathRef->verbsMemBegin(); // points at the last verb
const uint8_t* verbsEnd = src->fPathRef->verbs(); // points just past the first verb
const SkScalar* conicWeights = src->fPathRef->conicWeightsEnd();
@@ -1743,6 +1743,7 @@ void SkPath::transform(const SkMatrix& matrix, SkPath* dst) const {
SkPathRef::CreateTransformedCopy(&dst->fPathRef, *fPathRef.get(), matrix);
if (this != dst) {
+ dst->fLastMoveToIndex = fLastMoveToIndex;
dst->fFillType = fFillType;
dst->fConvexity = kUnknown_Convexity;
dst->fIsVolatile = fIsVolatile;