diff options
author | jvanverth <jvanverth@google.com> | 2016-05-06 11:03:18 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-06 11:03:18 -0700 |
commit | 4d0cd764771a6c52ae80157d2915baa4844944c8 (patch) | |
tree | 158586e94a5a7f08def13d4ebc31ae83b7080ca7 /src/core | |
parent | 3ccf2e75ed92adb3c2c289e0cb95901d162df394 (diff) |
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
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkPixmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkPixmap.cpp b/src/core/SkPixmap.cpp index a5e474b6d4..bd551ed9d3 100644 --- a/src/core/SkPixmap.cpp +++ b/src/core/SkPixmap.cpp @@ -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); } |