erase bitmap inside unit test to make valgrind happier
R=mtklein@google.com TBR=sunshine Author: halcanary@google.com Review URL: https://codereview.chromium.org/397273006
This commit is contained in:
parent
3125e02062
commit
0db38ccfef
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user