Index: tests/ScaledImageCache.cpp |
diff --git a/tests/ScaledImageCache.cpp b/tests/ScaledImageCache.cpp |
index 2040afea27fa03b4278a1f6eaec0f1ab09a1204e..9515e134e4d683238717d14029cccbbb9efe5e1c 100644 |
--- a/tests/ScaledImageCache.cpp |
+++ b/tests/ScaledImageCache.cpp |
@@ -17,6 +17,7 @@ static size_t test_scaled_image_cache_useage() { |
SkCanvas::NewRasterN32(kCanvasSize, kCanvasSize)); |
SkBitmap bitmap; |
SkAssertResult(bitmap.allocN32Pixels(kBitmapSize, kBitmapSize)); |
+ bitmap.eraseColor(0xFFFFFFFF); |
SkScalar scaledSize = SkIntToScalar(kScale * kBitmapSize); |
canvas->clipRect(SkRect::MakeLTRB(0, 0, scaledSize, scaledSize)); |
SkPaint paint; |