DescriptionRead pixels in BGRA non-premul mode in few tests
The tests assert on Sk_ColorGREEN, which is in BRGA non-premul. Read the
pixels in same color format.
Currently the tests pass on all platforms because GREEN is fully opaque
and the component stays in the same place both on BGRA and
RGBA. However, hypothetically somebody could copy-paste the assertion
for further tests but use, say, RED. This creates latent error that is
only visible on some platforms like mac.
Committed: https://skia.googlesource.com/skia/+/a9d9a392380952006303d83c35a63a32dffd0b36
Patch Set 1 #
Messages
Total messages: 7 (3 generated)
|