diff options
author | halcanary <halcanary@google.com> | 2016-03-29 09:03:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-29 09:03:53 -0700 |
commit | 9d524f22bfde5dc3dc8f48e1be39bdebd3bb0304 (patch) | |
tree | fc75ea6f8bc83b552d9ac9c9b4ac0d5a967ee5ac /samplecode/SampleQuadStroker.cpp | |
parent | e577693b3be06d90c824538e7eac0b25b0e02a99 (diff) |
Style bikeshed - remove extraneous whitespace
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1842753002
Review URL: https://codereview.chromium.org/1842753002
Diffstat (limited to 'samplecode/SampleQuadStroker.cpp')
-rw-r--r-- | samplecode/SampleQuadStroker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samplecode/SampleQuadStroker.cpp b/samplecode/SampleQuadStroker.cpp index 40f01fd105..ab65ff6d87 100644 --- a/samplecode/SampleQuadStroker.cpp +++ b/samplecode/SampleQuadStroker.cpp @@ -393,7 +393,7 @@ protected: return; } SkRect bounds = path.getBounds(); - this->setWHZ(SkScalarCeilToInt(bounds.right()), drawText + this->setWHZ(SkScalarCeilToInt(bounds.right()), drawText ? SkScalarRoundToInt(scale * 3 / 2) : SkScalarRoundToInt(scale), SkScalarRoundToInt(950.0f / scale)); erase(fMinSurface); @@ -474,7 +474,7 @@ protected: path.reset(); path.setFillType(SkPath::kEvenOdd_FillType); path.addCircle(center.fX, center.fY, maxSide + width / 2); - SkRect outside = SkRect::MakeXYWH(center.fX - maxSide - width, center.fY - maxSide - width, + SkRect outside = SkRect::MakeXYWH(center.fX - maxSide - width, center.fY - maxSide - width, (maxSide + width) * 2, (maxSide + width) * 2); path.addRect(outside); canvas->drawPath(path, paint); @@ -648,7 +648,7 @@ protected: if (fArcButton.fEnabled) { SkPoint center; if (arcCenter(¢er)) { - r.set(center.fX - fRadius, center.fY - fRadius, center.fX + fRadius, + r.set(center.fX - fRadius, center.fY - fRadius, center.fX + fRadius, center.fY + fRadius); } } |