| |
@@ -0,0 +1,29 @@
|
| |
+ From aaf310e95dd749c4e4eb780b32942ce376a5f743 Mon Sep 17 00:00:00 2001
|
| |
+ From: farchord <farchord@gmail.com>
|
| |
+ Date: Wed, 24 Jan 2024 10:21:38 -0500
|
| |
+ Subject: [PATCH] Update wayland_screen.cc
|
| |
+
|
| |
+ ---
|
| |
+ ui/ozone/platform/wayland/host/wayland_screen.cc | 2 --
|
| |
+ 1 file changed, 2 deletions(-)
|
| |
+
|
| |
+ diff --git a/ui/ozone/platform/wayland/host/wayland_screen.cc b/ui/ozone/platform/wayland/host/wayland_screen.cc
|
| |
+ index 7fad33ca5a69b4..3297d7ef81e8b8 100644
|
| |
+ --- a/ui/ozone/platform/wayland/host/wayland_screen.cc
|
| |
+ +++ b/ui/ozone/platform/wayland/host/wayland_screen.cc
|
| |
+ @@ -233,7 +233,6 @@ void WaylandScreen::AddOrUpdateDisplay(const WaylandOutput::Metrics& metrics) {
|
| |
+ gfx::DisplayColorSpaces color_spaces;
|
| |
+ color_spaces.SetOutputBufferFormats(image_format_no_alpha_.value(),
|
| |
+ image_format_alpha_.value());
|
| |
+ -#if BUILDFLAG(IS_CHROMEOS_LACROS)
|
| |
+ auto* wayland_output =
|
| |
+ connection_->wayland_output_manager()->GetOutput(metrics.output_id);
|
| |
+ auto* color_management_output =
|
| |
+ @@ -264,7 +263,6 @@ void WaylandScreen::AddOrUpdateDisplay(const WaylandOutput::Metrics& metrics) {
|
| |
+ // CreateDisplayColorSpaces()
|
| |
+ color_spaces.SetHDRMaxLuminanceRelative(10);
|
| |
+ }
|
| |
+ -#endif
|
| |
+
|
| |
+ changed_display.SetColorSpaces(color_spaces);
|
| |
+
|
| |
This patch was originally created by @Zamundaaa in the #kde-sig channel in Matrix. This patch enables viewing of HDR videos on systems that supports it.
This feature was set to only function on ChromeOS. This patch undoes that.
This has been tested as working on Wayland with the ozone flag set to Wayland as well.
Or, at the very least, the HDR logo could be seen on youtube videos. The color is still off, but that's something being worked on on KDE's side.