Fix for Sk4f Ubuntu compile warning
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1958633003 TBR=herbderby@google.com Review-Url: https://codereview.chromium.org/1958633003
This commit is contained in:
parent
3ccf2e75ed
commit
4d0cd76477
@ -226,7 +226,7 @@ bool SkPixmap::erase(const SkColor4f& origColor, const SkIRect* subset) const {
|
||||
if (kRGBA_F16_SkColorType != pm.colorType()) {
|
||||
Sk4f c4 = Sk4f::Load(color.vec());
|
||||
SkColor c;
|
||||
(c4 * Sk4f(255) + Sk4f(0.5f)).store(&c);
|
||||
SkNx_cast<uint8_t>(c4 * Sk4f(255) + Sk4f(0.5f)).store(&c);
|
||||
return pm.erase(c);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user