In RGBA444TextureTest, use valid premul colors

In both the 565 and 4444 tests, we use a repeating pattern of two 16-bit
values. Neither of these were valid premul colors in 4444, and the first
one (FF00) had zero alpha. With upcoming changes to format conversion,
that may need to be unpremul'd and premul'd during readPixels, causing
this test to fail.

Change-Id: Idbf0f8162d6f68ca2b70ede8c48f788f4379d414
Reviewed-on: https://skia-review.googlesource.com/140799
Commit-Queue: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
Auto-Submit: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
This commit is contained in:
Brian Osman 2018-07-12 09:35:37 -04:00 committed by Skia Commit-Bot
parent 20326e34b9
commit 91b5a7690f

View File

@ -104,8 +104,8 @@ static void run_test(skiatest::Reporter* reporter, GrContext* context, int array
readBuffer.setCount(arraySize);
for (int i = 0; i < arraySize; i += 2) {
controlPixelData[i] = 0xFF00;
controlPixelData[i + 1] = 0xFA62;
controlPixelData[i] = 0xF00F;
controlPixelData[i + 1] = 0xA62F;
}
const SkImageInfo dstInfo =