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

Unified Diff: gm/ovals.cpp

Issue 85463005: remove SkFloatToScalar macro (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add failing test back 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
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);
}
« no previous file with comments | « gm/matrixconvolution.cpp ('k') | gm/perlinnoise.cpp » ('j') | include/core/SkScalar.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698