• Miguel Casas's avatar
    ui: fill in SDR/HDR DisplayColorSpaces, CrOS · 07199ff1
    Miguel Casas authored
    This CL adds code for populating the necessary gfx::DisplayColorSpaces
    in CreateManagedDisplayInfo for supporting SDR and HDR target color
    spaces (depending on the monitor capabilities and the big hdr flag).
    
    It needs a sibling CL to allow AR/B30 FBs on CrOs crrev.com/c/2078655,
    Tested with that CL and by playing an HDR video: the primary
    framebuffer format in /sys/kernel/debug/dri/0//state correctly changes
    to XB30, whereas when there are not HDR quads in the BufferQueue, it's
    XR24.
    
    Bug: 958166
    Change-Id: I94638436c079b03ef9f6200b77697b1d3da9337e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2072621Reviewed-by: default avatarccameron <ccameron@chromium.org>
    Commit-Queue: Miguel Casas <mcasas@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#745461}
    07199ff1
display_change_observer_unittest.cc 16 KB