diff options
author | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-05 02:01:21 +0000 |
---|---|---|
committer | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-05 02:01:21 +0000 |
commit | 73b140a9f668c189b0682cc5f82d9fb57ff8bc15 (patch) | |
tree | 2c8c0d1f626db0d2167d43b103e1d561b9967652 /gm | |
parent | b1c8827321b230a77ea03cbdad8008b4d33844ff (diff) |
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@6669 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm')
-rw-r--r-- | gm/dashing.cpp | 6 | ||||
-rw-r--r-- | gm/pathinterior.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gm/dashing.cpp b/gm/dashing.cpp index 935ae4a0d3..70fb9b1fa2 100644 --- a/gm/dashing.cpp +++ b/gm/dashing.cpp @@ -185,8 +185,8 @@ protected: // Draw a 100x100 block of dashed lines. The horizontal ones are BW // while the vertical ones are AA. - void drawDashedLines(SkCanvas* canvas, - SkScalar lineLength, + void drawDashedLines(SkCanvas* canvas, + SkScalar lineLength, SkScalar phase, SkScalar dashLength, int strokeWidth, @@ -284,7 +284,7 @@ protected: // 3on/3off 3x1 rects - should use rect fast path regardless of phase for (int phase = 0; phase <= 3; ++phase) { canvas->save(); - canvas->translate(SkIntToScalar(phase*110+2), + canvas->translate(SkIntToScalar(phase*110+2), SkIntToScalar(330)); this->drawDashedLines(canvas, 100, SkIntToScalar(phase), SkIntToScalar(3), 1, false); canvas->restore(); diff --git a/gm/pathinterior.cpp b/gm/pathinterior.cpp index fd2175b6c3..fbae9f68be 100644 --- a/gm/pathinterior.cpp +++ b/gm/pathinterior.cpp @@ -49,7 +49,7 @@ protected: paint.setStyle(SkPaint::kStroke_Style); paint.setColor(SK_ColorRED); canvas->drawPath(path, paint); - + if (hasInterior) { paint.setStyle(SkPaint::kFill_Style); paint.setColor(0x8800FF00); @@ -89,7 +89,7 @@ protected: SkScalar dy = (i % 4) * rect.height() * 6 / 5; i++; path.offset(dx, dy); - + this->show(canvas, path); } } |