diff options
author | 2017-11-06 20:02:02 -0500 | |
---|---|---|
committer | 2017-11-07 13:10:38 +0000 | |
commit | 74f623d1617e0ccf3eddf37aeecabd0ac72369fd (patch) | |
tree | 60e29c63d4f695073d538b1ce1c590c6e6df059f /gm/convexpolyeffect.cpp | |
parent | b49d7b0118789dbd8c54b95d40f6163e0a134ef3 (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 'gm/convexpolyeffect.cpp')
-rw-r--r-- | gm/convexpolyeffect.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/convexpolyeffect.cpp b/gm/convexpolyeffect.cpp index 16fad46a9c..fc4b8c0f64 100644 --- a/gm/convexpolyeffect.cpp +++ b/gm/convexpolyeffect.cpp @@ -19,6 +19,7 @@ #include "GrTest.h" #include "SkColorPriv.h" #include "SkGeometry.h" +#include "SkPointPriv.h" #include "SkTLList.h" #include "effects/GrConvexPolyEffect.h" #include "ops/GrMeshDrawOp.h" @@ -85,7 +86,7 @@ private: return; } - verts->setRectTriStrip(fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom, + SkPointPriv::SetRectTriStrip(verts, fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom, sizeof(SkPoint)); helper.recordDraw( |