aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2018-07-12 09:35:37 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-12 14:05:08 +0000
commit91b5a7690f917efca3892c2ab087ca6e944bafcc (patch)
tree054e9579049eb59989f72fdeed20c23482268fe2
parent20326e34b90d2e9bc053da5edb47d6e747c7f583 (diff)
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>
-rw-r--r--tests/PackedConfigsTextureTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PackedConfigsTextureTest.cpp b/tests/PackedConfigsTextureTest.cpp
index 047ae44f88..75bc666a63 100644
--- a/tests/PackedConfigsTextureTest.cpp
+++ b/tests/PackedConfigsTextureTest.cpp
@@ -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 =