aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkMatrix.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-01-05 13:49:07 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-05 19:32:15 +0000
commitfa3783f17dba971e3204ba950965d9c65eb8711d (patch)
tree321621e6f60ffaee29c08e8146779423596332d4 /include/core/SkMatrix.h
parentcea2271970febf51d088e403f972e6eae7c934da (diff)
Remove public version of SkMatrix::mapPointsWithStride.
Use private version already in SkMatrixPriv. Change-Id: I6e9546afdf2b072402f9deecec99a6d236e2c7f4 Reviewed-on: https://skia-review.googlesource.com/91400 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include/core/SkMatrix.h')
-rw-r--r--include/core/SkMatrix.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h
index d1202431d6..edbfedd5b0 100644
--- a/include/core/SkMatrix.h
+++ b/include/core/SkMatrix.h
@@ -1272,32 +1272,6 @@ public:
this->mapPoints(pts, pts, count);
}
- /** Maps count pts, skipping stride bytes to advance from one SkPoint to the next.
- Points are mapped by multiplying each SkPoint by SkMatrix. Given:
-
- | A B C | | x |
- Matrix = | D E F |, pt = | y |
- | G H I | | 1 |
-
- each resulting pts SkPoint is computed as:
-
- |A B C| |x| Ax+By+C Dx+Ey+F
- Matrix * pt = |D E F| |y| = |Ax+By+C Dx+Ey+F Gx+Hy+I| = ------- , -------
- |G H I| |1| Gx+Hy+I Gx+Hy+I
-
- @param pts storage for mapped points
- @param stride size of record starting with SkPoint, in bytes
- @param count number of points to transform
- */
- void mapPointsWithStride(SkPoint pts[], size_t stride, int count) const {
- SkASSERT(stride >= sizeof(SkPoint));
- SkASSERT(0 == stride % sizeof(SkScalar));
- for (int i = 0; i < count; ++i) {
- this->mapPoints(pts, pts, 1);
- pts = (SkPoint*)((intptr_t)pts + stride);
- }
- }
-
/** Maps src SkPoint3 array of length count to dst SkPoint3 array, which must of length count or
greater. SkPoint3 array is mapped by multiplying each SkPoint3 by SkMatrix. Given: