Index: src/core/SkColorFilter.cpp |
diff --git a/src/core/SkColorFilter.cpp b/src/core/SkColorFilter.cpp |
index 8a37e1b56c022533243d2bcae0c92697840b5bbd..167a6683809732041e598f8e06cf14961a72cc9d 100644 |
--- a/src/core/SkColorFilter.cpp |
+++ b/src/core/SkColorFilter.cpp |
@@ -43,7 +43,7 @@ void SkColorFilter::filterSpan4f(const SkPM4f src[], int count, SkPM4f result[]) |
while (count > 0) { |
int n = SkTMin(count, N); |
for (int i = 0; i < n; ++i) { |
- SkNx_cast<uint8_t>(Sk4f::Load(src[i].fVec) * Sk4f(255) + Sk4f(0.5f)).store(&tmp[i]); |
+ tmp[i] = src[i].toPMColor(); |
} |
this->filterSpan(tmp, n, tmp); |
for (int i = 0; i < n; ++i) { |