aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkMatrix.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-01-05 10:50:55 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-05 18:03:27 +0000
commit8fb3725acfc618c85b02ddf8114c40048e1fcba7 (patch)
treec20e0dab2f0ac95b89543a4acf30766f21227852 /include/core/SkMatrix.h
parent4284613cfe211bfdcf3506f363d382c044ae8b51 (diff)
Privatize separate src/dst version of SkMatrix::mapPointsWithStride.
Change-Id: I0bd6a4ded3667029c8c8336217e12eb93174911e Reviewed-on: https://skia-review.googlesource.com/91380 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.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h
index 5e5ce624cc..d1202431d6 100644
--- a/include/core/SkMatrix.h
+++ b/include/core/SkMatrix.h
@@ -1298,35 +1298,6 @@ public:
}
}
- /** Maps src SkPoint array of length count to dst SkPoint array, 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 |, src = | y |
- | G H I | | 1 |
-
- each resulting dst 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 dst storage for mapped points
- @param src points to transform
- @param stride size of record starting with SkPoint, in bytes
- @param count number of points to transform
- */
- void mapPointsWithStride(SkPoint dst[], const SkPoint src[], size_t stride, int count) const {
- SkASSERT(stride >= sizeof(SkPoint));
- SkASSERT(0 == stride % sizeof(SkScalar));
- for (int i = 0; i < count; ++i) {
- this->mapPoints(dst, src, 1);
- src = (SkPoint*)((intptr_t)src + stride);
- dst = (SkPoint*)((intptr_t)dst + 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: