diff options
author | Florin Malita <fmalita@chromium.org> | 2017-11-01 15:43:52 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-01 20:22:30 +0000 |
commit | 79363b604e376a3c0f70009ed1017edc6d29cdfb (patch) | |
tree | 7acd6d0cf00cce49034e7433ac2d3ec63f719c4c /whitespace.txt | |
parent | 3c2359397a3c586a9a49266e1d0a6990558debdd (diff) |
Streamline legacy gradient color conversion
To produce colors for interpolation in legacy mode, we currently do
something like
SkColor c = Sk4f_toS32(swizzle_rb(Sk4f::Load(c4f)));
color4f = swizzle_rb(SkNx_cast<float>(Sk4b::Load(&c)) * (1/255.0f));
Let's see if we can streamline some of that.
Change-Id: I423b5aa8c2df8d115cc236d5f0a2e79923a9c2cc
Reviewed-on: https://skia-review.googlesource.com/66142
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'whitespace.txt')
0 files changed, 0 insertions, 0 deletions