Index: src/animator/SkDrawColor.cpp |
diff --git a/src/animator/SkDrawColor.cpp b/src/animator/SkDrawColor.cpp |
index eb57d9dad49ed041e0c748d2db95718786357955..d86a2e93e7261875418395b9811fe06840a6ed64 100644 |
--- a/src/animator/SkDrawColor.cpp |
+++ b/src/animator/SkDrawColor.cpp |
@@ -30,14 +30,14 @@ static SkScalar RGB_to_HSV(SkColor color, HSV_Choice choice) { |
if (choice == kGetValue) |
return value/255; |
SkScalar delta = value - min; |
- SkScalar saturation = value == 0 ? 0 : SkScalarDiv(delta, value); |
+ SkScalar saturation = value == 0 ? 0 : delta / value; |
if (choice == kGetSaturation) |
return saturation; |
SkScalar hue; |
if (saturation == 0) |
hue = 0; |
else { |
- SkScalar part60 = SkScalarDiv(60 * SK_Scalar1, delta); |
+ SkScalar part60 = 60 / delta; |
if (red == value) { |
hue = SkScalarMul(green - blue, part60); |
if (hue < 0) |