Index: gm/ovals.cpp |
diff --git a/gm/ovals.cpp b/gm/ovals.cpp |
index 96e04885e3e7e5eda82849fa20a8d368be404acd..53ccb16ee9d2079f34080940708fd673026a2f69 100755 |
--- a/gm/ovals.cpp |
+++ b/gm/ovals.cpp |
@@ -127,9 +127,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); |
} |