diff options
author | 2015-04-03 12:45:05 -0700 | |
---|---|---|
committer | 2015-04-03 12:45:05 -0700 | |
commit | 6b5dab889579f1cc9e1b5278f4ecdc4c63fe78c9 (patch) | |
tree | 0fec909c46dca57eb25bafb535cbcd6a9e681171 /src/effects | |
parent | b2a6fe7976ae85242f9266be23eab025a7e8e7e7 (diff) |
Code's more readable when SkPMFloat is an Sk4f.
#floats
BUG=skia:
BUG=skia:3592
Review URL: https://codereview.chromium.org/1061603002
Diffstat (limited to 'src/effects')
-rw-r--r-- | src/effects/SkColorMatrixFilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/SkColorMatrixFilter.cpp b/src/effects/SkColorMatrixFilter.cpp index a20c65a0a5..196ebd0f25 100644 --- a/src/effects/SkColorMatrixFilter.cpp +++ b/src/effects/SkColorMatrixFilter.cpp @@ -269,7 +269,7 @@ static Sk4f premul(const Sk4f& x) { static Sk4f unpremul(const SkPMFloat& pm) { float scale = 255 / pm.a(); // candidate for fast/approx invert? - return Sk4f(pm) * Sk4f(scale, scale, scale, 1); + return pm * Sk4f(scale, scale, scale, 1); } static Sk4f clamp_0_255(const Sk4f& value) { |