diff options
author | 2013-05-30 14:57:55 +0000 | |
---|---|---|
committer | 2013-05-30 14:57:55 +0000 | |
commit | 7950a9eba71f65365d88021680a16f245ad3fa68 (patch) | |
tree | 4906a9e50f93585672a93c984683600b3714acb2 /src/pathops/SkOpSegment.h | |
parent | a5d3e77420621c912383c3b22e542d9413d68278 (diff) |
add asserts to point<-->verb helpers
patch from issue 16153005
BUG=
Review URL: https://codereview.chromium.org/16195004
git-svn-id: http://skia.googlecode.com/svn/trunk@9344 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/pathops/SkOpSegment.h')
-rw-r--r-- | src/pathops/SkOpSegment.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pathops/SkOpSegment.h b/src/pathops/SkOpSegment.h index d2322c8be1..e489acfb02 100644 --- a/src/pathops/SkOpSegment.h +++ b/src/pathops/SkOpSegment.h @@ -54,7 +54,7 @@ public: } SkVector dxdy(int index) const { - return (*CurveSlopeAtT[fVerb])(fPts, fTs[index].fT); + return (*CurveSlopeAtT[SkPathOpsVerbToPoints(fVerb)])(fPts, fTs[index].fT); } SkScalar dy(int index) const { @@ -82,7 +82,7 @@ public: } bool isVertical(int start, int end) const { - return (*CurveIsVertical[fVerb])(fPts, start, end); + return (*CurveIsVertical[SkPathOpsVerbToPoints(fVerb)])(fPts, start, end); } bool operand() const { @@ -206,7 +206,7 @@ public: // used only by right angle winding finding SkPoint xyAtT(double mid) const { - return (*CurvePointAtT[fVerb])(fPts, mid); + return (*CurvePointAtT[SkPathOpsVerbToPoints(fVerb)])(fPts, mid); } const SkPoint& xyAtT(int index) const { |