Index: bench/PMFloatBench.cpp |
diff --git a/bench/PMFloatBench.cpp b/bench/PMFloatBench.cpp |
index 1f9c291cde1b3b414b98805ea5ed1cb711e6cd96..ee4914a45b018b8e29b064088a588500c912e5d9 100644 |
--- a/bench/PMFloatBench.cpp |
+++ b/bench/PMFloatBench.cpp |
@@ -30,8 +30,7 @@ struct PMFloatBench : public Benchmark { |
// But it's a lot faster not to, and this code won't really mind the non-PM colors. |
SkPMColor c = lcg_rand(&seed); |
#endif |
- SkPMFloat pmf; |
- pmf.set(c); |
+ SkPMFloat pmf = SkPMFloat::FromPMColor(c); |
SkPMColor back = fClamp ? pmf.clamped() : pmf.get(); |
junk ^= back; |
} |