| Index: tests/BlitRowTest.cpp
|
| diff --git a/tests/BlitRowTest.cpp b/tests/BlitRowTest.cpp
|
| index d0518bfb1d9bb38547cd13eecaa29c959043222c..65c77a54fa014831bcf27c044e662f17bf446bf3 100644
|
| --- a/tests/BlitRowTest.cpp
|
| +++ b/tests/BlitRowTest.cpp
|
| @@ -89,10 +89,9 @@ static bool check_color(const SkBitmap& bm, SkPMColor expect32,
|
| uint32_t bad;
|
| int x = proc(bm.getAddr(0, y), bm.width(), expect, &bad);
|
| if (x >= 0) {
|
| - SkString str;
|
| - str.printf("BlitRow config=%s [%d %d] expected %x got %x",
|
| - gConfigName[bm.config()], x, y, expect, bad);
|
| - reporter->reportFailed(str);
|
| + REPORTF(reporter,
|
| + ("BlitRow config=%s [%d %d] expected %x got %x",
|
| + gConfigName[bm.config()], x, y, expect, bad));
|
| return false;
|
| }
|
| }
|
| @@ -252,10 +251,11 @@ static void test_diagonal(skiatest::Reporter* reporter) {
|
| }
|
|
|
| if (memcmp(dstBM0.getPixels(), dstBM1.getPixels(), dstBM0.getSize())) {
|
| - SkString str;
|
| - str.printf("Diagonal config=%s bg=0x%x dither=%d alpha=0x%x src=0x%x",
|
| - gConfigName[gDstConfig[i]], bgColor, dither, alpha, c);
|
| - reporter->reportFailed(str);
|
| + REPORTF(reporter,
|
| + ("Diagonal config=%s bg=0x%x dither=%d "
|
| + "alpha=0x%x src=0x%x",
|
| + gConfigName[gDstConfig[i]], bgColor, dither,
|
| + alpha, c));
|
| }
|
| }
|
| }
|
|
|