| Index: src/opts/SkPMFloat_none.h
|
| diff --git a/src/opts/SkPMFloat_none.h b/src/opts/SkPMFloat_none.h
|
| index 00705aa582bdca2dfc09222b5100fd543fe3ce11..6268f16d53ed473bb8669a549e645aa929a9c2c6 100644
|
| --- a/src/opts/SkPMFloat_none.h
|
| +++ b/src/opts/SkPMFloat_none.h
|
| @@ -18,6 +18,11 @@ inline SkPMFloat::SkPMFloat(SkPMColor c) {
|
| SkASSERT(this->isValid());
|
| }
|
|
|
| +inline SkPMColor SkPMFloat::trunc() const {
|
| + SkASSERT(this->isValid());
|
| + 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);
|
|
|