aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-04 12:07:46 +0000
committerGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-04 12:07:46 +0000
commitd9f65e3df45c9b4994c70f6bf13d29985afd2f65 (patch)
treed034ddf3c30a55ef7d0f54a0c4da8ad8ad5a5bfd /src
parentb16033a25b91f9e45d07bd4b955c8dbcfd23e8d5 (diff)
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@7010 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/core/SkMatrix.cpp2
-rw-r--r--src/core/SkPath.cpp18
2 files changed, 10 insertions, 10 deletions
diff --git a/src/core/SkMatrix.cpp b/src/core/SkMatrix.cpp
index 1eabc78fba..5c9547e8a7 100644
--- a/src/core/SkMatrix.cpp
+++ b/src/core/SkMatrix.cpp
@@ -1826,7 +1826,7 @@ bool SkTreatAsSprite(const SkMatrix& mat, int width, int height,
SkRect dst;
SkIRect isrc = { 0, 0, width, height };
-
+
{
SkRect src;
src.set(isrc);
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index 88d7c43d6b..5e0d198182 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -1034,38 +1034,38 @@ bool SkPath::hasOnlyMoveTos() const {
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) {