| Index: tests/ReadPixelsTest.cpp
|
| diff --git a/tests/ReadPixelsTest.cpp b/tests/ReadPixelsTest.cpp
|
| index d0bf9031f0f6fe09a36bd7933f85cd2137cf8bab..77aac1fdd50a382dce7465e226884d08aa0054e5 100644
|
| --- a/tests/ReadPixelsTest.cpp
|
| +++ b/tests/ReadPixelsTest.cpp
|
| @@ -96,9 +96,7 @@ static SkPMColor convertToPMColor(SkColorType ct, SkAlphaType at, const uint32_t
|
| static void fillCanvas(SkCanvas* canvas) {
|
| static SkBitmap bmp;
|
| if (bmp.isNull()) {
|
| - SkDEBUGCODE(bool alloc =) bmp.allocN32Pixels(DEV_W, DEV_H);
|
| - SkASSERT(alloc);
|
| - SkAutoLockPixels alp(bmp);
|
| + bmp.allocN32Pixels(DEV_W, DEV_H);
|
| intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels());
|
| for (int y = 0; y < DEV_H; ++y) {
|
| for (int x = 0; x < DEV_W; ++x) {
|
|
|