gecko-dev/image/test/reftest
Andrew Osmond 91b071ed14 Bug 1618345 - Enforce proper color management by splitting gfx::Color into sRGBColor and DeviceColor types. r=jrmuizel
gfx::Color is currently misused in many places. The DrawTargets expect
the color space to be in device space, e.g. what we are actually going
to draw using. Everything sitting above generally deals with sRGB, as
specified in CSS. Sometimes we missed the conversion from sRGB to device
space when issuing draw calls, and similarly sometimes we converted the
color to device space twice.

This patch splits the type in two. sRGBColor and DeviceColor now
represent sRGB and device color spaces respectively. DrawTarget only
accepts DeviceColor, and one can get a DeviceColor from an sRGBColor via
the ToDeviceColor helper API. The reftests now pass with color
management enabled for everything (e.g. CSS) instead of just tagged
raster images.

There will be a follow up patch to enable color management everywhere by
default on all supported platforms.

Differential Revision: https://phabricator.services.mozilla.com/D64771

--HG--
extra : moz-landing-system : lando
2020-03-09 14:16:17 +00:00
..
apng
bmp Bug 1619249 - Upgrade to BMPSuite 2.6. r=tnikkel 2020-03-02 19:17:19 +00:00
color-management
downscaling Bug 1616368 - [reftest] Replace 'default-preferences' with 'defaults' r=dbaron 2020-02-20 18:47:54 +00:00
encoders-lossless
generic Bug 1601572 - Disable moz-icon-1.html on android. a=fix CLOSED TREE 2019-12-05 13:18:24 +02:00
gif
ico Bug 1255105 - Use SurfacePipe in the BMP decoder. r=tnikkel 2020-03-02 23:24:12 +00:00
jpeg Bug 1600184. Test multipart images that aren't loaded at the toplevel. 2019-11-28 23:09:19 +00:00
pngsuite-ancillary Bug 1618345 - Enforce proper color management by splitting gfx::Color into sRGBColor and DeviceColor types. r=jrmuizel 2020-03-09 14:16:17 +00:00
pngsuite-background
pngsuite-basic-i
pngsuite-basic-n
pngsuite-chunkorder
pngsuite-corrupted
pngsuite-filtering
pngsuite-gamma
pngsuite-oddsizes
pngsuite-palettes
pngsuite-transparency
pngsuite-zlib
ImageDocument.css
colordepth.html
img2html.html
reftest.list