| Index: src/opts/SkPMFloat_none.h
|
| diff --git a/src/opts/SkPMFloat_none.h b/src/opts/SkPMFloat_none.h
|
| index 00705aa582bdca2dfc09222b5100fd543fe3ce11..86516b18759c2182271306a25510a015134eb72b 100644
|
| --- a/src/opts/SkPMFloat_none.h
|
| +++ b/src/opts/SkPMFloat_none.h
|
| @@ -18,6 +18,10 @@ inline SkPMFloat::SkPMFloat(SkPMColor c) {
|
| SkASSERT(this->isValid());
|
| }
|
|
|
| +inline SkPMColor SkPMFloat::trunc() const {
|
| + return SkPackARGB32(this->a(), this->r(), this->g(), this->b());
|
| +}
|
| +
|
| inline SkPMColor SkPMFloat::get() const {
|
| SkASSERT(this->isValid());
|
| return SkPackARGB32(this->a()+0.5f, this->r()+0.5f, this->g()+0.5f, this->b()+0.5f);
|
|
|