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); |
} |