diff options
author | 2012-06-01 17:44:28 +0000 | |
---|---|---|
committer | 2012-06-01 17:44:28 +0000 | |
commit | a3f05facab01712a1b58e60a70b0dbdb90a39830 (patch) | |
tree | 07ed26e6e37b2b66332a7c1a4af8cbe91f4845ff /experimental/Intersection/SimplifyFindNext_Test.cpp | |
parent | 99840553cda3184ec2e32fbb192d104741ceea86 (diff) |
shape ops work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@4118 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/Intersection/SimplifyFindNext_Test.cpp')
-rw-r--r-- | experimental/Intersection/SimplifyFindNext_Test.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/experimental/Intersection/SimplifyFindNext_Test.cpp b/experimental/Intersection/SimplifyFindNext_Test.cpp index e30908d253..c83de89531 100644 --- a/experimental/Intersection/SimplifyFindNext_Test.cpp +++ b/experimental/Intersection/SimplifyFindNext_Test.cpp @@ -29,13 +29,11 @@ static const SimplifyFindNextTest::Segment* testCommon( fixOtherTIndex(contourList); SimplifyFindNextTest::Segment& segment = contours[0].fSegments[0]; SkPoint pts[2]; - double startT = segment.t(endIndex); - segment.xyAtT(startT, &pts[0]); + pts[0] = segment.xyAtT(&segment.span(endIndex)); int nextStart, nextEnd; SimplifyFindNextTest::Segment* next = segment.findNext(winding, startIndex, endIndex, nextStart, nextEnd); - double endT = next->t(nextStart); - next->xyAtT(endT, &pts[1]); + pts[1] = next->xyAtT(&segment.span(nextStart)); SkASSERT(pts[0] == pts[1]); return next; } |