Index: src/opts/SkPMFloat_none.h |
diff --git a/src/opts/SkPMFloat_none.h b/src/opts/SkPMFloat_none.h |
index 42446e6ac3195836c7cbae5300023804fc3f037d..c10e479f63c36302eba0d476b4d43a7ce443728e 100644 |
--- a/src/opts/SkPMFloat_none.h |
+++ b/src/opts/SkPMFloat_none.h |
@@ -34,7 +34,8 @@ inline Sk4f SkPMFloat::alphas() const { |
return Sk4f(this->a()); |
} |
-inline SkPMFloat SkPMFloat::FromBGRx(SkColor c) { |
+inline SkPMFloat SkPMFloat::FromOpaqueColor(SkColor c) { |
+ SkASSERT(SkColorGetA(c) == 0xFF); |
float inv255 = 1.0f / 255; |
SkPMFloat pmf = SkPMFloat::FromARGB(1.0f, |
SkGetPackedR32(c) * inv255, |