Chromium Code Reviews| Index: tests/BitmapCopyTest.cpp |
| =================================================================== |
| --- tests/BitmapCopyTest.cpp (revision 11697) |
| +++ tests/BitmapCopyTest.cpp (working copy) |
| @@ -57,6 +57,10 @@ |
| if (bitmap.getPixels()) { |
| if (bitmap.getColorTable()) { |
| sk_bzero(bitmap.getPixels(), bitmap.getSize()); |
| + } else if (SkBitmap::kA1_Config == bitmap.config()) { |
| + // The A1 config can have uninitialized bits at the |
| + // end of each row if eraseColor is used |
| + memset(bitmap.getPixels(), 0xff, bitmap.getSize()); |
|
reed1
2013/10/10 17:53:47
getSafeSize()?
robertphillips
2013/10/10 22:01:37
Done.
|
| } else { |
| bitmap.eraseColor(SK_ColorWHITE); |
| } |