Index: src/opts/SkPMFloat_none.h |
diff --git a/src/opts/SkPMFloat_none.h b/src/opts/SkPMFloat_none.h |
index 42446e6ac3195836c7cbae5300023804fc3f037d..adc0bde3b0040f4b2f5527dd86a9e4582b537e47 100644 |
--- a/src/opts/SkPMFloat_none.h |
+++ b/src/opts/SkPMFloat_none.h |
@@ -37,9 +37,9 @@ inline Sk4f SkPMFloat::alphas() const { |
inline SkPMFloat SkPMFloat::FromBGRx(SkColor c) { |
float inv255 = 1.0f / 255; |
SkPMFloat pmf = SkPMFloat::FromARGB(1.0f, |
- SkGetPackedR32(c) * inv255, |
- SkGetPackedG32(c) * inv255, |
- SkGetPackedB32(c) * inv255); |
+ SkColorGetR(c) * inv255, |
+ SkColorGetG(c) * inv255, |
+ SkColorGetB(c) * inv255); |
SkASSERT(pmf.isValid()); |
return pmf; |
} |