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

Unified Diff: ui/gfx/image/image_skia_rep.cc

Issue 285393002: Fixes use-of-uninitialized-value MSan error in image_skia_unittest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 7 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 | « ui/gfx/image/image_skia_rep.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_skia_rep.cc
diff --git a/ui/gfx/image/image_skia_rep.cc b/ui/gfx/image/image_skia_rep.cc
index aeb027f17d66c3876d3ec82cdfecdd670d905ff8..f31db600465f2fe8a95b00e3e28bfe0a5ed4c8af 100644
--- a/ui/gfx/image/image_skia_rep.cc
+++ b/ui/gfx/image/image_skia_rep.cc
@@ -19,6 +19,7 @@ ImageSkiaRep::ImageSkiaRep(const gfx::Size& size, float scale) : scale_(scale) {
static_cast<int>(size.width() * this->scale()),
static_cast<int>(size.height() * this->scale()));
bitmap_.allocPixels();
+ bitmap_.eraseColor(SK_ColorRED);
}
ImageSkiaRep::ImageSkiaRep(const SkBitmap& src, float scale)
« no previous file with comments | « ui/gfx/image/image_skia_rep.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698