Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Unified Diff: gm/addarc.cpp

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/aaxfermodes.cpp ('k') | gm/anisotropic.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/addarc.cpp
diff --git a/gm/addarc.cpp b/gm/addarc.cpp
index 0d1ea93133b14b7409de086d902c919a4922ad4b..9280140794af70413a949847c64fde74d9171efd 100644
--- a/gm/addarc.cpp
+++ b/gm/addarc.cpp
@@ -120,12 +120,12 @@ DEF_GM( return new AddArcMeasGM; )
class StrokeCircleGM : public skiagm::GM {
public:
StrokeCircleGM() : fRotate(0) {}
-
+
protected:
SkString onShortName() override { return SkString("strokecircle"); }
-
+
SkISize onISize() override { return SkISize::Make(520, 520); }
-
+
void onDraw(SkCanvas* canvas) override {
canvas->scale(20, 20);
canvas->translate(13, 13);
@@ -176,12 +176,12 @@ static void html_canvas_arc(SkPath* path, SkScalar x, SkScalar y, SkScalar r, Sk
class ManyArcsGM : public skiagm::GM {
public:
ManyArcsGM() {}
-
+
protected:
SkString onShortName() override { return SkString("manyarcs"); }
-
+
SkISize onISize() override { return SkISize::Make(620, 330); }
-
+
void onDraw(SkCanvas* canvas) override {
SkPaint paint;
paint.setAntiAlias(true);
@@ -197,12 +197,12 @@ protected:
for (size_t i = 0; i < SK_ARRAY_COUNT(sweepAngles); ++i) {
sweepAngles[i] *= 180;
}
-
+
SkScalar startAngles[] = { -1, -0.5f, 0, 0.5f };
for (size_t i = 0; i < SK_ARRAY_COUNT(startAngles); ++i) {
startAngles[i] *= 180;
}
-
+
bool anticlockwise = false;
SkScalar sign = 1;
for (size_t i = 0; i < SK_ARRAY_COUNT(startAngles) * 2; ++i) {
@@ -225,9 +225,8 @@ protected:
canvas->translate(0, 40);
}
}
-
+
private:
typedef skiagm::GM INHERITED;
};
DEF_GM( return new ManyArcsGM; )
-
« no previous file with comments | « gm/aaxfermodes.cpp ('k') | gm/anisotropic.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698