Descriptioncolor: Fix color not being reset between layout tests
Layout tests run WebTestDelegate::SetDeviceColorProfile("reset") after
every test, which resets the ICC profile for rasterization to an empty
profile.
This is not the right thing to do with color correct rendering, because
it will make LayerTreeHostImpl::GetRasterColorSpace return an invalid
color space, which is used as a signal that color correct rendering is
disabled.
Fix this in two ways.
First, make WebTestDelegate::SetDeviceColorProfile("reset") reset the
ICC profile to be whatever was specified at the command line.
Second, make LayerTreeHostImpl::GetRasterColorSpace never return
an invalid color space when color correct rendering is enabled.
Third, fix a bug in RenderWidget where ICCProfile::GetColorSpace is
used instead of ICCProfile::GetParametricColorSpace.
BUG=724714
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2898583002
Cr-Commit-Position: refs/heads/master@{#473829}
Committed: https://chromium.googlesource.com/chromium/src/+/01912990baad76adb75b28ccc11c74691c9b34d3
Patch Set 1 #Patch Set 2 : Remove extra changes #
Total comments: 4
Patch Set 3 : Review feedbakc #
Messages
Total messages: 18 (10 generated)
|