Fix valgrind uninitialized memory complaint
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 9 Oct 2013 12:51:09 +0000 (12:51 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 9 Oct 2013 12:51:09 +0000 (12:51 +0000)
https://codereview.chromium.org/26469003/

git-svn-id: http://skia.googlecode.com/svn/trunk@11664 2bbb7eff-a529-9590-31e7-b0007b416f81

tests/SurfaceTest.cpp

index 96a556065824cf7e73cdf5b0aba9025d30c0aa6a..61c1e2d6dd0a04d8ff1d2767984df8ac084400a8 100644 (file)
@@ -84,6 +84,7 @@ static void TestSurfaceCopyOnWrite(skiatest::Reporter* reporter, SurfaceType sur
     SkBitmap testBitmap;
     testBitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10);
     testBitmap.allocPixels();
+    testBitmap.eraseColor(0);
 
     SkRRect testRRect;
     testRRect.setRectXY(testRect, SK_Scalar1, SK_Scalar1);