aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleAAGeometry.cpp
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2017-10-09 15:45:33 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-09 21:20:34 +0000
commit63fd760a37905c45d26fc3d49cac261fad1b4808 (patch)
tree279aa7293ea1773ac60230790868fe0e1fc725b0 /samplecode/SampleAAGeometry.cpp
parenta49909aa24a370d6dff98d300d0c42ff8cd2c623 (diff)
Remove trailing whitespace.
Also adds a presubmit to prevent adding trailing whitespace to source code in the future. Change-Id: I41a4df81487f6f00aa19b188f0cac6a3377efde6 Reviewed-on: https://skia-review.googlesource.com/57380 Reviewed-by: Ravi Mistry <rmistry@google.com> Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'samplecode/SampleAAGeometry.cpp')
-rw-r--r--samplecode/SampleAAGeometry.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/samplecode/SampleAAGeometry.cpp b/samplecode/SampleAAGeometry.cpp
index 5b07665129..350d3c880f 100644
--- a/samplecode/SampleAAGeometry.cpp
+++ b/samplecode/SampleAAGeometry.cpp
@@ -616,11 +616,11 @@ struct UniControl {
struct BiControl : public UniControl {
SkScalar fValHi;
- BiControl(const char* name, SkScalar min, SkScalar max)
+ BiControl(const char* name, SkScalar min, SkScalar max)
: UniControl(name, min, max)
, fValHi(fMax) {
}
-
+
virtual ~BiControl() {}
virtual void draw(SkCanvas* canvas, const ControlPaints& paints) {
@@ -683,7 +683,7 @@ public:
MyClick(SkView* target, ClickType type, ControlType control)
: Click(target)
- , fType(type)
+ , fType(type)
, fControl(control)
, fVerb((SkPath::Verb) -1)
, fWeight(1) {
@@ -691,7 +691,7 @@ public:
MyClick(SkView* target, ClickType type, int index)
: Click(target)
- , fType(type)
+ , fType(type)
, fControl((ControlType) index)
, fVerb((SkPath::Verb) -1)
, fWeight(1) {
@@ -699,7 +699,7 @@ public:
MyClick(SkView* target, ClickType type, int index, SkPath::Verb verb, SkScalar weight)
: Click(target)
- , fType(type)
+ , fType(type)
, fControl((ControlType) index)
, fVerb(verb)
, fWeight(weight) {
@@ -819,7 +819,7 @@ class AAGeometryView : public SampleView {
public:
- AAGeometryView()
+ AAGeometryView()
: fResControl("error", 0, 10)
, fWeightControl("weight", 0, 5)
, fWidthControl("width", FLT_EPSILON, 100)
@@ -942,7 +942,7 @@ public:
SET_CONTROL(Filter);
SET_CONTROL(Weight);
}
-
+
#undef SET_CONTROL
void set_buttonList(int index, Button* button, MyClick::ControlType type) {
@@ -973,7 +973,7 @@ public:
// overrides from SkEventSink
bool onQuery(SkEvent* evt) override;
-
+
void onSizeChange() override {
setControlButtonsPos();
this->INHERITED::onSizeChange();
@@ -1173,7 +1173,7 @@ public:
foundFirst = false;
}
break;
- default:
+ default:
break;
}
if (SkPath::kLine_Verb <= verb && verb <= SkPath::kCubic_Verb) {
@@ -1228,7 +1228,7 @@ public:
canvas->drawPath(cPath, complex ? fComplexPaint : fActivePaint);
draw_points(canvas, pts, 4);
} break;
- default:
+ default:
break;
}
return;
@@ -1289,7 +1289,7 @@ public:
return counter;
}
} break;
- default:
+ default:
break;
}
}
@@ -1400,7 +1400,7 @@ public:
case SkPath::kCubic_Verb:
cubic_coverage(pts, distanceMap, w, h);
break;
- default:
+ default:
break;
}
}
@@ -1513,7 +1513,7 @@ public:
if (!outPath.getBounds().intersects(inPath.getBounds())) {
continue;
}
-
+
}
}
}
@@ -1804,9 +1804,9 @@ static struct KeyCommand {
const char* fDescriptionR;
bool (AAGeometryView::*fFunction)();
} kKeyCommandList[] = {
- { ' ', 0, "space", "center path", &AAGeometryView::scaleToFit },
- { '-', 0, "-", "zoom out", &AAGeometryView::scaleDown },
- { '+', '=', "+/=", "zoom in", &AAGeometryView::scaleUp },
+ { ' ', 0, "space", "center path", &AAGeometryView::scaleToFit },
+ { '-', 0, "-", "zoom out", &AAGeometryView::scaleDown },
+ { '+', '=', "+/=", "zoom in", &AAGeometryView::scaleUp },
{ 'd', 0, "d", "dump to console", &AAGeometryView::pathDump },
{ 'h', 0, "h", "hide controls", &AAGeometryView::hideAll },
{ 'r', 0, "r", "reset path", &AAGeometryView::constructPath },
@@ -1869,5 +1869,5 @@ bool AAGeometryView::onQuery(SkEvent* evt) {
}
return this->INHERITED::onQuery(evt);
}
-
+
DEF_SAMPLE( return new AAGeometryView; )