From 19d730df8560797473c923bfe371de4bb203338a Mon Sep 17 00:00:00 2001 From: Ivan Kozik Date: Tue, 17 Sep 2019 23:31:08 +0000 Subject: [PATCH] chromium: add patch to fix performance regression with fonts This reverts a commit to fix a serious performance regression introduced in Chromium 77: https://bugs.chromium.org/p/chromium/issues/detail?id=1003997 --- pkgs/applications/networking/browsers/chromium/common.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/networking/browsers/chromium/common.nix b/pkgs/applications/networking/browsers/chromium/common.nix index 6d43c313cc0..744ad79062b 100644 --- a/pkgs/applications/networking/browsers/chromium/common.nix +++ b/pkgs/applications/networking/browsers/chromium/common.nix @@ -138,6 +138,13 @@ let ./patches/jumbo-sorted.patch ./patches/no-build-timestamps.patch ./patches/widevine.patch + # Revert "Implement GetFallbackFont on Linux" to fix a performance regression + # Remove after https://bugs.chromium.org/p/chromium/issues/detail?id=1003997 is fixed + (fetchpatch { + url = "https://github.com/chromium/chromium/commit/5a32abe4247f80fdb55c55a289b906b0e42faa5f.patch"; + sha256 = "1a4jqmki6cyi2dwvaszh01db2diqnz1d50mhpdpby3dd1cw0xmfy"; + revert = true; + }) # Unfortunately, chromium regularly breaks on major updates and # then needs various patches backported in order to be compiled with GCC.