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

Unified Diff: gm/roundrects.cpp

Issue 85463005: remove SkFloatToScalar macro (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add flag to expose SkFloatToScalar to chromium Created 7 years, 1 month 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 | « gm/perlinnoise.cpp ('k') | gm/shaderbounds.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/roundrects.cpp
diff --git a/gm/roundrects.cpp b/gm/roundrects.cpp
index 3f1c49ebdd7974ae57bd6873de63b9f08d5d0e2c..7f5b9eaf082f7f3d1b3957897ba25f25358ab3e1 100644
--- a/gm/roundrects.cpp
+++ b/gm/roundrects.cpp
@@ -128,9 +128,9 @@ protected:
SkColor genColor(SkRandom* rand) {
SkScalar hsv[3];
- hsv[0] = SkFloatToScalar(rand->nextRangeF(0.0f, 360.0f));
- hsv[1] = SkFloatToScalar(rand->nextRangeF(0.75f, 1.0f));
- hsv[2] = SkFloatToScalar(rand->nextRangeF(0.75f, 1.0f));
+ hsv[0] = rand->nextRangeF(0.0f, 360.0f);
+ hsv[1] = rand->nextRangeF(0.75f, 1.0f);
+ hsv[2] = rand->nextRangeF(0.75f, 1.0f);
return SkHSVToColor(hsv);
}
« no previous file with comments | « gm/perlinnoise.cpp ('k') | gm/shaderbounds.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698