Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: src/core/SkColorSpaceXform.cpp

Issue 2433323005: Fix for aggressive Chrome MSAN (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkColorSpaceXform.cpp
diff --git a/src/core/SkColorSpaceXform.cpp b/src/core/SkColorSpaceXform.cpp
index cacb38878cd1cf86c0489b3775b5abea945df16c..fad8cef1738aa3c75ce18f55f97cc1233f3598cd 100644
--- a/src/core/SkColorSpaceXform.cpp
+++ b/src/core/SkColorSpaceXform.cpp
@@ -1097,7 +1097,7 @@ static void color_xform_RGBA(void* dst, const void* vsrc, int len,
transform_gamut_1(r, g, b, rXgXbX, rYgYbY, rZgZbZ, rgba);
translate_gamut_1(rTgTbT, rgba);
} else {
- rgba = Sk4f(r[0], g[0], b[0], a[0]);
+ rgba = Sk4f(r[0], g[0], b[0], 0.0f);
}
if (kPremul_SkAlphaType == kAlphaType) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698