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

Unified Diff: gm/stringart.cpp

Issue 24276003: One more try at fixing warnings (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: trying to reupload files Created 7 years, 3 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/stringart.cpp
diff --git a/gm/stringart.cpp b/gm/stringart.cpp
index 006dfe75247f93825d84cd48c6632b7117fd9083..1d81e13f6a02399f72905531f22eb30ad75736c1 100644
--- a/gm/stringart.cpp
+++ b/gm/stringart.cpp
@@ -11,8 +11,8 @@
// Reproduces https://code.google.com/p/chromium/issues/detail?id=279014
-static const SkScalar kWidth = SkIntToScalar(640);
-static const SkScalar kHeight = SkIntToScalar(480);
+static const int kWidth = 640;
+static const int kHeight = 480;
static const SkScalar kAngle = 0.305f;
// Renders a string art shape.
@@ -33,7 +33,7 @@ protected:
virtual void onDraw(SkCanvas* canvas) {
SkScalar angle = kAngle*SK_ScalarPI + SkScalarHalf(SK_ScalarPI);
- SkScalar size = SkMinScalar(kWidth, kHeight);
+ SkScalar size = SkIntToScalar(SkMin32(kWidth, kHeight));
SkPoint center = SkPoint::Make(SkScalarHalf(kWidth), SkScalarHalf(kHeight));
SkScalar length = 5;
SkScalar step = angle;
« 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