| Index: src/opts/SkPMFloat_neon.h
|
| diff --git a/src/opts/SkPMFloat_neon.h b/src/opts/SkPMFloat_neon.h
|
| index 48cc568d031244a87196cfd65a967704da512e78..036d10d0d6e152c2d4f1f7c9fd569db2f51cfaa3 100644
|
| --- a/src/opts/SkPMFloat_neon.h
|
| +++ b/src/opts/SkPMFloat_neon.h
|
| @@ -37,3 +37,16 @@ inline SkPMColor SkPMFloat::clamped() const {
|
| SkPMColorAssert(c);
|
| return c;
|
| }
|
| +
|
| +// TODO: we should be able to beat these loops on all three methods.
|
| +inline void SkPMFloat::From4PMColors(SkPMFloat floats[4], const SkPMColor colors[4]) {
|
| + for (int i = 0; i < 4; i++) { floats[i] = FromPMColor(colors[i]); }
|
| +}
|
| +
|
| +inline void SkPMFloat::To4PMColors(SkPMColor colors[4], const SkPMFloat floats[4]) {
|
| + for (int i = 0; i < 4; i++) { colors[i] = floats[i].get(); }
|
| +}
|
| +
|
| +inline void SkPMFloat::ClampTo4PMColors(SkPMColor colors[4], const SkPMFloat floats[4]) {
|
| + for (int i = 0; i < 4; i++) { colors[i] = floats[i].clamped(); }
|
| +}
|
|
|