display: ignore EDID-provided colorspace if blue is broken
Some EDID-provided chromaticity coordinates for the blue colour are too far from the expected ones, causing blue to be rendered as purple (or cyan, in some cases). This is due to broken primaries, as all the standard colorspaces' blues are clustered nearby. This CL adds a sanity check for the blue coordinates (need to be to the left and below of a given point) and adds a unit test for it. If the condition doesn't verify, we just ignore this ColorSpace -- which means we'll treat the monitor as sRGB. Bug: 809909, 771345 Change-Id: I4555625928f883825a3b315abdaaa379eb26a415 Reviewed-on: https://chromium-review.googlesource.com/993513 Commit-Queue: Miguel Casas <mcasas@chromium.org> Reviewed-by:Daniele Castagna <dcastagna@chromium.org> Cr-Commit-Position: refs/heads/master@{#548138}
Showing
Please register or sign in to comment