diff options
author | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-13 07:01:15 +0000 |
---|---|---|
committer | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-13 07:01:15 +0000 |
commit | 4bb50b22fce5c4031549976cf7b04d63cc22e624 (patch) | |
tree | cf0192b42ee6fb0bc13fb54a4cffbff9ae11a62c /src | |
parent | ab02627ae75f49271837b05c64721eb454d78ce5 (diff) |
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@8670 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkGeometry.cpp | 13 | ||||
-rw-r--r-- | src/core/SkPictureRecord.cpp | 2 |
2 files changed, 7 insertions, 8 deletions
diff --git a/src/core/SkGeometry.cpp b/src/core/SkGeometry.cpp index 2185ef7bfb..f6b7e5f6f2 100644 --- a/src/core/SkGeometry.cpp +++ b/src/core/SkGeometry.cpp @@ -1386,7 +1386,7 @@ int SkBuildQuadArc(const SkVector& uStart, const SkVector& uStop, static SkScalar eval_ratquad(const SkScalar src[], SkScalar w, SkScalar t) { SkASSERT(src); SkASSERT(t >= 0 && t <= SK_Scalar1); - + SkScalar src2w = SkScalarMul(src[2], w); SkScalar C = src[0]; SkScalar A = src[4] - 2 * src2w + C; @@ -1403,11 +1403,11 @@ static SkScalar eval_ratquad(const SkScalar src[], SkScalar w, SkScalar t) { struct SkP3D { SkScalar fX, fY, fZ; - + void set(SkScalar x, SkScalar y, SkScalar z) { fX = x; fY = y; fZ = z; } - + void projectDown(SkPoint* dst) const { dst->set(fX / fZ, fY / fZ); } @@ -1431,7 +1431,7 @@ static void ratquad_mapTo3D(const SkPoint src[3], SkScalar w, SkP3D dst[]) { void SkRationalQuad::evalAt(SkScalar t, SkPoint* pt) const { SkASSERT(t >= 0 && t <= SK_Scalar1); - + if (pt) { pt->set(eval_ratquad(&fPts[0].fX, fW, t), eval_ratquad(&fPts[0].fY, fW, t)); @@ -1442,11 +1442,11 @@ void SkRationalQuad::chopAt(SkScalar t, SkRationalQuad dst[2]) const { SkP3D tmp[3], tmp2[3]; ratquad_mapTo3D(fPts, fW, tmp); - + p3d_interp(&tmp[0].fX, &tmp2[0].fX, t); p3d_interp(&tmp[0].fY, &tmp2[0].fY, t); p3d_interp(&tmp[0].fZ, &tmp2[0].fZ, t); - + dst[0].fPts[0] = fPts[0]; tmp2[0].projectDown(&dst[0].fPts[1]); tmp2[1].projectDown(&dst[0].fPts[2]); dst[1].fPts[0] = dst[0].fPts[2]; @@ -1456,4 +1456,3 @@ void SkRationalQuad::chopAt(SkScalar t, SkRationalQuad dst[2]) const { dst[0].fW = tmp2[0].fZ; // ????? dst[1].fW = tmp2[2].fZ; // ????? } - diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp index f4086993ad..375bf42662 100644 --- a/src/core/SkPictureRecord.cpp +++ b/src/core/SkPictureRecord.cpp @@ -576,7 +576,7 @@ void SkPictureRecord::restore() { break; } } - } + } if ((fRecordFlags & SkPicture::kDisableRecordOptimizations_RecordingFlag) || SK_ARRAY_COUNT(gPictureRecordOpts) == opt) { |