Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@7010 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index 88d7c43..5e0d198 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -1034,38 +1034,38 @@
void SkPath::addRoundRect(const SkRect& rect, SkScalar rx, SkScalar ry,
Direction dir) {
assert_known_direction(dir);
-
+
SkScalar w = rect.width();
SkScalar halfW = SkScalarHalf(w);
SkScalar h = rect.height();
SkScalar halfH = SkScalarHalf(h);
-
+
if (halfW <= 0 || halfH <= 0) {
return;
}
-
+
bool skip_hori = rx >= halfW;
bool skip_vert = ry >= halfH;
-
+
if (skip_hori && skip_vert) {
this->addOval(rect, dir);
return;
}
-
+
fDirection = this->hasOnlyMoveTos() ? dir : kUnknown_Direction;
-
+
SkAutoPathBoundsUpdate apbu(this, rect);
SkAutoDisableDirectionCheck(this);
-
+
if (skip_hori) {
rx = halfW;
} else if (skip_vert) {
ry = halfH;
}
-
+
SkScalar sx = SkScalarMul(rx, CUBIC_ARC_FACTOR);
SkScalar sy = SkScalarMul(ry, CUBIC_ARC_FACTOR);
-
+
this->incReserve(17);
this->moveTo(rect.fRight - rx, rect.fTop);
if (dir == kCCW_Direction) {