From a1c0ee40040fa8bb06f5f68ba4bcb3a68f789924 Mon Sep 17 00:00:00 2001 From: mtklein Date: Thu, 10 Sep 2015 14:16:07 -0700 Subject: SkNx_shuffle This allows us to express shuffles more directly in code while also giving us a convenient point to platform-specify particular shuffles for particular types. No specializations yet. Everyone just uses the (pretty good) default option. BUG=skia: Review URL: https://codereview.chromium.org/1301413006 --- src/effects/SkColorMatrixFilter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/effects/SkColorMatrixFilter.cpp') diff --git a/src/effects/SkColorMatrixFilter.cpp b/src/effects/SkColorMatrixFilter.cpp index d7f0a74295..1eedef1343 100644 --- a/src/effects/SkColorMatrixFilter.cpp +++ b/src/effects/SkColorMatrixFilter.cpp @@ -302,10 +302,10 @@ void SkColorMatrixFilter::filterSpan(const SkPMColor src[], int count, SkPMColor srcf = unpremul(srcf); } - Sk4f r4 = Sk4f(srcf.kth()); - Sk4f g4 = Sk4f(srcf.kth()); - Sk4f b4 = Sk4f(srcf.kth()); - Sk4f a4 = Sk4f(srcf.kth()); + Sk4f r4 = SkNx_dup(srcf); + Sk4f g4 = SkNx_dup(srcf); + Sk4f b4 = SkNx_dup(srcf); + Sk4f a4 = SkNx_dup(srcf); // apply matrix Sk4f dst4 = c0 * r4 + c1 * g4 + c2 * b4 + c3 * a4 + c4; -- cgit v1.2.3