Add gfx::DisplayColorSpaces and use in display::Display
The concept of "the color space of the display" falls apart on several platforms, because display (or OS) can be configured to handle multiple color spaces. Rather than sending a single color space, send a set of color spaces to use in various situations (sRGB-only content, SDR WCG content, and HDR content). Use this gfx::DisplayColorSpaces structure in display::Display, instead of using gfx::ColorSpace and sdr_white_point. Also communicate this via mojo, which had not been done in the past. For now, only use the "HDR transparent" color space. The next patch use this structure in ui::Compositor, viz::Display, and viz::SurfaceAggregator. This structure is added to gfx because it is imported from these several locations. Bug: 1037954, 1038770, 1038494, 958166 Change-Id: I677e3f5c4d01deeb95f76b6463541eec2163b48b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2006068Reviewed-by:Dominick Ng <dominickn@chromium.org> Reviewed-by:
Miguel Casas <mcasas@chromium.org> Commit-Queue: ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#732874}
Showing
Please register or sign in to comment