Bug 1768058: Add wrench tests for opacity on stretched images. r=gw
commitc3c7926d5add9d7687cca035b061218446a25cc5
authorBrad Werth <bwerth@mozilla.com>
Thu, 26 May 2022 21:12:50 +0000 (26 21:12 +0000)
committerBrad Werth <bwerth@mozilla.com>
Thu, 26 May 2022 21:12:50 +0000 (26 21:12 +0000)
tree1f0709200e9d4c7b2e656a3a48a57114a275765d
parenta29d96841daf34e32dc197307a311f499f0cd217
Bug 1768058: Add wrench tests for opacity on stretched images. r=gw

Bug 1752919 fixed the opacity issues for tiled images. This is an attempt to
replicate the testcases from that bug. The wrench frame capture of the problem case
shows Image display items with alpha color applied. This patch updates the yaml
frame reader to process color on Images, and the "image-alpha" wrench tests recreate
that scene. For completeness' sake, the tests also  check opacity derived from the
stacking context (which already worked).

Differential Revision: https://phabricator.services.mozilla.com/D147442
gfx/wr/wrench/reftests/image/green-alpha-ref.yaml [new file with mode: 0644]
gfx/wr/wrench/reftests/image/image-alpha-stretch-tile.yaml [new file with mode: 0644]
gfx/wr/wrench/reftests/image/image-alpha-stretch.yaml [new file with mode: 0644]
gfx/wr/wrench/reftests/image/image-filter-stretch-tile.yaml [new file with mode: 0644]
gfx/wr/wrench/reftests/image/image-filter-stretch.yaml [new file with mode: 0644]
gfx/wr/wrench/reftests/image/reftest.list
gfx/wr/wrench/src/yaml_frame_reader.rs