From fbfcd5602128ec010c82cb733c9cdc0a3254f9f3 Mon Sep 17 00:00:00 2001 From: "rmistry@google.com" Date: Thu, 23 Aug 2012 18:09:54 +0000 Subject: 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 --- bench/RepeatTileBench.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bench/RepeatTileBench.cpp') 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) { -- cgit v1.2.3