summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustKidding <jk@vin.ovh>2022-09-12 19:24:32 -0500
committerJustKidding <jk@vin.ovh>2022-09-12 20:07:25 -0500
commit4fafc7063d0330521e1274e8bde707ee08ef7b46 (patch)
treee713bc4f2aee3abddec0a167c56105d8762a6ad0
parent6b9c35de902c59d4a8c47dc8857b28911e86e3e3 (diff)
downloadungoogled-chromium-4fafc7063d0330521e1274e8bde707ee08ef7b46.tar.gz
ungoogled-chromium-4fafc7063d0330521e1274e8bde707ee08ef7b46.tar.bz2
ungoogled-chromium-4fafc7063d0330521e1274e8bde707ee08ef7b46.zip
upgpkg: ungoogled-chromium 105.0.5195.102-3
enable hevc decoding
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD9
-rw-r--r--remove-main-main10-profile-limit.patch39
-rwxr-xr-xupdate-patches.sh3
4 files changed, 52 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ad00f01..ff34354 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = ungoogled-chromium
pkgdesc = A lightweight approach to removing Google web service dependency
pkgver = 105.0.5195.102
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/ungoogled-software/ungoogled-chromium
arch = x86_64
license = BSD
@@ -70,6 +70,7 @@ pkgbase = ungoogled-chromium
source = use-oauth2-client-switches-as-default.patch
source = ungoogled-chromium-105.0.5195.102-1.tar.gz::https://github.com/ungoogled-software/ungoogled-chromium/archive/105.0.5195.102-1.tar.gz
source = ozone-add-va-api-support-to-wayland.patch
+ source = remove-main-main10-profile-limit.patch
source = chromium-drirc-disable-10bpc-color-configs.conf
sha256sums = 1cba0527c951e3c506ade96cf6ec2507ee9d43661764731ed896348182369262
sha256sums = 213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a
@@ -82,6 +83,7 @@ pkgbase = ungoogled-chromium
sha256sums = e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711
sha256sums = 7f6b3397aee0b659c5964a6419f2cdf28e2b19e16700da4613f3aa9c7dde876d
sha256sums = e08a2c4c1e1059c767343ea7fbf3c77e18c8daebbb31f8019a18221d5da05293
+ sha256sums = 01ba9fd3f791960aa3e803de4a101084c674ce8bfbaf389953aacc6beedd66dc
sha256sums = babda4f5c1179825797496898d77334ac067149cac03d797ab27ac69671a7feb
pkgname = ungoogled-chromium
diff --git a/PKGBUILD b/PKGBUILD
index cbee541..a265453 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@
pkgname=ungoogled-chromium
pkgver=105.0.5195.102
-pkgrel=2
+pkgrel=3
_launcher_ver=8
_gcc_patchset=1
pkgdesc="A lightweight approach to removing Google web service dependency"
@@ -52,10 +52,12 @@ _uc_ver=$pkgver-1
source=(${source[@]}
$pkgname-$_uc_ver.tar.gz::https://github.com/$_uc_usr/ungoogled-chromium/archive/$_uc_ver.tar.gz
ozone-add-va-api-support-to-wayland.patch
+ remove-main-main10-profile-limit.patch
chromium-drirc-disable-10bpc-color-configs.conf)
sha256sums=(${sha256sums[@]}
'7f6b3397aee0b659c5964a6419f2cdf28e2b19e16700da4613f3aa9c7dde876d'
'e08a2c4c1e1059c767343ea7fbf3c77e18c8daebbb31f8019a18221d5da05293'
+ '01ba9fd3f791960aa3e803de4a101084c674ce8bfbaf389953aacc6beedd66dc'
'babda4f5c1179825797496898d77334ac067149cac03d797ab27ac69671a7feb')
# Possible replacements are listed in build/linux/unbundle/replace_gn_files.py
@@ -133,6 +135,9 @@ prepare() {
# Enable vaapi on wayland
patch -Np1 -i ../ozone-add-va-api-support-to-wayland.patch
+ # Remove HEVC profile limits
+ patch -Np1 -i ../remove-main-main10-profile-limit.patch
+
# Ungoogled Chromium changes
_ungoogled_repo="$srcdir/$pkgname-$_uc_ver"
_utils="${_ungoogled_repo}/utils"
@@ -189,6 +194,8 @@ build() {
'use_sysroot=false'
'use_custom_libcxx=false'
'enable_widevine=true'
+ 'enable_platform_hevc=true'
+ 'enable_hevc_parser_and_hw_decoder=true'
)
if [[ -n ${_system_libs[icu]+set} ]]; then
diff --git a/remove-main-main10-profile-limit.patch b/remove-main-main10-profile-limit.patch
new file mode 100644
index 0000000..1b1611a
--- /dev/null
+++ b/remove-main-main10-profile-limit.patch
@@ -0,0 +1,39 @@
+diff --git a/media/base/supported_types.cc b/media/base/supported_types.cc
+index c2efcdb..cc28d84 100644
+--- a/media/base/supported_types.cc
++++ b/media/base/supported_types.cc
+@@ -205,34 +205,7 @@ bool IsHevcProfileSupported(const VideoType& type) {
+ return false;
+
+ #if BUILDFLAG(ENABLE_PLATFORM_HEVC)
+-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
+-#if BUILDFLAG(IS_CHROMEOS_LACROS)
+- // TODO(b/171813538): For Lacros, the supplemental profile cache will be
+- // asking lacros-gpu, but we will be doing decoding in ash-gpu. Until the
+- // codec detection is plumbed through to ash-gpu we can do this extra check
+- // for HEVC support.
+- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+- switches::kLacrosEnablePlatformHevc)) {
+- return true;
+- }
+-#endif // BUILDFLAG(IS_CHROMEOS_LACROS)
+- return GetSupplementalProfileCache()->IsProfileSupported(type.profile);
+-#elif BUILDFLAG(IS_MAC)
+- if (__builtin_available(macOS 11.0, *))
+- return base::FeatureList::IsEnabled(kPlatformHEVCDecoderSupport) &&
+- (type.profile == HEVCPROFILE_MAIN ||
+- type.profile == HEVCPROFILE_MAIN10 ||
+- type.profile == HEVCPROFILE_MAIN_STILL_PICTURE ||
+- type.profile == HEVCPROFILE_REXT);
+- return false;
+-#elif BUILDFLAG(IS_ANDROID)
+- // Technically android 5.0 mandates support for only HEVC main profile,
+- // however some platforms (like chromecast) have had more profiles supported
+- // so we'll see what happens if we just enable them all.
+- return base::FeatureList::IsEnabled(kPlatformHEVCDecoderSupport);
+-#else
+ return true;
+-#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
+ #else
+ return false;
+ #endif // BUILDFLAG(ENABLE_PLATFORM_HEVC)
diff --git a/update-patches.sh b/update-patches.sh
index 6e91587..5882faf 100755
--- a/update-patches.sh
+++ b/update-patches.sh
@@ -1,12 +1,13 @@
#!/bin/bash
mkdir tmp
-mv ozone-add-va-api-support-to-wayland.patch tmp
+mv ozone-add-va-api-support-to-wayland.patch remove-main-main10-profile-limit.patch tmp
rm *.patch
git clone https://github.com/archlinux/svntogit-packages.git --branch packages/chromium --single-branch chr
mv chr/trunk/*.patch .
nvim -d PKGBUILD chr/trunk/PKGBUILD
+makepkg --printsrcinfo > .SRCINFO
rm -rf chr
mv tmp/* .