aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2017-11-06 20:02:02 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-07 13:10:38 +0000
commit74f623d1617e0ccf3eddf37aeecabd0ac72369fd (patch)
tree60e29c63d4f695073d538b1ce1c590c6e6df059f /include/core
parentb49d7b0118789dbd8c54b95d40f6163e0a134ef3 (diff)
make point array methods private
Moved method are not used by chromium, google3, or android. SkPoint::setRectIFan isn't used or tested at all. SkPoint::setRectFan and SkPoint::setRectTriStrip are only used internally. These routines pretend that a SkPoint is part of an array of points. Since that's kind of an odd contract to make public, and because they aren't used outside of Skia, relegate them to a priv file. R=bsalomon@google.com,reed@google.com Bug: skia: 6898 Change-Id: I5ec2eb47799f6fd4b2994da962b1fa69ce659931 Reviewed-on: https://skia-review.googlesource.com/68121 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Cary Clark <caryclark@google.com>
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkPoint.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/include/core/SkPoint.h b/include/core/SkPoint.h
index e2af9dda91..f9527bf53e 100644
--- a/include/core/SkPoint.h
+++ b/include/core/SkPoint.h
@@ -197,36 +197,6 @@ struct SK_API SkPoint {
fY = SkScalarAbs(pt.fY);
}
- // counter-clockwise fan
- void setIRectFan(int l, int t, int r, int b) {
- SkPoint* v = this;
- v[0].set(SkIntToScalar(l), SkIntToScalar(t));
- v[1].set(SkIntToScalar(l), SkIntToScalar(b));
- v[2].set(SkIntToScalar(r), SkIntToScalar(b));
- v[3].set(SkIntToScalar(r), SkIntToScalar(t));
- }
- void setIRectFan(int l, int t, int r, int b, size_t stride);
-
- // counter-clockwise fan
- void setRectFan(SkScalar l, SkScalar t, SkScalar r, SkScalar b, size_t stride) {
- SkASSERT(stride >= sizeof(SkPoint));
-
- ((SkPoint*)((intptr_t)this + 0 * stride))->set(l, t);
- ((SkPoint*)((intptr_t)this + 1 * stride))->set(l, b);
- ((SkPoint*)((intptr_t)this + 2 * stride))->set(r, b);
- ((SkPoint*)((intptr_t)this + 3 * stride))->set(r, t);
- }
-
- // tri strip with two counter-clockwise triangles
- void setRectTriStrip(SkScalar l, SkScalar t, SkScalar r, SkScalar b, size_t stride) {
- SkASSERT(stride >= sizeof(SkPoint));
-
- ((SkPoint*)((intptr_t)this + 0 * stride))->set(l, t);
- ((SkPoint*)((intptr_t)this + 1 * stride))->set(l, b);
- ((SkPoint*)((intptr_t)this + 2 * stride))->set(r, t);
- ((SkPoint*)((intptr_t)this + 3 * stride))->set(r, b);
- }
-
static void Offset(SkPoint points[], int count, const SkPoint& offset) {
Offset(points, count, offset.fX, offset.fY);
}