commit 97b636ae38c9e839fab67d2ab6e9434667356348
Author: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
Date: Sat Sep 21 11:59:37 2019 +0530
Update to 77.0.3865.90
Disabled Nvidia support
...VPP-on-Linux-Add-some-info-logs-and-fix-v.patch | 154 -------------
UseNormalBAM.patch | 82 +++++++
chromium-base-location.patch | 13 ++
chromium-gcc9-r666279.patch | 59 -----
chromium-gcc9-r666336.patch | 40 ----
chromium-gcc9-r666401.patch | 48 ----
chromium-gcc9-r666436.patch | 42 ----
chromium-gcc9-r666619.patch | 38 ----
chromium-gcc9-r666714.patch | 111 ----------
chromium-gcc9-r667064.patch | 114 ----------
chromium-gcc9-r667228.patch | 102 ---------
chromium-gcc9-r667260.patch | 46 ----
chromium-gcc9-r667484.patch | 68 ------
chromium-gcc9-r667901.patch | 105 ---------
chromium-gcc9-r668015.patch | 72 ------
chromium-gcc9-r668033.patch | 124 -----------
chromium-gcc9-r670973.patch | 55 -----
chromium-gcc9-r670980.patch | 61 -----
chromium-gcc9-r681321.patch | 35 +++
chromium-gcc9-r681333.patch | 71 ++++++
chromium-gcc9-r684731.patch | 138 ++++++++++++
chromium-quiche-gcc9.patch | 245 ---------------------
chromium-skia-harmony.patch | 14 --
chromium-unbundle-zlib.patch | 25 +++
chromium-vaapi.spec | 92 +++-----
enable-vaapi.patch | 62 +++---
26 files changed, 425 insertions(+), 1591 deletions(-)
---
diff --git a/UseNormalBAM.patch b/UseNormalBAM.patch
new file mode 100644
index 0000000..62a25bb
--- /dev/null
+++ b/UseNormalBAM.patch
@@ -0,0 +1,82 @@
+From 2fb5ffb6de4752a404e1ec406b31880288f1cc82 Mon Sep 17 00:00:00 2001
+From: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
+Date: Fri, 20 Sep 2019 19:04:07 +0530
+Subject: [PATCH] Use Normal BAM on Linux to workaround some intel driver
+ issues
+
+---
+ media/gpu/vaapi/vaapi_video_decode_accelerator.cc | 9 +++++++++
+ media/gpu/vaapi/vaapi_wrapper.cc | 2 +-
+ 2 files changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/media/gpu/vaapi/vaapi_video_decode_accelerator.cc
b/media/gpu/vaapi/vaapi_video_decode_accelerator.cc
+index 95df4498b..d7f39be58 100644
+--- a/media/gpu/vaapi/vaapi_video_decode_accelerator.cc
++++ b/media/gpu/vaapi/vaapi_video_decode_accelerator.cc
+@@ -66,6 +66,7 @@ void ReportToUMA(VAVDADecoderFailure failure) {
+ // Returns true if the CPU is an Intel Gemini Lake or later (including Kaby
+ // Lake) Cpu platform id's are referenced from the following file in kernel
+ // source arch/x86/include/asm/intel-family.h
++#if defined(OS_ANDROID) || defined(OS_CHROMEOS)
+ bool IsGeminiLakeOrLater() {
+ constexpr int kPentiumAndLaterFamily = 0x06;
+ constexpr int kGeminiLakeModelId = 0x7A;
+@@ -75,6 +76,7 @@ bool IsGeminiLakeOrLater() {
+ cpuid.model() >= kGeminiLakeModelId;
+ return is_geminilake_or_later;
+ }
++#endif
+
+ } // namespace
+
+@@ -1077,6 +1079,10 @@ VaapiVideoDecodeAccelerator::GetSupportedProfiles() {
+
+ VaapiVideoDecodeAccelerator::BufferAllocationMode
+ VaapiVideoDecodeAccelerator::DecideBufferAllocationMode() {
++#if defined(OS_LINUX) && !defined(OS_ANDROID) && !defined(OS_CHROMEOS)
++ return BufferAllocationMode::kNormal;
++#else
++
+ //
TODO(crbug.com/912295): Enable a better BufferAllocationMode for IMPORT
+ // |output_mode_| as well.
+ if (output_mode_ == VideoDecodeAccelerator::Config::OutputMode::IMPORT)
+@@ -1089,6 +1095,7 @@ VaapiVideoDecodeAccelerator::DecideBufferAllocationMode() {
+ // depends on the bitstream and sometimes it's not enough to cover the amount
+ // of frames needed by the client pipeline (see b/133733739).
+ //
TODO(crbug.com/911754): Enable for VP9 Profile 2.
++
+ if (IsGeminiLakeOrLater() &&
+ (profile_ == VP9PROFILE_PROFILE0 || profile_ == VP8PROFILE_ANY)) {
+ // Add one to the reference frames for the one being currently egressed, and
+@@ -1098,6 +1105,7 @@ VaapiVideoDecodeAccelerator::DecideBufferAllocationMode() {
+ num_extra_pics_ = 3;
+ return BufferAllocationMode::kNone;
+ }
++
+
+ // If we're here, we have to use the Vpp unit and allocate buffers for
+ // |decoder_|; usually we'd have to allocate the |decoder_|s
+@@ -1112,6 +1120,7 @@ VaapiVideoDecodeAccelerator::DecideBufferAllocationMode() {
+ return BufferAllocationMode::kReduced;
+
+ return BufferAllocationMode::kSuperReduced;
++#endif
+ }
+
+ bool VaapiVideoDecodeAccelerator::IsBufferAllocationModeReducedOrSuperReduced()
+diff --git a/media/gpu/vaapi/vaapi_wrapper.cc b/media/gpu/vaapi/vaapi_wrapper.cc
+index 7df60e273..d291d3ad0 100644
+--- a/media/gpu/vaapi/vaapi_wrapper.cc
++++ b/media/gpu/vaapi/vaapi_wrapper.cc
+@@ -397,7 +397,7 @@ bool VADisplayState::InitializeOnce() {
+ int major_version, minor_version;
+ VAStatus va_res = vaInitialize(va_display_, &major_version, &minor_version);
+ if (va_res != VA_STATUS_SUCCESS) {
+- LOG(ERROR) << "vaInitialize failed: " << vaErrorStr(va_res);
++ LOG(ERROR) << "vaInitialize failed!(ignore if using Wayland desktop
environment,
refer:https://github.com/akarshanbiswas/chromium-vaapi/issues/7) "
<< vaErrorStr(va_res);
+ return false;
+ }
+
+--
+2.21.0
+
diff --git a/chromium-base-location.patch b/chromium-base-location.patch
new file mode 100644
index 0000000..a57b5a4
--- /dev/null
+++ b/chromium-base-location.patch
@@ -0,0 +1,13 @@
+diff --git a/base/location.h b/base/location.h
+index c07e747..924db1c 100644
+--- a/base/location.h
++++ b/base/location.h
+@@ -18,7 +18,7 @@
+
+ namespace base {
+
+-#if defined(__has_builtin)
++#if defined(__clang__)
+ // Clang allows detection of these builtins.
+ #define SUPPORTS_LOCATION_BUILTINS \
+ (__has_builtin(__builtin_FUNCTION) && __has_builtin(__builtin_FILE) &&
\
diff --git a/chromium-gcc9-r681321.patch b/chromium-gcc9-r681321.patch
new file mode 100644
index 0000000..9c4f681
--- /dev/null
+++ b/chromium-gcc9-r681321.patch
@@ -0,0 +1,35 @@
+From 8c747a9c14ed4905f60f6680e2e09e33ea34163e Mon Sep 17 00:00:00 2001
+From: Jose Dapena Paz <jose.dapena(a)lge.com>
+Date: Fri, 26 Jul 2019 16:18:17 +0000
+Subject: [PATCH] IWYU: include <memory> in one_euro_filter.h as it uses
+ std::unique_ptr
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Bug: 819294
+Change-Id: Ie1530f7046b0c8eb76e26adca530fa57c67ed876
+Reviewed-on:
https://chromium-review.googlesource.com/c/chromium/src/+/1720637
+Reviewed-by: Ella Ge <eirage(a)chromium.org>
+Commit-Queue: José Dapena Paz <jose.dapena(a)lge.com>
+Cr-Commit-Position: refs/heads/master@{#681321}
+---
+ third_party/one_euro_filter/src/one_euro_filter.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/third_party/one_euro_filter/src/one_euro_filter.h
b/third_party/one_euro_filter/src/one_euro_filter.h
+index 7f8d15b62afa..a8cd0ab9a256 100644
+--- a/third_party/one_euro_filter/src/one_euro_filter.h
++++ b/third_party/one_euro_filter/src/one_euro_filter.h
+@@ -1,6 +1,8 @@
+ #ifndef ONE_EURO_ONE_EURO_FILTER_H_
+ #define ONE_EURO_ONE_EURO_FILTER_H_
+
++#include <memory>
++
+ #include "low_pass_filter.h"
+
+ namespace one_euro_filter {
+--
+2.21.0
+
diff --git a/chromium-gcc9-r681333.patch b/chromium-gcc9-r681333.patch
new file mode 100644
index 0000000..54e046f
--- /dev/null
+++ b/chromium-gcc9-r681333.patch
@@ -0,0 +1,71 @@
+From f08cb0022527081c078e8b96062e6c9b4fbda151 Mon Sep 17 00:00:00 2001
+From: Jose Dapena Paz <jose.dapena(a)lge.com>
+Date: Fri, 26 Jul 2019 16:48:06 +0000
+Subject: [PATCH] BinaryUploadService: change parameter passing that cannot
+ afford abstract class
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The method UploadForDeepScanning gets a Request as parameter. But Request is an
+abstract class, so GCC will not allow that declaration (polimorphycs should be
+passed by reference). Use std::unique_ptr so BinaryUploadService can assume
+ownership.
+
+Bug: 819294
+Change-Id: I9e8c75cc92b01abd704d9049b0421555377da5ba
+Reviewed-on:
https://chromium-review.googlesource.com/c/chromium/src/+/1713550
+Reviewed-by: Daniel Rubery <drubery(a)chromium.org>
+Commit-Queue: José Dapena Paz <jose.dapena(a)lge.com>
+Cr-Commit-Position: refs/heads/master@{#681333}
+---
+ .../download_protection/binary_upload_service.cc | 2 +-
+ .../download_protection/binary_upload_service.h | 5 ++++-
+ 2 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/chrome/browser/safe_browsing/download_protection/binary_upload_service.cc
b/chrome/browser/safe_browsing/download_protection/binary_upload_service.cc
+index 6430c89de49d..4e9048762366 100644
+--- a/chrome/browser/safe_browsing/download_protection/binary_upload_service.cc
++++ b/chrome/browser/safe_browsing/download_protection/binary_upload_service.cc
+@@ -10,7 +10,7 @@
+ namespace safe_browsing {
+
+ void BinaryUploadService::UploadForDeepScanning(
+- BinaryUploadService::Request request) {
++ std::unique_ptr<BinaryUploadService::Request> request) {
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
+ NOTREACHED();
+ }
+diff --git a/chrome/browser/safe_browsing/download_protection/binary_upload_service.h
b/chrome/browser/safe_browsing/download_protection/binary_upload_service.h
+index d2dfd83410c3..9b6f3958e1fe 100644
+--- a/chrome/browser/safe_browsing/download_protection/binary_upload_service.h
++++ b/chrome/browser/safe_browsing/download_protection/binary_upload_service.h
+@@ -5,6 +5,8 @@
+ #ifndef CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_PROTECTION_BINARY_UPLOAD_SERVICE_H_
+ #define CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_PROTECTION_BINARY_UPLOAD_SERVICE_H_
+
++#include <memory>
++
+ #include "base/callback.h"
+ #include "components/safe_browsing/proto/webprotect.pb.h"
+
+@@ -40,6 +42,7 @@ class BinaryUploadService {
+ public:
+ // |callback| will run on the UI thread.
+ explicit Request(Callback callback);
++ virtual ~Request() = default;
+ Request(const Request&) = delete;
+ Request& operator=(const Request&) = delete;
+
+@@ -67,7 +70,7 @@ class BinaryUploadService {
+ // Upload the given file contents for deep scanning. The results will be
+ // returned asynchronously by calling |request|'s |callback|. This must be
+ // called on the UI thread.
+- void UploadForDeepScanning(Request request);
++ void UploadForDeepScanning(std::unique_ptr<Request> request);
+ };
+
+ } // namespace safe_browsing
+--
+2.21.0
+
diff --git a/chromium-gcc9-r684731.patch b/chromium-gcc9-r684731.patch
new file mode 100644
index 0000000..3f6fce4
--- /dev/null
+++ b/chromium-gcc9-r684731.patch
@@ -0,0 +1,138 @@
+From 74138b9febd37eac0fc26b8efb110014a83a52c6 Mon Sep 17 00:00:00 2001
+From: Jeremy Roman <jbroman(a)chromium.org>
+Date: Wed, 7 Aug 2019 13:26:48 +0000
+Subject: [PATCH] WTF: Make LinkedHashSet understand values for which memset
+ initialization would be bad.
+
+Includes a unit test which fails before, and uses this to fix FontCacheKeyTraits.
+
+Bug: 980025
+Change-Id: If41f97444c7fd37b9b95d6dadaf3da5689079e9e
+Reviewed-on:
https://chromium-review.googlesource.com/c/chromium/src/+/1739948
+Reviewed-by: Kentaro Hara <haraken(a)chromium.org>
+Reviewed-by: Yutaka Hirano <yhirano(a)chromium.org>
+Commit-Queue: Jeremy Roman <jbroman(a)chromium.org>
+Cr-Commit-Position: refs/heads/master@{#684731}
+---
+ .../renderer/platform/fonts/font_cache_key.h | 4 ++
+ .../renderer/platform/wtf/linked_hash_set.h | 10 ++++-
+ .../platform/wtf/list_hash_set_test.cc | 45 +++++++++++++++++--
+ 3 files changed, 55 insertions(+), 4 deletions(-)
+
+diff --git a/third_party/blink/renderer/platform/fonts/font_cache_key.h
b/third_party/blink/renderer/platform/fonts/font_cache_key.h
+index 0efc8fb90941..90063cb2eacd 100644
+--- a/third_party/blink/renderer/platform/fonts/font_cache_key.h
++++ b/third_party/blink/renderer/platform/fonts/font_cache_key.h
+@@ -133,6 +133,10 @@ struct FontCacheKeyHash {
+
+ struct FontCacheKeyTraits : WTF::SimpleClassHashTraits<FontCacheKey> {
+ STATIC_ONLY(FontCacheKeyTraits);
++
++ // std::string's empty state need not be zero in all implementations,
++ // and it is held within FontFaceCreationParams.
++ static const bool kEmptyValueIsZero = false;
+ };
+
+ } // namespace blink
+diff --git a/third_party/blink/renderer/platform/wtf/linked_hash_set.h
b/third_party/blink/renderer/platform/wtf/linked_hash_set.h
+index b35b6e95f1e4..77e524c0843b 100644
+--- a/third_party/blink/renderer/platform/wtf/linked_hash_set.h
++++ b/third_party/blink/renderer/platform/wtf/linked_hash_set.h
+@@ -146,6 +146,11 @@ class LinkedHashSetNode : public LinkedHashSetNodeBase {
+ LinkedHashSetNodeBase* next)
+ : LinkedHashSetNodeBase(prev, next), value_(value) {}
+
++ LinkedHashSetNode(ValueArg&& value,
++ LinkedHashSetNodeBase* prev,
++ LinkedHashSetNodeBase* next)
++ : LinkedHashSetNodeBase(prev, next), value_(std::move(value)) {}
++
+ LinkedHashSetNode(LinkedHashSetNode&& other)
+ : LinkedHashSetNodeBase(std::move(other)),
+ value_(std::move(other.value_)) {}
+@@ -445,10 +450,13 @@ struct LinkedHashSetTraits
+
+ // The slot is empty when the next_ field is zero so it's safe to zero
+ // the backing.
+- static const bool kEmptyValueIsZero = true;
++ static const bool kEmptyValueIsZero = ValueTraits::kEmptyValueIsZero;
+
+ static const bool kHasIsEmptyValueFunction = true;
+ static bool IsEmptyValue(const Node& node) { return !node.next_; }
++ static Node EmptyValue() {
++ return Node(ValueTraits::EmptyValue(), nullptr, nullptr);
++ }
+
+ static const int kDeletedValue = -1;
+
+diff --git a/third_party/blink/renderer/platform/wtf/list_hash_set_test.cc
b/third_party/blink/renderer/platform/wtf/list_hash_set_test.cc
+index 4c3f8990b01c..cd1be0089b98 100644
+--- a/third_party/blink/renderer/platform/wtf/list_hash_set_test.cc
++++ b/third_party/blink/renderer/platform/wtf/list_hash_set_test.cc
+@@ -487,6 +487,7 @@ struct Simple {
+ };
+
+ struct Complicated {
++ Complicated() : Complicated(0) {}
+ Complicated(int value) : simple_(value) { objects_constructed_++; }
+
+ Complicated(const Complicated& other) : simple_(other.simple_) {
+@@ -495,9 +496,6 @@ struct Complicated {
+
+ Simple simple_;
+ static int objects_constructed_;
+-
+- private:
+- Complicated() = delete;
+ };
+
+ int Complicated::objects_constructed_ = 0;
+@@ -731,4 +729,45 @@ TYPED_TEST(ListOrLinkedHashSetMoveOnlyTest, MoveOnlyValue) {
+
+ } // anonymous namespace
+
++// A unit type which objects to its state being initialized wrong.
++struct InvalidZeroValue {
++ InvalidZeroValue() = default;
++ InvalidZeroValue(WTF::HashTableDeletedValueType) : deleted_(true) {}
++ ~InvalidZeroValue() { CHECK(ok_); }
++ bool IsHashTableDeletedValue() const { return deleted_; }
++
++ bool ok_ = true;
++ bool deleted_ = false;
++};
++
++template <>
++struct HashTraits<InvalidZeroValue> :
SimpleClassHashTraits<InvalidZeroValue> {
++ static const bool kEmptyValueIsZero = false;
++};
++
++template <>
++struct DefaultHash<InvalidZeroValue> {
++ struct Hash {
++ static unsigned GetHash(const InvalidZeroValue&) { return 0; }
++ static bool Equal(const InvalidZeroValue&, const InvalidZeroValue&) {
++ return true;
++ }
++ };
++};
++
++template <typename Set>
++class ListOrLinkedHashSetInvalidZeroTest : public testing::Test {};
++
++using InvalidZeroValueSetTypes =
++ testing::Types<ListHashSet<InvalidZeroValue>,
++ ListHashSet<InvalidZeroValue, 1>,
++ LinkedHashSet<InvalidZeroValue>>;
++TYPED_TEST_SUITE(ListOrLinkedHashSetInvalidZeroTest, InvalidZeroValueSetTypes);
++
++TYPED_TEST(ListOrLinkedHashSetInvalidZeroTest, InvalidZeroValue) {
++ using Set = TypeParam;
++ Set set;
++ set.insert(InvalidZeroValue());
++}
++
+ } // namespace WTF
+--
+2.21.0
+
diff --git a/chromium-unbundle-zlib.patch b/chromium-unbundle-zlib.patch
new file mode 100644
index 0000000..d6c45ad
--- /dev/null
+++ b/chromium-unbundle-zlib.patch
@@ -0,0 +1,25 @@
+From e1bbdec720a333937bd1b990ae0f7ee97db0d3b0 Mon Sep 17 00:00:00 2001
+From: Your Name <you(a)example.com>
+Date: Fri, 28 Jun 2019 15:56:23 +0000
+Subject: [PATCH] update zlib
+
+---
+ third_party/perfetto/gn/BUILD.gn | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/third_party/perfetto/gn/BUILD.gn b/third_party/perfetto/gn/BUILD.gn
+index c951f5f..297eee3 100644
+--- a/third_party/perfetto/gn/BUILD.gn
++++ b/third_party/perfetto/gn/BUILD.gn
+@@ -200,7 +200,7 @@ group("zlib") {
+ "//buildtools:zlib",
+ ]
+ } else if (build_with_chromium) {
+- public_configs = [ "//third_party/zlib:zlib_config" ]
++ public_configs = [ "//third_party/zlib:system_zlib" ]
+ public_deps = [
+ "//third_party/zlib",
+ ]
+--
+2.21.0
+
diff --git a/chromium-vaapi.spec b/chromium-vaapi.spec
index 3b15301..5ea832c 100644
--- a/chromium-vaapi.spec
+++ b/chromium-vaapi.spec
@@ -17,8 +17,8 @@
# This package depends on automagic byte compilation
#
https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompi...
%global _python_bytecompile_extra 1
-#Require harfbuzz >= 2 for hb_ot_tags_from_script_and_language
-%if 0%{?fedora} >= 30
+#Require harfbuzz >= 2.4.0 for hb_subset_input_set_retain_gids
+%if 0%{?fedora} >= 31
%bcond_without system_harfbuzz
%else
%bcond_with system_harfbuzz
@@ -39,7 +39,7 @@
%bcond_without system_ffmpeg
#Allow minizip to be unbundled
#mini-compat is going to be removed from fedora 30!
-%bcond_with system_minizip
+%bcond_without system_minizip
# Need re2 ver. 2016.07.21 for re2::LazyRE2
%bcond_with system_re2
@@ -55,8 +55,8 @@
%global ozone 0
##############################Package Definitions######################################
Name: chromium-vaapi
-Version: 76.0.3809.132
-Release: 2%{?dist}
+Version: 77.0.3865.90
+Release: 1%{?dist}
Summary: A Chromium web browser with video decoding acceleration
License: BSD and LGPLv2+ and ASL 2.0 and IJG and MIT and GPLv2+ and ISC and OpenSSL
and (MPLv1.1 or GPLv2 or LGPLv2)
URL:
https://www.chromium.org/Home
@@ -182,8 +182,8 @@ ExclusiveArch: x86_64
Patch1: enable-vaapi.patch
# Enable support for widevine
Patch2: widevine.patch
-Patch3: Do-not-use-VPP-on-Linux-Add-some-info-logs-and-fix-v.patch
-Patch4: chromium-skia-harmony.patch
+#Use Normal BAM on Linux
+Patch3: UseNormalBAM.patch
#Fix certificare transperancy error introduced by the current stable version of chromium
Patch5: cert-trans-google.patch
# Bootstrap still uses python command
@@ -198,63 +198,25 @@ Patch65: chromium-73.0.3683.75-pipewire-cstring-fix.patch
# Fix header
Patch68: Add-missing-header-to-fix-webrtc-build.patch
# GCC patches
-Patch70: chromium-gcc9-r666279.patch
-Patch71: chromium-gcc9-r666336.patch
-Patch72: chromium-gcc9-r666401.patch
-Patch73: chromium-gcc9-r666436.patch
-Patch74: chromium-gcc9-r666619.patch
-Patch75: chromium-gcc9-r666714.patch
-Patch76: chromium-gcc9-r667064.patch
-Patch77: chromium-gcc9-r667228.patch
-Patch78: chromium-gcc9-r667260.patch
-Patch79: chromium-gcc9-r667484.patch
-Patch80: chromium-gcc9-r667901.patch
-Patch81: chromium-gcc9-r668015.patch
-Patch82: chromium-gcc9-r668033.patch
-Patch83: chromium-gcc9-r670973.patch
-Patch84: chromium-gcc9-r670980.patch
-Patch85: chromium-quiche-gcc9.patch
+Patch69: chromium-gcc9-r681333.patch
+Patch70: chromium-gcc9-r681321.patch
+Patch71: chromium-unbundle-zlib.patch
+Patch72: chromium-base-location.patch
+Patch73: chromium-gcc9-r684731.patch
%description
-chromium-vaapi is an open-source web browser, powered by WebKit (Blink)
+%{name} is an open-source web browser, powered by WebKit (Blink)
############################################PREP###########################################################
%prep
-%autosetup -n chromium-%{version} -N
-## Apply patches here ##
-%patch1 -p1 -b .vaapi
-%patch2 -p1 -b .widevine
-%patch3 -p1 -b .fixvaapi
-%patch4 -p0 -b .skia
-%patch5 -p1 -b .cert
-%patch51 -p1 -b .py2boot
-%if %{with system_libicu}
-%patch52 -p1 -b .icu
+%autosetup -n chromium-%{version} -p1
+%if !%{with system_libicu}
+%patch52 -p1 -R
%endif
-%if %{freeworld}
-%patch54 -p1 -b .brand
+%if !%{freeworld}
+%patch54 -p1 -R
%endif
-%if 0%{?fedora} >= 29
-%patch65 -p1 -b .pipewire
-%endif
-%patch68 -p1 -b .socket
-# GCC patches area
-%patch70 -p1 -b .gcc1
-%patch71 -p1 -b .gcc2
-%patch72 -p1 -b .gcc2
-%patch73 -p1 -b .gcc3
-%patch74 -p1 -b .gcc4
-%patch75 -p1 -b .gcc5
-%patch76 -p1 -b .gcc6
-%patch77 -p1 -b .gcc7
-%patch78 -p1 -b .gcc8
-%patch79 -p1 -b .gcc9
-%patch80 -p1 -b .gcc10
-%patch81 -p1 -b .gcc11
-%patch82 -p1 -b .gcc12
-%patch83 -p1 -b .gcc13
-%patch84 -p1 -b .gcc14
-%patch85 -p1 -b .gcc15
+
#Let's change the default shebang of python files.
find -depth -type f -writable -name "*.py" -exec sed -iE '1s=^#!
*/usr/bin/\(python\|env python\)[23]\?=#!%{__python2}=' {} +
@@ -392,8 +354,10 @@ find -depth -type f -writable -name "*.py" -exec sed -iE
'1s=^#! */usr/bin/\(pyt
third_party/nasm \
third_party/node \
third_party/node/node_modules/polymer-bundler/lib/third_party/UglifyJS2 \
+ third_party/one_euro_filter \
third_party/openh264 \
third_party/openscreen \
+ third_party/openscreen/src/third_party/tinycbor/src/src \
third_party/ots \
third_party/pdfium \
third_party/pdfium/third_party/agg23 \
@@ -432,6 +396,11 @@ find -depth -type f -writable -name "*.py" -exec sed -iE
'1s=^#! */usr/bin/\(pyt
third_party/spirv-headers \
third_party/SPIRV-Tools \
third_party/sqlite \
+ third_party/swiftshader \
+ third_party/swiftshader/third_party/llvm-7.0 \
+ third_party/swiftshader/third_party/llvm-subzero \
+ third_party/swiftshader/third_party/subzero \
+ third_party/swiftshader/third_party/SPIRV-Headers/include/spirv/unified1 \
third_party/tcmalloc \
third_party/unrar \
third_party/usb_ids \
@@ -650,7 +619,7 @@ for i in 16 32; do
install -m 644 chrome/app/theme/default_100_percent/chromium/product_logo_$i.png \
%{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
done
-for i in 22 24 32 48 64 128 256; do
+for i in 24 32 48 64 128 256; do
if [ ${i} = 32 ]; then ext=xpm; else ext=png; fi
if [ ${i} = 32 ]; then dir=linux/; else dir=; fi
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps
@@ -669,7 +638,6 @@ appstream-util validate-relax --nonet
"%{buildroot}%{_metainfodir}/%{name}.appda
%{_datadir}/applications/%{name}.desktop
%{_datadir}/gnome-control-center/default-apps/%{name}.xml
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
-%{_datadir}/icons/hicolor/22x22/apps/%{name}.png
%{_datadir}/icons/hicolor/24x24/apps/%{name}.png
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm
@@ -697,7 +665,11 @@ appstream-util validate-relax --nonet
"%{buildroot}%{_metainfodir}/%{name}.appda
%{chromiumdir}/locales/*.pak
#########################################changelogs#################################################
%changelog
-* Fri Aug 30 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> -
76.0.3809.132-1
+* Sat Sep 21 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> -
77.0.3865.90-1
+- Update to 77.0.3865.90
+- Disabled Nvidia support
+
+* Fri Aug 30 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> -
76.0.3809.132-2
- Update to 76.0.3809.132
* Mon Aug 12 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> -
76.0.3809.100-2
diff --git a/enable-vaapi.patch b/enable-vaapi.patch
index 92b4946..dfc69ac 100644
--- a/enable-vaapi.patch
+++ b/enable-vaapi.patch
@@ -1,31 +1,31 @@
-From a07806f7b76dab142efc9342c952781573a004f4 Mon Sep 17 00:00:00 2001
+From f183ba2daac36bea97ea3be10c6ab9ed561f1cda Mon Sep 17 00:00:00 2001
From: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
-Date: Tue, 9 Jul 2019 19:03:09 +0530
-Subject: [PATCH] Enable vaapi on Linux
+Date: Fri, 20 Sep 2019 19:55:45 +0530
+Subject: [PATCH] Enable VAAPI on Linux
---
chrome/browser/about_flags.cc | 8 ++++----
chrome/browser/flag_descriptions.cc | 10 ++++++++--
chrome/browser/flag_descriptions.h | 10 ++++++++--
- gpu/config/software_rendering_list.json | 11 -----------
- 4 files changed, 20 insertions(+), 19 deletions(-)
+ gpu/config/software_rendering_list.json | 3 ++-
+ 4 files changed, 22 insertions(+), 9 deletions(-)
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
-index 61bb2977b..dd9318a7e 100644
+index 245672956..c48193fb4 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
-@@ -1450,7 +1450,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -1563,7 +1563,7 @@ const FeatureEntry kFeatureEntries[] = {
"disable-accelerated-video-decode",
flag_descriptions::kAcceleratedVideoDecodeName,
flag_descriptions::kAcceleratedVideoDecodeDescription,
- kOsMac | kOsWin | kOsCrOS | kOsAndroid,
-+ kOsMac | kOsWin | kOsCrOS | kOsAndroid | kOsLinux,
++ kOsMac | kOsWin | kOsCrOS | kOsAndroid | kOsLinux,
SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedVideoDecode),
},
- {"enable-history-favicons-google-server-query",
-@@ -1883,12 +1883,12 @@ const FeatureEntry kFeatureEntries[] = {
+ {
+@@ -2039,12 +2039,12 @@ const FeatureEntry kFeatureEntries[] = {
FEATURE_VALUE_TYPE(service_manager::features::kXRSandbox)},
- #endif // ENABLE_ISOLATED_XR_SERVICE
+ #endif // !defined(OS_ANDROID)
#endif // ENABLE_VR
-#if defined(OS_CHROMEOS)
+#if defined(OS_CHROMEOS) || defined(OS_LINUX)
@@ -35,15 +35,15 @@ index 61bb2977b..dd9318a7e 100644
+ flag_descriptions::kAcceleratedMjpegDecodeDescription, kOsCrOS | kOsLinux,
SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedMjpegDecode)},
-#endif // OS_CHROMEOS
-+#endif // OS_CHROMEOS //OS_LINUX
++#endif // OS_CHROMEOS | OS_LINUX
{"system-keyboard-lock", flag_descriptions::kSystemKeyboardLockName,
flag_descriptions::kSystemKeyboardLockDescription, kOsDesktop,
FEATURE_VALUE_TYPE(features::kSystemKeyboardLock)},
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
-index fe57ff6b6..2584e5cb4 100644
+index 4321b01dd..e24136410 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
-@@ -2766,15 +2766,21 @@ const char kMacSystemMediaPermissionsInfoUiDescription[] =
+@@ -2927,15 +2927,21 @@ const char kMacSystemMediaPermissionsInfoUiDescription[] =
#endif
@@ -68,10 +68,10 @@ index fe57ff6b6..2584e5cb4 100644
const char kAppServiceAshName[] = "App Service Ash";
const char kAppServiceAshDescription[] =
diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
-index 233ecb56d..9bd48777a 100644
+index ebca9b5eb..31f7e5571 100644
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
-@@ -1645,13 +1645,19 @@ extern const char
kPermissionPromptPersistenceToggleDescription[];
+@@ -1737,13 +1737,19 @@ extern const char
kPermissionPromptPersistenceToggleDescription[];
#endif // defined(OS_MACOSX)
@@ -94,27 +94,23 @@ index 233ecb56d..9bd48777a 100644
extern const char kAppServiceAshDescription[];
diff --git a/gpu/config/software_rendering_list.json
b/gpu/config/software_rendering_list.json
-index 03e251547..9eb0f1148 100644
+index 9def82b55..b1c76c84e 100644
--- a/gpu/config/software_rendering_list.json
+++ b/gpu/config/software_rendering_list.json
-@@ -368,17 +368,6 @@
- "all"
- ]
+@@ -370,11 +370,12 @@
},
-- {
-- "id": 48,
-- "description": "Accelerated video decode is unavailable on
Linux",
-- "cr_bugs": [137247],
-- "os": {
-- "type": "linux"
-- },
-- "features": [
-- "accelerated_video_decode"
-- ]
-- },
{
- "id": 50,
- "description": "Disable VMware software renderer on older
Mesa",
+ "id": 48,
+- "description": "Accelerated video decode is unavailable on
Linux",
++ "description": "Accelerated VA-API video decode is not supported on
NVIDIA platforms",
+ "cr_bugs": [137247],
+ "os": {
+ "type": "linux"
+ },
++ "vendor_id": "0x10de",
+ "features": [
+ "accelerated_video_decode"
+ ]
--
2.21.0