diff options
author | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-18 02:03:03 +0000 |
---|---|---|
committer | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-18 02:03:03 +0000 |
commit | 7a03d86a3d9adcb13432fbd82039725149487c97 (patch) | |
tree | 8fce409fe7b679428410dd32b3d400dff8e2369f /src/effects | |
parent | 6006b5641e575181f2d6f1212b8db491b2c2671c (diff) |
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@6872 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects')
-rw-r--r-- | src/effects/SkDashPathEffect.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/effects/SkDashPathEffect.cpp b/src/effects/SkDashPathEffect.cpp index 2252a1bd03..f2059775b0 100644 --- a/src/effects/SkDashPathEffect.cpp +++ b/src/effects/SkDashPathEffect.cpp @@ -267,7 +267,7 @@ bool SkDashPathEffect::asPoints(PointData* results, // Additionally, they do not necessarily need to be integers. // We cannot allow arbitrary intervals since we want the returned points // to be uniformly sized. - if (fCount != 2 || + if (fCount != 2 || !SkScalarNearlyEqual(fIntervals[0], fIntervals[1]) || !SkScalarIsInt(fIntervals[0]) || !SkScalarIsInt(fIntervals[1])) { @@ -275,7 +275,7 @@ bool SkDashPathEffect::asPoints(PointData* results, } // TODO: this next test could be eased up. The rescaling should not impact - // the equality of the ons & offs. However, we would need to remove the + // the equality of the ons & offs. However, we would need to remove the // integer intervals restriction first if (fScaleToFit) { return false; @@ -319,7 +319,7 @@ bool SkDashPathEffect::asPoints(PointData* results, } if (NULL != results) { - results->fFlags = 0; + results->fFlags = 0; if (SkPaint::kRound_Cap == rec.getCap()) { results->fFlags |= PointData::kCircles_PointFlag; @@ -352,7 +352,7 @@ bool SkDashPathEffect::asPoints(PointData* results, bool partialLast = false; if (len2 > 0) { if (len2 < fIntervals[0]) { - partialLast = true; + partialLast = true; } else { ++numMidPoints; ++results->fNumPoints; |