Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Unified Diff: src/core/SkColorMatrixFilterRowMajor255.cpp

Issue 1683543002: sknx refactoring (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: typos Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkNx.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | src/core/SkNx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698