Chromium Code Reviews| Index: tests/PathUtilsTest.cpp |
| =================================================================== |
| --- tests/PathUtilsTest.cpp (revision 10060) |
| +++ tests/PathUtilsTest.cpp (working copy) |
| @@ -64,7 +64,7 @@ |
| int h, int w) { |
| for (int y = 0; y < h; ++y) { // loop through all pixels |
| for (int x = 0; x < w; ++x) { |
|
robertphillips
2013/07/13 17:01:08
This change seems correct but makes the test fail
|
| - REPORTER_ASSERT( reporter, *bmp1->getAddr32(x,y) == *bmp1->getAddr32(x,y) ); |
| + REPORTER_ASSERT( reporter, *bmp1->getAddr32(x,y) == *bmp2->getAddr32(x,y) ); |
| } |
| } |
| return true; |
| @@ -82,7 +82,9 @@ |
| SkBitmap bmp; |
| bmp.setConfig(SkBitmap::kARGB_8888_Config, w, h); |
| bmp.allocPixels(); |
| - SkCanvas(bmp).drawPath(*path, bmpPaint); |
| + SkCanvas canvas(bmp); |
| + canvas.clear(0xFFFFFFFF); |
| + canvas.drawPath(*path, bmpPaint); |
| // test bmp |
| test_bmp(reporter, &bmp, truth, h, w); |