Index: src/opts/SkPMFloat_none.h |
diff --git a/src/opts/SkPMFloat_none.h b/src/opts/SkPMFloat_none.h |
index b67c8d74204af282a07b5c6519503365acad8958..011ce07014851101dde45dbb34a1907e8c1796b9 100644 |
--- a/src/opts/SkPMFloat_none.h |
+++ b/src/opts/SkPMFloat_none.h |
@@ -1,10 +1,10 @@ |
#include "SkColorPriv.h" |
-inline void SkPMFloat::set(SkPMColor c) { |
- this->setA(SkGetPackedA32(c)); |
- this->setR(SkGetPackedR32(c)); |
- this->setG(SkGetPackedG32(c)); |
- this->setB(SkGetPackedB32(c)); |
+inline SkPMFloat::SkPMFloat(SkPMColor c) { |
+ *this = SkPMFloat::FromARGB(SkGetPackedA32(c), |
+ SkGetPackedR32(c), |
+ SkGetPackedG32(c), |
+ SkGetPackedB32(c)); |
SkASSERT(this->isValid()); |
} |