diff options
author | Brian Salomon <bsalomon@google.com> | 2016-02-02 11:34:46 -0500 |
---|---|---|
committer | Brian Salomon <bsalomon@google.com> | 2016-02-02 11:34:46 -0500 |
commit | 2ea6ff7f0d2f8f578460de8dd4e2e4ad3eed6e4c (patch) | |
tree | 9d806f9f73a74b60659e7de84de59bc8cadce121 /tests/ReadWriteAlphaTest.cpp | |
parent | 22000d1f8e2c554aec2f50a5a4cad0a5d04ca41c (diff) |
Fix printfs for Windows and undo speculative test disable
TBR=robertphillips@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1662533002
Review URL: https://codereview.chromium.org/1662533002 .
Diffstat (limited to 'tests/ReadWriteAlphaTest.cpp')
-rw-r--r-- | tests/ReadWriteAlphaTest.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/ReadWriteAlphaTest.cpp b/tests/ReadWriteAlphaTest.cpp index 36502c744e..d1c2f8c12d 100644 --- a/tests/ReadWriteAlphaTest.cpp +++ b/tests/ReadWriteAlphaTest.cpp @@ -37,11 +37,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ReadWriteAlpha, reporter, context) { unsigned char alphaData[X_SIZE * Y_SIZE]; bool match; -#ifdef SK_BUILD_FOR_WIN // TODO: Figure out why this breaks on Windows. - static const size_t kRowBytes[] = {0, X_SIZE}; -#else static const size_t kRowBytes[] = {0, X_SIZE, X_SIZE + 1, 2 * X_SIZE - 1}; -#endif for (int rt = 0; rt < 2; ++rt) { GrSurfaceDesc desc; // let Skia know we will be using this texture as a render target @@ -85,7 +81,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ReadWriteAlpha, reporter, context) { // make sure the original & read back versions match SkString msg; - msg.printf("rt:%d, rb:%zd", rt, rowBytes); + msg.printf("rt:%d, rb:%d", rt, SkToU32(rowBytes)); validate_alpha_data(reporter, X_SIZE, Y_SIZE, readback.get(), nonZeroRowBytes, alphaData, msg); @@ -115,7 +111,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ReadWriteAlpha, reporter, context) { if (0xFF != rbValue) { ERRORF(reporter, "Failed alpha readback after clear. Expected: 0xFF, Got: 0x%02x" - " at (%d,%d), rb:%zd", rbValue, x, y, rowBytes); + " at (%d,%d), rb:%d", rbValue, x, y, SkToU32(rowBytes)); match = false; } } @@ -176,7 +172,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ReadWriteAlpha, reporter, context) { // make sure the original & read back versions match SkString msg; - msg.printf("rt:%d, rb:%zd", rt, rowBytes); + msg.printf("rt:%d, rb:%d", rt, SkToU32(rowBytes)); validate_alpha_data(reporter, X_SIZE, Y_SIZE, readback.get(), nonZeroRowBytes, alphaData, msg); } |