commit f6143e967e1eacca6ece9aaf06a67e3acaee73c8
Author: qvint <dotqvint(a)gmail.com>
Date: Thu Apr 9 11:26:57 2020 +0300
Update to 81.0.4044.92
Add-missing-header-to-fix-webrtc-build.patch | 16 --
cert-trans-google.patch | 13 --
chromium-71.0.3578.98-py2-bootstrap.patch | 31 +++
chromium-77.0.3865.75-gcc-include-memory.patch | 34 ---
...-use-c++17-to-work-around-ugly-angle-code.patch | 28 ---
chromium-80-gcc-abstract.patch | 41 ----
chromium-80-gcc-blink.patch | 45 ----
chromium-80-gcc-incomplete-type.patch | 229 ---------------------
chromium-80-gcc-permissive.patch | 33 ---
chromium-80-gcc-quiche.patch | 30 ---
chromium-80-include.patch | 33 ---
chromium-80-unbundle-libxml.patch | 101 ---------
...mium-80.0.3987.106-missing-cstddef-header.patch | 44 ----
...mium-80.0.3987.106-missing-cstring-header.patch | 34 ---
chromium-80.0.3987.87-fix-for-c++17.patch | 190 -----------------
chromium-80.0.3987.87-missing-cstdint-header.patch | 55 -----
chromium-80.0.3987.87-missing-string-header.patch | 11 -
chromium-81-gcc-10.patch | 86 ++++++++
chromium-81-gcc-r742632.patch | 27 +++
chromium-81-gcc-r742834.patch | 35 ++++
chromium-81-gcc-r743910.patch | 62 ++++++
chromium-81-vaapi-r737459.patch | 52 +++++
chromium-81-vaapi-r738595.patch | 31 +++
chromium-base-location.patch | 13 --
enable-vaapi.patch => chromium-enable-vaapi.patch | 38 +---
widevine.patch => chromium-enable-widevine.patch | 2 -
...ntel.patch => chromium-fix-vaapi-on-intel.patch | 19 +-
chromium-freeworld.spec | 77 +++----
brand.patch => chromium-rpm-fusion-brand.patch | 9 -
chromium-system-icu.patch | 20 --
chromium-unbundle-zlib.patch | 13 --
py2-bootstrap.patch | 33 ---
sources | 2 +-
33 files changed, 368 insertions(+), 1119 deletions(-)
---
diff --git a/chromium-71.0.3578.98-py2-bootstrap.patch
b/chromium-71.0.3578.98-py2-bootstrap.patch
new file mode 100644
index 0000000..5c5f0b2
--- /dev/null
+++ b/chromium-71.0.3578.98-py2-bootstrap.patch
@@ -0,0 +1,31 @@
+--- a/third_party/catapult/common/py_vulcanize/py_vulcanize/generate.py
++++ b/third_party/catapult/common/py_vulcanize/py_vulcanize/generate.py
+@@ -74,7 +74,7 @@ def _MinifyJS(input_js):
+
+ with tempfile.NamedTemporaryFile() as _:
+ args = [
+- 'python',
++ 'python2',
+ rjsmin_path
+ ]
+ p = subprocess.Popen(args,
+@@ -194,7 +194,7 @@ def _MinifyCSS(css_text):
+ os.path.join(py_vulcanize_path, 'third_party', 'rcssmin',
'rcssmin.py'))
+
+ with tempfile.NamedTemporaryFile() as _:
+- rcssmin_args = ['python', rcssmin_path]
++ rcssmin_args = ['python2', rcssmin_path]
+ p = subprocess.Popen(rcssmin_args,
+ stdin=subprocess.PIPE,
+ stdout=subprocess.PIPE,
+--- a/tools/gn/bootstrap/bootstrap.py
++++ b/tools/gn/bootstrap/bootstrap.py
+@@ -129,7 +129,7 @@ def main(argv):
+ if not options.debug:
+ gn_gen_args += ' is_debug=false'
+ subprocess.check_call([
+- gn_path, 'gen', out_dir,
++ gn_path, 'gen', out_dir, '
--script-executable=/usr/bin/python2',
+ '--args=%s' % gn_gen_args, "--root=" + SRC_ROOT
+ ])
+
diff --git a/chromium-81-gcc-10.patch b/chromium-81-gcc-10.patch
new file mode 100644
index 0000000..fbda689
--- /dev/null
+++ b/chromium-81-gcc-10.patch
@@ -0,0 +1,86 @@
+From 797a8ef5b7a5d3ab513a4eef68755a939dc570be Mon Sep 17 00:00:00 2001
+From: Stephan Hartmann <stha09(a)googlemail.com>
+Date: Tue, 7 Apr 2020 10:02:27 +0000
+Subject: [PATCH] GCC: fix includes for gcc-10
+
+--- a/base/trace_event/trace_event_memory_overhead.h
++++ b/base/trace_event/trace_event_memory_overhead.h
+@@ -9,6 +9,7 @@
+ #include <stdint.h>
+
+ #include <unordered_map>
++#include <string>
+
+ #include "base/base_export.h"
+ #include "base/macros.h"
+--- a/chrome/browser/search/background/ntp_backgrounds.h
++++ b/chrome/browser/search/background/ntp_backgrounds.h
+@@ -6,6 +6,7 @@
+ #define CHROME_BROWSER_SEARCH_BACKGROUND_NTP_BACKGROUNDS_H_
+
+ #include <array>
++#include <cstddef>
+
+ class GURL;
+
+--- a/media/cdm/supported_cdm_versions.h
++++ b/media/cdm/supported_cdm_versions.h
+@@ -6,6 +6,7 @@
+ #define MEDIA_CDM_SUPPORTED_CDM_VERSIONS_H_
+
+ #include <array>
++#include <cstddef>
+
+ #include "media/base/media_export.h"
+ #include "media/cdm/api/content_decryption_module.h"
+--- a/third_party/angle/include/platform/Platform.h
++++ b/third_party/angle/include/platform/Platform.h
+@@ -11,6 +11,7 @@
+
+ #include <stdint.h>
+ #include <array>
++#include <cstddef>
+
+ #define EGL_PLATFORM_ANGLE_PLATFORM_METHODS_ANGLEX 0x3482
+
+--- a/third_party/perfetto/include/perfetto/base/task_runner.h
++++ b/third_party/perfetto/include/perfetto/base/task_runner.h
+@@ -18,6 +18,7 @@
+ #define INCLUDE_PERFETTO_BASE_TASK_RUNNER_H_
+
+ #include <functional>
++#include <cstdint>
+
+ #include "perfetto/base/export.h"
+
+--- a/third_party/webrtc/call/rtx_receive_stream.h
++++ b/third_party/webrtc/call/rtx_receive_stream.h
+@@ -12,6 +12,7 @@
+ #define CALL_RTX_RECEIVE_STREAM_H_
+
+ #include <map>
++#include <cstdint>
+
+ #include "call/rtp_packet_sink_interface.h"
+
+--- a/third_party/webrtc/modules/audio_processing/aec3/clockdrift_detector.h
++++ b/third_party/webrtc/modules/audio_processing/aec3/clockdrift_detector.h
+@@ -12,6 +12,7 @@
+ #define MODULES_AUDIO_PROCESSING_AEC3_CLOCKDRIFT_DETECTOR_H_
+
+ #include <array>
++#include <cstddef>
+
+ namespace webrtc {
+
+--- a/ui/gfx/linux/drm_util_linux.h
++++ b/ui/gfx/linux/drm_util_linux.h
+@@ -7,6 +7,8 @@
+
+ #include "ui/gfx/buffer_types.h"
+
++#include <cstdint>
++
+ namespace ui {
+
+ int GetFourCCFormatFromBufferFormat(gfx::BufferFormat format);
diff --git a/chromium-81-gcc-r742632.patch b/chromium-81-gcc-r742632.patch
new file mode 100644
index 0000000..e1cae3d
--- /dev/null
+++ b/chromium-81-gcc-r742632.patch
@@ -0,0 +1,27 @@
+From c9b108ac880f898c21617734de2e1ab45c5c24f3 Mon Sep 17 00:00:00 2001
+From: Stephan Hartmann <stha09(a)googlemail.com>
+Date: Wed, 19 Feb 2020 15:21:27 +0000
+Subject: [PATCH] GCC: remove noexcept on definition of operator= in PaintPreviewClient
+
+GCC throws an error if noexcept is specified on declaration and
+definition. Specifing on declaration is enough.
+
+Bug: 819294
+Change-Id: I89f03cf3ee73e63b3f711082315a67f93ccc9dbe
+Reviewed-on:
https://chromium-review.googlesource.com/c/chromium/src/+/2059999
+Reviewed-by: Calder Kitagawa <ckitagawa(a)chromium.org>
+Commit-Queue: Mehran Mahmoudi <mahmoudi(a)chromium.org>
+Cr-Commit-Position: refs/heads/master@{#742632}
+---
+
+--- a/components/paint_preview/browser/paint_preview_client.cc
++++ b/components/paint_preview/browser/paint_preview_client.cc
+@@ -78,7 +78,7 @@ PaintPreviewClient::PaintPreviewData::Pa
+ PaintPreviewClient::PaintPreviewData::~PaintPreviewData() = default;
+
+ PaintPreviewClient::PaintPreviewData& PaintPreviewClient::PaintPreviewData::
+-operator=(PaintPreviewData&& rhs) noexcept = default;
++operator=(PaintPreviewData&& rhs) = default;
+ PaintPreviewClient::PaintPreviewData::PaintPreviewData(
+ PaintPreviewData&& other) noexcept = default;
+
diff --git a/chromium-81-gcc-r742834.patch b/chromium-81-gcc-r742834.patch
new file mode 100644
index 0000000..388cc04
--- /dev/null
+++ b/chromium-81-gcc-r742834.patch
@@ -0,0 +1,35 @@
+From e2c7f4b29abf55db20d957616e3691ae69c279d0 Mon Sep 17 00:00:00 2001
+From: Jose Dapena Paz <jdapena(a)igalia.com>
+Date: Wed, 19 Feb 2020 22:29:56 +0000
+Subject: [PATCH] GCC: SizeBounds setters cannot be constexpr
+
+As base::Optional move assignment operator is not constexpr, the
+setters using it cannot be constexpr either.
+
+Bug: 819294
+Change-Id: I0c6e0325728f05ff9d6d892a3508ebb1b21a85c3
+Reviewed-on:
https://chromium-review.googlesource.com/c/chromium/src/+/2041611
+Reviewed-by: Allen Bauer <kylixrd(a)chromium.org>
+Commit-Queue: José Dapena Paz <jdapena(a)igalia.com>
+Cr-Commit-Position: refs/heads/master@{#742834}
+---
+
+--- a/ui/views/layout/layout_types.h
++++ b/ui/views/layout/layout_types.h
+@@ -45,14 +45,10 @@ class VIEWS_EXPORT SizeBounds {
+ ~SizeBounds() = default;
+
+ constexpr const base::Optional<int>& width() const { return width_; }
+- constexpr void set_width(base::Optional<int> width) {
+- width_ = std::move(width);
+- }
++ void set_width(base::Optional<int> width) { width_ = std::move(width); }
+
+ constexpr const base::Optional<int>& height() const { return height_; }
+- constexpr void set_height(base::Optional<int> height) {
+- height_ = std::move(height);
+- }
++ void set_height(base::Optional<int> height) { height_ = std::move(height); }
+
+ // Enlarges (or shrinks, if negative) each upper bound that is present by the
+ // specified amounts.
diff --git a/chromium-81-gcc-r743910.patch b/chromium-81-gcc-r743910.patch
new file mode 100644
index 0000000..62eca8a
--- /dev/null
+++ b/chromium-81-gcc-r743910.patch
@@ -0,0 +1,62 @@
+From 25e1634f6b7b052733b17c40f4f83aa59a14ab0f Mon Sep 17 00:00:00 2001
+From: Jose Dapena Paz <jdapena(a)igalia.com>
+Date: Mon, 24 Feb 2020 12:56:15 +0000
+Subject: [PATCH] GCC: workaround error resolving IsA template in DeleteSelectionCommand
+
+GCC fails to resolve IsA template as a function parameter in DeleteSelectionCommand.
+To avoid this we add a static function that uses it internally, with the expected
+function signature expected by EnclosingNodeOfType.
+
+Bug: 819294
+Change-Id: If9dfcfb4ca7e298d33545bfd870b6e3d05f9ce76
+Reviewed-on:
https://chromium-review.googlesource.com/c/chromium/src/+/2052173
+Commit-Queue: José Dapena Paz <jdapena(a)igalia.com>
+Reviewed-by: Yoshifumi Inoue <yosin(a)chromium.org>
+Cr-Commit-Position: refs/heads/master@{#743910}
+---
+
+--- a/third_party/blink/renderer/core/editing/commands/delete_selection_command.cc
++++ b/third_party/blink/renderer/core/editing/commands/delete_selection_command.cc
+@@ -25,6 +25,7 @@
+
+ #include
"third_party/blink/renderer/core/editing/commands/delete_selection_command.h"
+
++#include "build/build_config.h"
+ #include "third_party/blink/renderer/core/dom/document.h"
+ #include "third_party/blink/renderer/core/dom/element.h"
+ #include "third_party/blink/renderer/core/dom/node_traversal.h"
+@@ -225,6 +226,15 @@ static Position TrailingWhitespacePositi
+ return Position();
+ }
+
++// Workaround: GCC fails to resolve overloaded template functions, passed as
++// parameters of EnclosingNodeType. But it works wrapping that in a utility
++// function.
++#if defined(COMPILER_GCC)
++static bool IsHTMLTableRowElement(const blink::Node* node) {
++ return IsA<HTMLTableRowElement>(node);
++}
++#endif
++
+ void DeleteSelectionCommand::InitializePositionData(
+ EditingState* editing_state) {
+ DCHECK(!GetDocument().NeedsLayoutTreeUpdate());
+@@ -253,10 +263,18 @@ void DeleteSelectionCommand::InitializeP
+ start_root_ = RootEditableElementOf(start);
+ end_root_ = RootEditableElementOf(end);
+
++#if defined(COMPILER_GCC)
++ // Workaround. See declaration of IsHTMLTableRowElement
++ start_table_row_ = To<HTMLTableRowElement>(
++ EnclosingNodeOfType(start, &IsHTMLTableRowElement));
++ end_table_row_ =
++ To<HTMLTableRowElement>(EnclosingNodeOfType(end,
&IsHTMLTableRowElement));
++#else
+ start_table_row_ = To<HTMLTableRowElement>(
+ EnclosingNodeOfType(start, &IsA<HTMLTableRowElement>));
+ end_table_row_ = To<HTMLTableRowElement>(
+ EnclosingNodeOfType(end, &IsA<HTMLTableRowElement>));
++#endif
+
+ // Don't move content out of a table cell.
+ // If the cell is non-editable, enclosingNodeOfType won't return it by
diff --git a/chromium-81-vaapi-r737459.patch b/chromium-81-vaapi-r737459.patch
new file mode 100644
index 0000000..cb10f3e
--- /dev/null
+++ b/chromium-81-vaapi-r737459.patch
@@ -0,0 +1,52 @@
+From 98e343ab369e4262511b5fce547728e3e5eefba8 Mon Sep 17 00:00:00 2001
+From: Hidehiko Abe <hidehiko(a)chromium.org>
+Date: Fri, 31 Jan 2020 21:27:40 +0000
+Subject: [PATCH] Use same condition for field declaration and its use.
+
+cros_supported_configs_ is defined iff OS_CHROMEOS is defined.
+However, it is used iff USE_CHROMEOS_MEDIA_ACCELERATION regardless of
+OS_CHROMEOS.
+This CL aligns the conditions.
+
+BUG=1047719
+TEST=Build locally.
+
+Change-Id: I08fe8532c1778ff8c77c7a9d9cdd96ff2a83272f
+Reviewed-on:
https://chromium-review.googlesource.com/c/chromium/src/+/2030924
+Reviewed-by: Xiaohan Wang <xhwang(a)chromium.org>
+Reviewed-by: Miguel Casas <mcasas(a)chromium.org>
+Commit-Queue: Miguel Casas <mcasas(a)chromium.org>
+Cr-Commit-Position: refs/heads/master@{#737459}
+---
+
+--- a/media/mojo/services/gpu_mojo_media_client.cc
++++ b/media/mojo/services/gpu_mojo_media_client.cc
+@@ -157,7 +157,7 @@ GpuMojoMediaClient::GetSupportedVideoDec
+ supported_config_map[VideoDecoderImplementation::kAlternate] =
+ *d3d11_supported_configs_;
+
+-#elif BUILDFLAG(USE_CHROMEOS_MEDIA_ACCELERATION)
++#elif defined(OS_CHROMEOS) && BUILDFLAG(USE_CHROMEOS_MEDIA_ACCELERATION)
+ if (base::FeatureList::IsEnabled(kChromeosVideoDecoder)) {
+ if (!cros_supported_configs_) {
+ cros_supported_configs_ =
+--- a/media/mojo/services/gpu_mojo_media_client.h
++++ b/media/mojo/services/gpu_mojo_media_client.h
+@@ -74,16 +74,13 @@ class GpuMojoMediaClient : public MojoMe
+ #if defined(OS_CHROMEOS) && BUILDFLAG(USE_CHROMEOS_MEDIA_ACCELERATION)
+ // Indirectly owned by GpuChildThread.
+ gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_;
++ base::Optional<SupportedVideoDecoderConfigs> cros_supported_configs_;
+ #endif // defined(OS_CHROMEOS) && BUILDFLAG(USE_CHROMEOS_MEDIA_ACCELERATION)
+ CdmProxyFactoryCB cdm_proxy_factory_cb_;
+ #if defined(OS_WIN)
+ base::Optional<SupportedVideoDecoderConfigs> d3d11_supported_configs_;
+ #endif // defined(OS_WIN)
+
+-#if defined(OS_CHROMEOS)
+- base::Optional<SupportedVideoDecoderConfigs> cros_supported_configs_;
+-#endif // defined(OS_CHROMEOS)
+-
+ DISALLOW_COPY_AND_ASSIGN(GpuMojoMediaClient);
+ };
+
diff --git a/chromium-81-vaapi-r738595.patch b/chromium-81-vaapi-r738595.patch
new file mode 100644
index 0000000..03822da
--- /dev/null
+++ b/chromium-81-vaapi-r738595.patch
@@ -0,0 +1,31 @@
+From 5b2ff215473e0526b5b24aeff4ad90d369b21c75 Mon Sep 17 00:00:00 2001
+From: Julien Isorce <julien.isorce(a)chromium.org>
+Date: Wed, 05 Feb 2020 17:59:59 +0000
+Subject: [PATCH] Fix vaapi with GLX
+
+The signature of ui's gl::GLImageGLX has changed a little bit
+since "mplement GpuMemoryBuffers for EGL and GLX":
+
https://chromium-review.googlesource.com/c/chromium/src/+/1984712
+
+Bug: 1031269
+Test: build with use_vaapi=true and run with --use-gl=desktop, see
+Change-Id: I80b07294b9abdfa8233aaf79f7d9ec4c58117090
+https:
//chromium.googlesource.com/chromium/src.git/+/refs/heads/master/docs/gpu/vaapi.md#vaapi-on-linux
+Reviewed-on:
https://chromium-review.googlesource.com/c/chromium/src/+/2036494
+Reviewed-by: Thomas Anderson <thomasanderson(a)chromium.org>
+Reviewed-by: Miguel Casas <mcasas(a)chromium.org>
+Commit-Queue: Julien Isorce <julien.isorce(a)chromium.org>
+Cr-Commit-Position: refs/heads/master@{#738595}
+---
+
+--- a/media/gpu/vaapi/vaapi_picture_tfp.cc
++++ b/media/gpu/vaapi/vaapi_picture_tfp.cc
+@@ -57,7 +57,7 @@ bool VaapiTFPPicture::Initialize() {
+ if (make_context_current_cb_ && !make_context_current_cb_.Run())
+ return false;
+
+- glx_image_ = new gl::GLImageGLX(size_, GL_RGB);
++ glx_image_ = new gl::GLImageGLX(size_, gfx::BufferFormat::BGRX_8888);
+ if (!glx_image_->Initialize(x_pixmap_)) {
+ // x_pixmap_ will be freed in the destructor.
+ DLOG(ERROR) << "Failed creating a GLX Pixmap for TFP";
diff --git a/enable-vaapi.patch b/chromium-enable-vaapi.patch
similarity index 73%
rename from enable-vaapi.patch
rename to chromium-enable-vaapi.patch
index 1dd612a..5371fd7 100644
--- a/enable-vaapi.patch
+++ b/chromium-enable-vaapi.patch
@@ -3,18 +3,9 @@ From: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
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 | 9 ++++++---
- chrome/browser/flag_descriptions.h | 10 ++++++++--
- gpu/config/software_rendering_list.json | 3 ++-
- 4 files changed, 20 insertions(+), 10 deletions(-)
-
-diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
-index e608f06a2..c0776db45 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
-@@ -1738,7 +1738,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -1920,7 +1920,7 @@ const FeatureEntry kFeatureEntries[] = {
"disable-accelerated-video-decode",
flag_descriptions::kAcceleratedVideoDecodeName,
flag_descriptions::kAcceleratedVideoDecodeDescription,
@@ -23,7 +14,7 @@ index e608f06a2..c0776db45 100644
SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedVideoDecode),
},
{
-@@ -2216,12 +2216,12 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -2352,12 +2352,12 @@ const FeatureEntry kFeatureEntries[] = {
FEATURE_VALUE_TYPE(service_manager::features::kXRSandbox)},
#endif // !defined(OS_ANDROID)
#endif // ENABLE_VR
@@ -39,11 +30,9 @@ index e608f06a2..c0776db45 100644
{"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 d27bbb28f..1c6542bdd 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
-@@ -3071,16 +3071,19 @@ const char kMacSystemMediaPermissionsInfoUiDescription[] =
+@@ -2999,16 +2999,19 @@ const char kMetalDescription[] =
#endif
@@ -66,11 +55,9 @@ index d27bbb28f..1c6542bdd 100644
const char kAggregatedMlAppRankingName[] = "Rank suggested apps with ML.";
const char kAggregatedMlAppRankingDescription[] =
"Use the aggregated ML model to rank the suggested apps.";
-diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
-index 1f8899de1..06544e079 100644
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
-@@ -1822,13 +1822,19 @@ extern const char
kPermissionPromptPersistenceToggleDescription[];
+@@ -1730,13 +1730,19 @@ extern const char kMetalDescription[];
#endif // defined(OS_MACOSX)
@@ -92,24 +79,19 @@ index 1f8899de1..06544e079 100644
extern const char kAggregatedMlAppRankingName[];
extern const char kAggregatedMlAppRankingDescription[];
-diff --git a/gpu/config/software_rendering_list.json
b/gpu/config/software_rendering_list.json
-index ea1294e4c..bc52cbc8f 100644
--- a/gpu/config/software_rendering_list.json
+++ b/gpu/config/software_rendering_list.json
-@@ -334,11 +334,12 @@
+@@ -337,11 +337,12 @@
},
{
"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],
+ "cr_bugs": [137247, 1032907],
"os": {
"type": "linux"
},
-+ "vendor_id": "0x10de",
- "features": [
- "accelerated_video_decode"
- ]
---
-2.21.0
-
++ "vendor_id": "0x10de",
+ "exceptions": [
+ {
+ "machine_model_name": ["Chromecast"]
diff --git a/widevine.patch b/chromium-enable-widevine.patch
similarity index 74%
rename from widevine.patch
rename to chromium-enable-widevine.patch
index 32f0ae2..e2afcea 100644
--- a/widevine.patch
+++ b/chromium-enable-widevine.patch
@@ -1,5 +1,3 @@
-diff --git a/third_party/widevine/cdm/BUILD.gn b/third_party/widevine/cdm/BUILD.gn
-index ed0e2f5208b..5b431a030d5 100644
--- a/third_party/widevine/cdm/BUILD.gn
+++ b/third_party/widevine/cdm/BUILD.gn
@@ -14,7 +14,7 @@ buildflag_header("buildflags") {
diff --git a/fixvaapionintel.patch b/chromium-fix-vaapi-on-intel.patch
similarity index 74%
rename from fixvaapionintel.patch
rename to chromium-fix-vaapi-on-intel.patch
index a94886a..d252143 100644
--- a/fixvaapionintel.patch
+++ b/chromium-fix-vaapi-on-intel.patch
@@ -3,15 +3,9 @@ From: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
Date: Sat, 26 Oct 2019 10:06:30 +0530
Subject: [PATCH] Move offending function to chromeos only
----
- media/gpu/vaapi/vaapi_video_decode_accelerator.cc | 5 +++++
- 1 file changed, 5 insertions(+)
-
-diff --git a/media/gpu/vaapi/vaapi_video_decode_accelerator.cc
b/media/gpu/vaapi/vaapi_video_decode_accelerator.cc
-index f04b60f58..3e7865503 100644
--- a/media/gpu/vaapi/vaapi_video_decode_accelerator.cc
+++ b/media/gpu/vaapi/vaapi_video_decode_accelerator.cc
-@@ -63,6 +63,7 @@ void ReportToUMA(VAVDADecoderFailure failure) {
+@@ -63,6 +63,7 @@ void ReportToUMA(VAVDADecoderFailure fai
VAVDA_DECODER_FAILURES_MAX + 1);
}
@@ -25,9 +19,9 @@ index f04b60f58..3e7865503 100644
}
+#endif
- } // namespace
-
-@@ -1091,6 +1093,8 @@ VaapiVideoDecodeAccelerator::DecideBufferAllocationMode() {
+ // Returns the size of a rectangle whose upper left corner is at the origin (0,
+ // 0) and whose bottom right corner is the same as that of |rect|. This is
+@@ -1204,6 +1206,8 @@ VaapiVideoDecodeAccelerator::DecideBuffe
if (output_mode_ == VideoDecodeAccelerator::Config::OutputMode::IMPORT)
return BufferAllocationMode::kNormal;
@@ -36,7 +30,7 @@ index f04b60f58..3e7865503 100644
// On Gemini Lake, Kaby Lake and later we can pass to libva the client's
// PictureBuffers to decode onto, which skips the use of the Vpp unit and its
// associated format reconciliation copy, avoiding all internal buffer
-@@ -1107,6 +1111,7 @@ VaapiVideoDecodeAccelerator::DecideBufferAllocationMode() {
+@@ -1220,6 +1224,7 @@ VaapiVideoDecodeAccelerator::DecideBuffe
num_extra_pics_ = 3;
return BufferAllocationMode::kNone;
}
@@ -44,6 +38,3 @@ index f04b60f58..3e7865503 100644
// 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
---
-2.21.0
-
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index 64f2f6f..0413938 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -69,7 +69,7 @@
%global ozone 0
##############################Package Definitions######################################
Name: chromium-freeworld
-Version: 80.0.3987.163
+Version: 81.0.4044.92
Release: 1%{?dist}
Summary: Chromium web browser built with all freeworld codecs and VA-API support
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)
@@ -128,8 +128,8 @@ BuildRequires: pkgconfig(gnome-keyring-1)
BuildRequires: pkgconfig(libffi)
#for vaapi
BuildRequires: pkgconfig(libva)
-%if %{ozone}
BuildRequires: pkgconfig(gbm)
+%if %{ozone}
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-cursor)
BuildRequires: pkgconfig(wayland-scanner)
@@ -208,61 +208,35 @@ Recommends: libva-utils
%endif
# This build should be only available to amd64
ExclusiveArch: x86_64
-# Define Patches here ##
-# Enable video acceleration on chromium for Linux
-Patch1: enable-vaapi.patch
-# Enable support for widevine
-Patch2: widevine.patch
-# Fix vaapi on Intel
-Patch3: fixvaapionintel.patch
-#Fix certificare transperancy error introduced by the current stable version of chromium
-Patch5: cert-trans-google.patch
-# Bootstrap still uses python command
-Patch51: py2-bootstrap.patch
-# Fix building with system icu
-Patch52: chromium-system-icu.patch
-# Let's brand chromium!
-Patch54: brand.patch
-# Fix header
-Patch68: Add-missing-header-to-fix-webrtc-build.patch
-Patch69: chromium-unbundle-zlib.patch
-Patch70: chromium-base-location.patch
-
-# Gentoo:
-Patch400: chromium-80-include.patch
-Patch401: chromium-80-gcc-incomplete-type.patch
-Patch402: chromium-80-gcc-quiche.patch
-Patch403: chromium-80-gcc-permissive.patch
-Patch404: chromium-80-gcc-blink.patch
-Patch405: chromium-80-gcc-abstract.patch
-%if %{with system_libxml2}
-Patch406: chromium-80-unbundle-libxml.patch
-%endif
-# Fedora:
-Patch500: chromium-80.0.3987.87-missing-string-header.patch
-Patch501: chromium-80.0.3987.106-missing-cstddef-header.patch
-Patch502: chromium-80.0.3987.87-missing-cstdint-header.patch
-Patch503: chromium-77.0.3865.75-gcc-include-memory.patch
-Patch504: chromium-80.0.3987.106-missing-cstring-header.patch
+# Google patches (short-term fixes and backports):
+Patch150: chromium-81-vaapi-r737459.patch
+Patch151: chromium-81-vaapi-r738595.patch
+Patch152: chromium-81-gcc-r742632.patch
+Patch153: chromium-81-gcc-r742834.patch
+Patch154: chromium-81-gcc-r743910.patch
+
+# Gentoo patches (short-term fixes):
%if 0%{?fedora} >= 32
-Patch505:
chromium-79.0.3945.130-gcc10-use-c++17-to-work-around-ugly-angle-code.patch
-Patch506: chromium-80.0.3987.87-fix-for-c++17.patch
+Patch250: chromium-81-gcc-10.patch
%endif
+# Fedora patches:
+Patch300: chromium-71.0.3578.98-py2-bootstrap.patch
+
+# RPM Fusion patches [free/chromium-freeworld]:
+Patch400: chromium-enable-vaapi.patch
+Patch401: chromium-fix-vaapi-on-intel.patch
+Patch402: chromium-enable-widevine.patch
+%if %{freeworld}
+Patch403: chromium-rpm-fusion-brand.patch
+%endif
%description
%{name} is an open-source web browser, powered by WebKit (Blink)
############################################PREP###########################################################
%prep
%autosetup -n chromium-%{version} -p1
-%if !%{with system_libicu}
-%patch52 -p1 -R
-%endif
-%if !%{freeworld}
-%patch54 -p1 -R
-%endif
-
#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}=' {} +
@@ -297,6 +271,7 @@ find -depth -type f -writable -name "*.py" -exec sed -iE
'1s=^#! */usr/bin/\(pyt
third_party/angle/src/third_party/compiler \
third_party/angle/src/third_party/libXNVCtrl \
third_party/angle/src/third_party/trace_event \
+ third_party/angle/src/third_party/volk \
third_party/libgifcodec \
third_party/glslang \
third_party/angle/third_party/spirv-headers \
@@ -343,6 +318,8 @@ find -depth -type f -writable -name "*.py" -exec sed -iE
'1s=^#! */usr/bin/\(pyt
third_party/dav1d \
third_party/devscripts \
third_party/devtools-frontend \
+ third_party/devtools-frontend/src/front_end/third_party/fabricjs \
+ third_party/devtools-frontend/src/front_end/third_party/wasmparser \
third_party/devtools-frontend/src/third_party \
third_party/dom_distiller_js \
third_party/emoji-segmenter \
@@ -439,7 +416,6 @@ find -depth -type f -writable -name "*.py" -exec sed -iE
'1s=^#! */usr/bin/\(pyt
%endif
third_party/rnnoise \
third_party/s2cellid \
- third_party/sfntly \
third_party/skia \
third_party/skia/include/third_party/skcms \
third_party/skia/include/third_party/vulkan \
@@ -483,7 +459,7 @@ find -depth -type f -writable -name "*.py" -exec sed -iE
'1s=^#! */usr/bin/\(pyt
%if !%{with system_minizip}
third_party/zlib \
%endif
- tools/gn/base/third_party/icu \
+ tools/gn/src/base/third_party/icu \
url/third_party/mozilla \
v8/src/third_party/siphash \
v8/src/third_party/valgrind \
@@ -757,6 +733,9 @@ appstream-util validate-relax --nonet
"%{buildroot}%{_metainfodir}/%{name}.appda
%{chromiumdir}/swiftshader/libGLESv2.so
#########################################changelogs#################################################
%changelog
+* Thu Apr 09 2020 qvint <dotqvint(a)gmail.com> - 81.0.4044.92-1
+- Update to 81.0.4044.92
+
* Sun Apr 05 2020 qvint <dotqvint(a)gmail.com> - 80.0.3987.163-1
- Update to 80.0.3987.163
diff --git a/brand.patch b/chromium-rpm-fusion-brand.patch
similarity index 72%
rename from brand.patch
rename to chromium-rpm-fusion-brand.patch
index 0a3e2f9..f13be9c 100644
--- a/brand.patch
+++ b/chromium-rpm-fusion-brand.patch
@@ -3,12 +3,6 @@ From: Akarshan Biswas <akarshan.biswas(a)gmail.com>
Date: Wed, 7 Nov 2018 16:29:01 +0530
Subject: [PATCH] Let's brand chromium-vaapi
----
- components/version_ui_strings.grdp | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/components/version_ui_strings.grdp b/components/version_ui_strings.grdp
-index 6278a8a38..1611b4c80 100644
--- a/components/version_ui_strings.grdp
+++ b/components/version_ui_strings.grdp
@@ -7,7 +7,7 @@
@@ -20,6 +14,3 @@ index 6278a8a38..1611b4c80 100644
</message>
<message name="IDS_VERSION_UI_32BIT" desc="32-bit on the
chrome://version page">
(32-bit)
---
-2.19.1
-
diff --git a/sources b/sources
index 71927c0..7a4e91a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (chromium-80.0.3987.163.tar.xz) =
d6c25035870276cc0c8b9608ffd61cbc8d9c5beac3894163433d3b379b1c11ba00973c4268c2128a320407d2086d1c00b0896ec974a7575a4802ea0596d48a1c
+SHA512 (chromium-81.0.4044.92.tar.xz) =
2d5817c84ac17e7b4d2e4473df841f53a074528e0ac997345ee68db4a9f8b45d84ef50c1d475608428f49ae40fe5315cda9d501ee22b829156c9e533044fb5af