aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/RepeatTileBench.cpp
diff options
context:
space:
mode:
authorGravatar rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-23 18:09:54 +0000
committerGravatar rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-23 18:09:54 +0000
commitfbfcd5602128ec010c82cb733c9cdc0a3254f9f3 (patch)
treed8b4815d15946c32ee9d254e932411e93be942bb /bench/RepeatTileBench.cpp
parent2abed834789bb64c7da740df4c47efc142b7311a (diff)
Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/)
This CL is part I of IV (I broke down the 1280 files into 4 CLs). Review URL: https://codereview.appspot.com/6485054 git-svn-id: http://skia.googlecode.com/svn/trunk@5262 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/RepeatTileBench.cpp')
-rw-r--r--bench/RepeatTileBench.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/bench/RepeatTileBench.cpp b/bench/RepeatTileBench.cpp
index 8470beddd2..da36205eaf 100644
--- a/bench/RepeatTileBench.cpp
+++ b/bench/RepeatTileBench.cpp
@@ -27,7 +27,7 @@ static void drawIntoBitmap(const SkBitmap& bm) {
p.setColor(SK_ColorRED);
canvas.drawCircle(SkIntToScalar(w)/2, SkIntToScalar(h)/2,
SkIntToScalar(SkMin32(w, h))*3/8, p);
-
+
SkRect r;
r.set(0, 0, SkIntToScalar(w), SkIntToScalar(h));
p.setStyle(SkPaint::kStroke_Style);
@@ -48,7 +48,7 @@ static uint8_t compute666Index(SkPMColor c) {
int r = SkGetPackedR32(c);
int g = SkGetPackedG32(c);
int b = SkGetPackedB32(c);
-
+
return convByteTo6(r) * 36 + convByteTo6(g) * 6 + convByteTo6(b);
}
@@ -70,7 +70,7 @@ static void convertToIndex666(const SkBitmap& src, SkBitmap* dst) {
dst->setConfig(SkBitmap::kIndex8_Config, src.width(), src.height());
dst->allocPixels(ctable);
ctable->unref();
-
+
SkAutoLockPixels alps(src);
SkAutoLockPixels alpd(*dst);
@@ -100,7 +100,7 @@ public:
}
bm.allocPixels();
bm.eraseColor(0);
-
+
drawIntoBitmap(bm);
if (SkBitmap::kIndex8_Config == c) {