Add some debugging to PremulAlphaRoundTrip test.
BUG=skia:2782 R=bensong@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/429313002
This commit is contained in:
parent
468217091c
commit
e83909f76c
@ -121,6 +121,10 @@ DEF_GPUTEST(PremulAlphaRoundTrip, reporter, factory) {
|
||||
const uint32_t* pixels1 = readBmp1.getAddr32(0, y);
|
||||
const uint32_t* pixels2 = readBmp2.getAddr32(0, y);
|
||||
for (int x = 0; x < 256 && success; ++x) {
|
||||
// We see sporadic failures here. May help to see where it goes wrong.
|
||||
if (pixels1[x] != pixels2[x]) {
|
||||
SkDebugf("%x != %x, x = %d, y = %d\n", pixels1[x], pixels2[x], x, y);
|
||||
}
|
||||
REPORTER_ASSERT(reporter, success = pixels1[x] == pixels2[x]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user