#39 Enable HDR (If supported)
Closed 5 months ago by farchord. Opened 5 months ago by farchord.
rpms/ farchord/chromium rawhide  into  rawhide

@@ -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);

+  

file modified
+7 -1
@@ -292,7 +292,7 @@ 

  

  Name:	chromium%{chromium_channel}

  Version: 121.0.6167.85

- Release: 1%{?dist}

+ Release: 2%{?dist}

  Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use

  Url: http://www.chromium.org/Home

  License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only)
@@ -470,6 +470,9 @@ 

  

  # upstream patches

  

+ # Patch chromium to enable HDR if supported on the system/website.

+ Patch360: chromium-enable-hdr-if-supported.patch

+ 

  # Use chromium-latest.py to generate clean tarball from released build tarballs, found here:

  # http://build.chromium.org/buildbot/official/

  # For Chromium Fedora use chromium-latest.py --stable --ffmpegclean --ffmpegarm
@@ -1802,6 +1805,9 @@ 

  %{chromium_path}/chromedriver

  

  %changelog

+ * Wed Jan 24 2024 Steve Cossette <farchord@gmail.com> - 124.0.6167.85-2

+ - Added a patch to enable HDR

+ 

  * Wed Jan 24 2024 Than Ngo <than@redhat.com> - 121.0.6167.85-1

  - update to 121.0.6167.85

    * High CVE-2024-0807: Use after free in WebAudio

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.

rebased onto 93f5767

5 months ago

Pull-Request has been closed by farchord

5 months ago