Index: src/core/SkColorMatrixFilterRowMajor255.cpp |
diff --git a/src/core/SkColorMatrixFilterRowMajor255.cpp b/src/core/SkColorMatrixFilterRowMajor255.cpp |
index cdfd1df49604e26e0c2a6b2998465be06ebf6b8b..29a3f107b8f020d76525f926f72e88b14405f043 100644 |
--- a/src/core/SkColorMatrixFilterRowMajor255.cpp |
+++ b/src/core/SkColorMatrixFilterRowMajor255.cpp |
@@ -126,7 +126,7 @@ struct SkPMColorAdaptor { |
return round(swizzle_rb_if_bgra(c4)); |
} |
static Sk4f To4f(SkPMColor c) { |
- return to_4f(c) * Sk4f(1.0f/255); |
+ return Sk4f_fromL32(c); |
} |
}; |
void SkColorMatrixFilterRowMajor255::filterSpan(const SkPMColor src[], int count, SkPMColor dst[]) const { |