use SkScalar instead of int for loops, to avoid warning in canvas->translate() calls
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 23 May 2013 19:47:05 +0000 (19:47 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 23 May 2013 19:47:05 +0000 (19:47 +0000)
BUG=

Review URL: https://codereview.chromium.org/15875012

git-svn-id: http://skia.googlecode.com/svn/trunk@9263 2bbb7eff-a529-9590-31e7-b0007b416f81

gm/cubicpaths.cpp

index 56ed7297f557e97b16c504ce286e3b6ffecbbebf..e0d72b44b4937bf77f7f439512c4005ea60604e7 100644 (file)
@@ -30,9 +30,9 @@ protected:
         SkPaint paint;
         SkRect bounds = path.getBounds();
         
-        for (int dy = -1; dy <= 1; ++dy) {
+        for (SkScalar dy = -1; dy <= 1; dy += 1) {
             canvas->save();
-            for (int dx = -1; dx <= 1; ++dx) {
+            for (SkScalar dx = -1; dx <= 1; dx += 1) {
                 canvas->save();
                 canvas->clipRect(bounds);
                 canvas->translate(dx, dy);