ui/gfx/color_profile: Add GetDisplayColorProfile for an NSWindow
Add a GetDisplayColorProfile variant on Mac to return the display color profile associated with a native window (NSWindow). Add unit tests for on-screen, partially-on-screen, off-screen and empty and null windows. Note an sRGB color profile is a common case, especially on win32, so GetDisplayColorProfile returns true and an empty color profile in that case. Add a header file comment about that. TEST=gfx_unittests --gtest_filter="ColorProfileTest*Window" BUG=368694 Review URL: https://codereview.chromium.org/849523003 Cr-Commit-Position: refs/heads/master@{#313601}
Showing
Please register or sign in to comment