Index: src/animator/SkDrawColor.cpp |
diff --git a/src/animator/SkDrawColor.cpp b/src/animator/SkDrawColor.cpp |
index b6bc261d718167b56a3ee590f891bc715084612d..00c429b5a1842132fdc48f604155a99b96d40c23 100644 |
--- a/src/animator/SkDrawColor.cpp |
+++ b/src/animator/SkDrawColor.cpp |
@@ -226,11 +226,7 @@ bool SkDrawColor::setProperty(int index, SkScriptValue& value) { |
switch (index) { |
case SK_PROPERTY(alpha): |
uint8_t alpha; |
- #ifdef SK_SCALAR_IS_FLOAT |
alpha = scalar == SK_Scalar1 ? 255 : SkToU8((U8CPU) (scalar * 256)); |
- #else |
- alpha = SkToU8((scalar - (scalar >= SK_ScalarHalf)) >> 8); |
- #endif |
color = SkColorSetARGB(alpha, SkColorGetR(color), |
SkColorGetG(color), SkColorGetB(color)); |
break; |