commit | a85838c22e7c0fe08956ba856cc1bc0e95998bc4 | [log] [tgz] |
---|---|---|
author | Mike Klein <mtklein@google.com> | Thu Sep 20 14:35:34 2018 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Sep 20 19:01:17 2018 +0000 |
tree | 25b5c739e092905573c6da540b52557fc5e8132f | |
parent | e0e8393e10ea290defeaabd486e1467ac1798033 [diff] [blame] |
send SkPMColor::toPMColor() through Sk4f_toL32() This doesn't fix that 8888 gradient if we stop clamping, but it seems like a good idea to land first anyway. Change-Id: Ie0feda67da5996223db2fe4458f99d57cf13db71 Reviewed-on: https://skia-review.googlesource.com/155782 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Mike Klein <mtklein@google.com>
diff --git a/src/gpu/gradients/GrGradientBitmapCache.cpp b/src/gpu/gradients/GrGradientBitmapCache.cpp index 459c13a..dd4e842 100644 --- a/src/gpu/gradients/GrGradientBitmapCache.cpp +++ b/src/gpu/gradients/GrGradientBitmapCache.cpp
@@ -12,6 +12,7 @@ #include "SkFloatBits.h" #include "SkHalf.h" #include "SkPM4fPriv.h" +#include "SkTemplates.h" #include <functional>