Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/)
This CL is part III of IV (I broke down the 1280 files into 4 CLs).
Review URL: https://codereview.appspot.com/6475053
git-svn-id: http://skia.googlecode.com/svn/trunk@5264 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SampleMeasure.cpp b/samplecode/SampleMeasure.cpp
index 35ad5bd..18b3720 100644
--- a/samplecode/SampleMeasure.cpp
+++ b/samplecode/SampleMeasure.cpp
@@ -56,10 +56,10 @@
p.setLinearText(gSettings[i].fLinearText);
p.setDevKernText(gSettings[i].fDevKernText);
SkScalar scale = gSettings[i].fScale;
-
+
int n = p.getTextWidths(text, len, widths, rects);
SkScalar w = p.measureText(text, len, &bounds, scale);
-
+
p.setStyle(SkPaint::kFill_Style);
p.setColor(0x8888FF88);
canvas->drawRect(bounds, p);
@@ -81,7 +81,7 @@
canvas->drawLine(0, 0, w, 0, p);
p.setStrokeWidth(SkIntToScalar(4));
canvas->drawPoint(x, 0, p);
-
+
canvas->translate(0, dy);
}
}
@@ -90,7 +90,7 @@
public:
SkPaint fPaint;
- MeasureView() {
+ MeasureView() {
fPaint.setAntiAlias(true);
fPaint.setTextSize(SkIntToScalar(64));
this->setBGColor(0xFFDDDDDD);
@@ -105,12 +105,12 @@
}
return this->INHERITED::onQuery(evt);
}
-
+
virtual void onDrawContent(SkCanvas* canvas) {
canvas->translate(fPaint.getTextSize(), fPaint.getTextSize());
doMeasure(canvas, fPaint, "Hamburgefons");
}
-
+
private:
typedef SampleView INHERITED;
};