| 35 | class PointIterator { |
| 36 | public: |
| 37 | PointIterator(const std::vector<Point>& points, bool reversed, unsigned startIndex) |
| 38 | : points(points), index(startIndex % points.size()), |
| 39 | advance(reversed ? points.size() - 1 : 1) { |
| 40 | } |
| 41 | |
| 42 | const SkPoint& current() const { |
| 43 | return *reinterpret_cast<const SkPoint*>(&points[index]); |