diff options
Diffstat (limited to 'gm/nonclosedpaths.cpp')
-rw-r--r-- | gm/nonclosedpaths.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/nonclosedpaths.cpp b/gm/nonclosedpaths.cpp index bc37c54a83..98ccb1cb15 100644 --- a/gm/nonclosedpaths.cpp +++ b/gm/nonclosedpaths.cpp @@ -71,7 +71,7 @@ protected: // 0(may use hairline rendering), 10(common case for stroke-style) // 40 and 50(>= geometry width/height, make the contour filled in fact) static const int kStrokeWidth[] = {0, 10, 40, 50}; - size_t numWidths = SK_ARRAY_COUNT(kStrokeWidth); + int numWidths = SK_ARRAY_COUNT(kStrokeWidth); static const SkPaint::Style kStyle[] = { SkPaint::kStroke_Style, SkPaint::kStrokeAndFill_Style @@ -98,7 +98,7 @@ protected: for (size_t style = 0; style < SK_ARRAY_COUNT(kStyle); ++style) { for (size_t cap = 0; cap < SK_ARRAY_COUNT(kCap); ++cap) { for (size_t join = 0; join < SK_ARRAY_COUNT(kJoin); ++join) { - for (size_t width = 0; width < numWidths; ++width) { + for (int width = 0; width < numWidths; ++width) { canvas->save(); SetLocation(canvas, counter, SkPaint::kJoinCount * numWidths); |