Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(813)

Unified Diff: gm/cubicpaths.cpp

Issue 15875012: use SkScalar instead of int for loops, to avoid warning in canvas->translate() calls (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/cubicpaths.cpp
diff --git a/gm/cubicpaths.cpp b/gm/cubicpaths.cpp
index 56ed7297f557e97b16c504ce286e3b6ffecbbebf..e0d72b44b4937bf77f7f439512c4005ea60604e7 100644
--- a/gm/cubicpaths.cpp
+++ b/gm/cubicpaths.cpp
@@ -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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698