diff options
author | 2012-08-23 18:09:54 +0000 | |
---|---|---|
committer | 2012-08-23 18:09:54 +0000 | |
commit | fbfcd5602128ec010c82cb733c9cdc0a3254f9f3 (patch) | |
tree | d8b4815d15946c32ee9d254e932411e93be942bb /src/core/SkStroke.cpp | |
parent | 2abed834789bb64c7da740df4c47efc142b7311a (diff) |
Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/)
This CL is part I of IV (I broke down the 1280 files into 4 CLs).
Review URL: https://codereview.appspot.com/6485054
git-svn-id: http://skia.googlecode.com/svn/trunk@5262 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkStroke.cpp')
-rw-r--r-- | src/core/SkStroke.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/SkStroke.cpp b/src/core/SkStroke.cpp index 107a691e6a..0ab1016a46 100644 --- a/src/core/SkStroke.cpp +++ b/src/core/SkStroke.cpp @@ -319,7 +319,7 @@ DRAW_LINE: this->cubic_to(&tmp[3], norm, unit, &dummy, &unitDummy, subDivide); } else { SkVector normalB, normalC; - + // need normals to inset/outset the off-curve pts B and C if (0) { // this is normal to the line between our adjacent pts @@ -585,13 +585,13 @@ public: fSwapWithSrc = false; } } - + ~AutoTmpPath() { if (fSwapWithSrc) { fTmpDst.swap(*const_cast<SkPath*>(&fSrc)); } } - + private: SkPath fTmpDst; const SkPath& fSrc; @@ -608,7 +608,7 @@ void SkStroke::strokePath(const SkPath& src, SkPath* dst) const { if (radius <= 0) { return; } - + #ifdef SK_SCALAR_IS_FIXED void (*proc)(SkPoint pts[], int count) = identity_proc; if (needs_to_shrink(src)) { @@ -686,7 +686,7 @@ void SkStroke::strokePath(const SkPath& src, SkPath* dst) const { paint.setStrokeWidth(7); paint.setStrokeCap(SkPaint::kRound_Cap); canvas->drawLine(pts[0].fX, pts[0].fY, pts[1].fX, pts[1].fY, paint); - } + } #endif #if 0 if (2 == src.countPoints()) { |