Index: src/core/SkColor.cpp |
diff --git a/src/core/SkColor.cpp b/src/core/SkColor.cpp |
index 1794cd7d909c68a23f102d25cfe9e4c73ed0ed2f..c9f4a1433dfd9a856c5d7f6bed4725147e0bde89 100644 |
--- a/src/core/SkColor.cpp |
+++ b/src/core/SkColor.cpp |
@@ -104,10 +104,9 @@ |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
#include "SkNx.h" |
-SkPM4f SkPM4f::FromPMColor(SkPMColor c) { |
- Sk4f value = SkNx_cast<float>(Sk4b::Load((const uint8_t*)&c)); |
- SkPM4f c4; |
- (value * Sk4f(1.0f / 255)).store(c4.fVec); |
+SkColor4f SkColor4f::Pin(float a, float r, float g, float b) { |
+ SkColor4f c4; |
+ Sk4f::Min(Sk4f::Max(Sk4f(a, r, g, b), Sk4f(0)), Sk4f(1)).store(c4.vec()); |
return c4; |
} |
@@ -115,12 +114,6 @@ |
Sk4f value = SkNx_shuffle<3,2,1,0>(SkNx_cast<float>(Sk4b::Load((const uint8_t*)&c))); |
SkColor4f c4; |
(value * Sk4f(1.0f / 255)).store(c4.vec()); |
- return c4; |
-} |
- |
-SkColor4f SkColor4f::Pin(float a, float r, float g, float b) { |
- SkColor4f c4; |
- Sk4f::Min(Sk4f::Max(Sk4f(a, r, g, b), Sk4f(0)), Sk4f(1)).store(c4.vec()); |
return c4; |
} |