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/SampleTextAlpha.cpp b/samplecode/SampleTextAlpha.cpp
index de1461f..6333588 100644
--- a/samplecode/SampleTextAlpha.cpp
+++ b/samplecode/SampleTextAlpha.cpp
@@ -31,7 +31,7 @@
if (bm.config() != SkBitmap::kRGB_565_Config) {
return;
}
-
+
for (int y = 0; y < bm.height(); y++) {
for (int x = 0; x < bm.width(); x++) {
uint16_t c = *bm.getAddr16(x, y);
@@ -44,11 +44,11 @@
}
class TextAlphaView : public SampleView {
-public:
- TextAlphaView() {
+public:
+ TextAlphaView() {
fByte = 0xFF;
}
-
+
protected:
// overrides from SkEventSink
virtual bool onQuery(SkEvent* evt) {
@@ -59,23 +59,23 @@
}
return this->INHERITED::onQuery(evt);
}
-
+
virtual void onDrawContent(SkCanvas* canvas) {
const char* str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
SkPaint paint;
SkScalar x = SkIntToScalar(10);
SkScalar y = SkIntToScalar(20);
-
+
paint.setFlags(0x105);
-
+
paint.setARGB(fByte, 0xFF, 0xFF, 0xFF);
-
+
paint.setMaskFilter(SkBlurMaskFilter::Create(SkIntToScalar(3),
SkBlurMaskFilter::kNormal_BlurStyle));
paint.getMaskFilter()->unref();
-
+
SkRandom rand;
-
+
for (int ps = 6; ps <= 35; ps++) {
paint.setColor(rand.nextU() | (0xFF << 24));
paint.setTextSize(SkIntToScalar(ps));
@@ -94,11 +94,11 @@
this->inval(NULL);
}
}
-
+
virtual SkView::Click* onFindClickHandler(SkScalar x, SkScalar y) {
return new Click(this);
}
-
+
virtual bool onClick(Click* click) {
int y = click->fICurr.fY;
if (y < 0) {
@@ -110,7 +110,7 @@
this->inval(NULL);
return true;
}
-
+
private:
int fByte;