Index: src/core/SkColorMatrixFilterRowMajor255.cpp |
diff --git a/src/core/SkColorMatrixFilterRowMajor255.cpp b/src/core/SkColorMatrixFilterRowMajor255.cpp |
index b9508ff2c7f3328b5ea32d0f4c06bb02fd414197..33bf0422339080c40c45c47cb6b81d5bae9bf4fa 100644 |
--- a/src/core/SkColorMatrixFilterRowMajor255.cpp |
+++ b/src/core/SkColorMatrixFilterRowMajor255.cpp |
@@ -108,10 +108,10 @@ void filter_span(const float array[], const T src[], int count, T dst[]) { |
srcf = unpremul(srcf); |
} |
- Sk4f r4 = SkNx_dup<SK_R32_SHIFT/8>(srcf); |
- Sk4f g4 = SkNx_dup<SK_G32_SHIFT/8>(srcf); |
- Sk4f b4 = SkNx_dup<SK_B32_SHIFT/8>(srcf); |
- Sk4f a4 = SkNx_dup<SK_A32_SHIFT/8>(srcf); |
+ Sk4f r4 = srcf.kth<SK_R32_SHIFT/8>(); |
+ Sk4f g4 = srcf.kth<SK_G32_SHIFT/8>(); |
+ Sk4f b4 = srcf.kth<SK_B32_SHIFT/8>(); |
+ Sk4f a4 = srcf.kth<SK_A32_SHIFT/8>(); |
// apply matrix |
Sk4f dst4 = c0 * r4 + c1 * g4 + c2 * b4 + c3 * a4 + c4; |