diff options
author | 2012-11-30 02:01:24 +0000 | |
---|---|---|
committer | 2012-11-30 02:01:24 +0000 | |
commit | c3d7d90973528527131c72549b10c2a21300e0ac (patch) | |
tree | da78cea0337259a1a57d3897008d017a83c60cdc /src/core/SkDraw.cpp | |
parent | 1c2c2fed075e05837878813d6f8fe6ca8fc7ea00 (diff) |
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@6632 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkDraw.cpp')
-rw-r--r-- | src/core/SkDraw.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp index 46b10b70c6..e1ddb337f0 100644 --- a/src/core/SkDraw.cpp +++ b/src/core/SkDraw.cpp @@ -334,10 +334,10 @@ static void bw_pt_rect_16_hair_proc(const PtProcRec& rec, uint32_t value; const SkBitmap* bitmap = blitter->justAnOpaqueColor(&value); SkASSERT(bitmap); - + uint16_t* addr = bitmap->getAddr16(0, 0); int rb = bitmap->rowBytes(); - + for (int i = 0; i < count; i++) { int x = SkScalarFloorToInt(devPts[i].fX); int y = SkScalarFloorToInt(devPts[i].fY); @@ -355,10 +355,10 @@ static void bw_pt_rect_32_hair_proc(const PtProcRec& rec, uint32_t value; const SkBitmap* bitmap = blitter->justAnOpaqueColor(&value); SkASSERT(bitmap); - + SkPMColor* addr = bitmap->getAddr32(0, 0); int rb = bitmap->rowBytes(); - + for (int i = 0; i < count; i++) { int x = SkScalarFloorToInt(devPts[i].fX); int y = SkScalarFloorToInt(devPts[i].fY); @@ -417,13 +417,13 @@ static void bw_square_proc(const PtProcRec& rec, const SkPoint devPts[], for (int i = 0; i < count; i++) { SkFixed x = SkScalarToFixed(devPts[i].fX); SkFixed y = SkScalarToFixed(devPts[i].fY); - + SkXRect r; r.fLeft = x - radius; r.fTop = y - radius; r.fRight = x + radius; r.fBottom = y + radius; - + SkScan::FillXRect(r, *rec.fRC, blitter); } } |