aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/SRGBReadWritePixelsTest.cpp
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2018-07-12 10:47:01 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-12 15:24:58 +0000
commitf494bd2ebb0160f381feeb9d3a241343935546dc (patch)
treec28557404d252e197d5860b9bcfb34d23ff27157 /tests/SRGBReadWritePixelsTest.cpp
parente1824da6b51f33bdd67d3b823b4bfb08e711d730 (diff)
Update SRGBReadWritePixelsTest again, to only test opaque colors
With our new world (never doing linear blending), the read-back conversion from premul sRGB to premul linear no longer produces the same answer. By always using opaque pixels, the existing check functions in this test can continue to verify that the sRGB <-> linear conversion is happening correctly during read/write, independent of any color space transformation (which is now altering the outcome). Bug: skia: Change-Id: Id8e28b3bc4b9674043bd870a39d229207ccdc6d7 Reviewed-on: https://skia-review.googlesource.com/140987 Auto-Submit: Brian Osman <brianosman@google.com> Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tests/SRGBReadWritePixelsTest.cpp')
-rw-r--r--tests/SRGBReadWritePixelsTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/SRGBReadWritePixelsTest.cpp b/tests/SRGBReadWritePixelsTest.cpp
index 6e8edce784..af46d7d260 100644
--- a/tests/SRGBReadWritePixelsTest.cpp
+++ b/tests/SRGBReadWritePixelsTest.cpp
@@ -188,7 +188,7 @@ static std::unique_ptr<uint32_t[]> make_data() {
std::unique_ptr<uint32_t[]> data(new uint32_t[kW * kH]);
for (int j = 0; j < kH; ++j) {
for (int i = 0; i < kW; ++i) {
- data[j * kW + i] = (SkTMax(j, i) << 24) | (i << 16) | (i << 8) | i;
+ data[j * kW + i] = (0xFF << 24) | (i << 16) | (i << 8) | i;
}
}
return data;