diff options
author | 2015-04-03 13:08:28 -0700 | |
---|---|---|
committer | 2015-04-03 13:08:28 -0700 | |
commit | 7792dbf7ea089b3bcb81792a3ecda8a6f8b421e7 (patch) | |
tree | 05bf093251560e49d852376a010fc722de4ec149 /src/effects | |
parent | e758579d4f85f4615d62e87847dd3f8b38e3a6e2 (diff) |
Code's more readable when SkPMFloat is an Sk4f.
#floats
BUG=skia:
BUG=skia:3592
Committed: https://skia.googlesource.com/skia/+/6b5dab889579f1cc9e1b5278f4ecdc4c63fe78c9
CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot
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) { |