Commit ef72c91e authored by Christopher Cameron's avatar Christopher Cameron Committed by Commit Bot

Disable HDR on macOS for M80

Bug: 1042781
Change-Id: Iebb86d120aab538517ae6c087f815f2eb89811de
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2003897Reviewed-by: default avatarMiguel Casas <mcasas@chromium.org>
Commit-Queue: ccameron <ccameron@chromium.org>
Cr-Commit-Position: refs/heads/master@{#732737}
parent 7d16fad1
...@@ -108,14 +108,6 @@ Display BuildDisplayForScreen(NSScreen* screen) { ...@@ -108,14 +108,6 @@ Display BuildDisplayForScreen(NSScreen* screen) {
display.set_color_depth(Display::kDefaultBitsPerPixel); display.set_color_depth(Display::kDefaultBitsPerPixel);
display.set_depth_per_component(Display::kDefaultBitsPerComponent); display.set_depth_per_component(Display::kDefaultBitsPerComponent);
if ([screen respondsToSelector:@selector
(maximumPotentialExtendedDynamicRangeColorComponentValue)]) {
if ([screen maximumPotentialExtendedDynamicRangeColorComponentValue] >=
2.0) {
display.set_color_depth(Display::kHDR10BitsPerPixel);
display.set_depth_per_component(Display::kHDR10BitsPerComponent);
}
}
display.set_is_monochrome(CGDisplayUsesForceToGray()); display.set_is_monochrome(CGDisplayUsesForceToGray());
if (auto display_link = ui::DisplayLinkMac::GetForDisplay(display_id)) if (auto display_link = ui::DisplayLinkMac::GetForDisplay(display_id))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment