| 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.getSafeSize());
|
| } else {
|
| bitmap.eraseColor(SK_ColorWHITE);
|
| }
|
|
|