Don't let the compiler complain that |a| is uninit
TBR=mtklein@google.com NOTRY=true BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2339793003 Review-Url: https://codereview.chromium.org/2339793003
This commit is contained in:
parent
f6a97aec19
commit
be362774f9
@ -653,11 +653,12 @@ static inline void load_rgba_from_tables(const uint32_t* src,
|
||||
}
|
||||
|
||||
static inline void load_rgb_linear(const uint32_t* src,
|
||||
Sk4f& r, Sk4f& g, Sk4f& b, Sk4f&,
|
||||
Sk4f& r, Sk4f& g, Sk4f& b, Sk4f& a,
|
||||
const float* const[3]) {
|
||||
r = (1.0f / 255.0f) * SkNx_cast<float>((Sk4u::Load(src) ) & 0xFF);
|
||||
g = (1.0f / 255.0f) * SkNx_cast<float>((Sk4u::Load(src) >> 8) & 0xFF);
|
||||
b = (1.0f / 255.0f) * SkNx_cast<float>((Sk4u::Load(src) >> 16) & 0xFF);
|
||||
a = 0.0f; // Don't let the compiler complain that |a| is uninitialized.
|
||||
}
|
||||
|
||||
static inline void load_rgba_linear(const uint32_t* src,
|
||||
|
Loading…
Reference in New Issue
Block a user