aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkMatrixPriv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkMatrixPriv.h')
-rw-r--r--src/core/SkMatrixPriv.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/SkMatrixPriv.h b/src/core/SkMatrixPriv.h
index ee6f8a153d..47a1d5f287 100644
--- a/src/core/SkMatrixPriv.h
+++ b/src/core/SkMatrixPriv.h
@@ -66,7 +66,7 @@ public:
}
}
- static void SetMappedRectFan(const SkMatrix& mx, const SkRect& rect, SkPoint quad[4]) {
+ static void SetMappedRectTriStrip(const SkMatrix& mx, const SkRect& rect, SkPoint quad[4]) {
SkMatrix::TypeMask tm = mx.getType();
SkScalar l = rect.fLeft;
SkScalar t = rect.fTop;
@@ -88,12 +88,9 @@ public:
r = sx * r + tx;
b = sy * b + ty;
}
- quad[0].set(l, t);
- quad[1].set(l, b);
- quad[2].set(r, b);
- quad[3].set(r, t);
+ quad[0].setRectTriStrip(l, t, r, b, sizeof(SkPoint));
} else {
- quad[0].setRectFan(l, t, r, b);
+ quad[0].setRectTriStrip(l, t, r, b, sizeof(SkPoint));
mx.mapPoints(quad, quad, 4);
}
}