Index: skia/ext/bitmap_platform_device_skia.cc |
diff --git a/skia/ext/bitmap_platform_device_skia.cc b/skia/ext/bitmap_platform_device_skia.cc |
index 04fc950f56028a98850e11f81a0414e1a44b7b40..39590a241921e56bf24674bfcc83ea1e83c5b250 100644 |
--- a/skia/ext/bitmap_platform_device_skia.cc |
+++ b/skia/ext/bitmap_platform_device_skia.cc |
@@ -31,6 +31,8 @@ BitmapPlatformDevice* BitmapPlatformDevice::Create(int width, int height, |
else if (!bitmap.tryAllocPixels()) |
return NULL; |
+ if (!is_opaque) |
+ bitmap.eraseARGB(0, 0, 0, 0); |
return new BitmapPlatformDevice(bitmap); |
} |