diff options
author | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-28 02:01:18 +0000 |
---|---|---|
committer | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-28 02:01:18 +0000 |
commit | 8d83d0db6433e009c6c7f9adbd2580578b6f297e (patch) | |
tree | dcf515e19a0d12d60a1b2e35c7d826845e90d2c6 /experimental | |
parent | 3586ece1ddbb48cabb2e7a4792be9ff5d74e40d9 (diff) |
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@6956 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental')
-rw-r--r-- | experimental/Intersection/Simplify.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/experimental/Intersection/Simplify.cpp b/experimental/Intersection/Simplify.cpp index 35ccbc8846..28766792f3 100644 --- a/experimental/Intersection/Simplify.cpp +++ b/experimental/Intersection/Simplify.cpp @@ -2046,7 +2046,7 @@ public: xhitSomething); hitSomething = xhitSomething; } - + return bestT; } @@ -2905,7 +2905,7 @@ public: fPts = pts; fVerb = verb; } - + void initWinding(int start, int end) { int local = spanSign(start, end); int oppLocal = oppSign(start, end); @@ -2927,11 +2927,11 @@ public: /* when we start with a vertical intersect, we try to use the dx to determine if the edge is to the left or the right of vertical. This determines if we need to add the span's -sign or not. However, this isn't enough. -If the supplied sign (winding) is zero, then we didn't hit another vertical span, so dx is needed. +sign or not. However, this isn't enough. +If the supplied sign (winding) is zero, then we didn't hit another vertical span, so dx is needed. If there was a winding, then it may or may not need adjusting. If the span the winding was borrowed from has the same x direction as this span, the winding should change. If the dx is opposite, then -the same winding is shared by both. +the same winding is shared by both. */ void initWinding(int start, int end, double tHit, int winding, SkScalar hitDx, int oppWind, SkScalar hitOppDx) { @@ -3746,7 +3746,7 @@ the same winding is shared by both. return updateWinding(tIndex, endIndex); } - int windingAtT(double tHit, int tIndex, bool crossOpp, SkScalar& dx) const { + int windingAtT(double tHit, int tIndex, bool crossOpp, SkScalar& dx) const { if (approximately_zero(tHit - t(tIndex))) { // if we hit the end of a span, disregard return SK_MinS32; } @@ -5951,7 +5951,7 @@ static Segment* findSortableTop(SkTDArray<Contour*>& contourList, bool& firstCon oppContourWinding = rightAngleWinding(contourList, current, index, endIndex, tHit, hitOppDx, tryAgain, true); } while (tryAgain); - + current->initWinding(index, endIndex, tHit, contourWinding, hitDx, oppContourWinding, hitOppDx); return current; } |