Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:Heinervdm:BGO-OD
MozillaFirefox
mozilla-skia-overflow.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mozilla-skia-overflow.patch of Package MozillaFirefox
# HG changeset patch # User Lee Salzman <lsalzman@mozilla.com> # Date 1474489725 14400 # Wed Sep 21 16:28:45 2016 -0400 # Node ID 38a427a913b57080374b9966466b8f436ec39eb8 # Parent 4dfd3f00543d1d7adc3f0f852e6f32fbca6f3420 fix invalid Sk4f store to SkColor in SkPixmap::erase MozReview-Commit-ID: 840x1nXgYns diff --git a/gfx/skia/skia/src/core/SkPixmap.cpp b/gfx/skia/skia/src/core/SkPixmap.cpp --- a/gfx/skia/skia/src/core/SkPixmap.cpp +++ b/gfx/skia/skia/src/core/SkPixmap.cpp @@ -221,17 +221,17 @@ bool SkPixmap::erase(const SkColor4f& or pm = *this; } const SkColor4f color = origColor.pin(); 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); } const uint64_t half4 = color.premul().toF16(); for (int y = 0; y < pm.height(); ++y) { sk_memset64(pm.writable_addr64(0, y), half4, pm.width()); } return true;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor