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

Unified Diff: cc/tiles/gpu_image_decode_cache_unittest.cc

Issue 2824013002: Initialize SkImage memory in gpu_image_decode_cache_unittest (Closed)
Patch Set: Created 3 years, 8 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: cc/tiles/gpu_image_decode_cache_unittest.cc
diff --git a/cc/tiles/gpu_image_decode_cache_unittest.cc b/cc/tiles/gpu_image_decode_cache_unittest.cc
index 91a08d1f40ce4e497ee851d826b9e23f08db5677..123f84dcd23f8006f4a1058bc285d91084234cca 100644
--- a/cc/tiles/gpu_image_decode_cache_unittest.cc
+++ b/cc/tiles/gpu_image_decode_cache_unittest.cc
@@ -32,6 +32,7 @@ sk_sp<SkImage> CreateImage(int width, int height) {
gfx::ColorSpace color_space = gfx::ColorSpace::CreateSRGB();
bitmap.allocPixels(
SkImageInfo::MakeN32Premul(width, height, color_space.ToSkColorSpace()));
+ bitmap.eraseColor(0);
return SkImage::MakeFromBitmap(bitmap);
}
« 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