Gentoo Archives: gentoo-commits

From: Stephan Hartmann <sultan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/chromium/files/, www-client/chromium/
Date: Sat, 03 Oct 2020 07:25:46
Message-Id: 1601709704.84ce0858cd275482a211e99b3600f648a6990f3f.sultan@gentoo
1 commit: 84ce0858cd275482a211e99b3600f648a6990f3f
2 Author: Stephan Hartmann <sultan <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 3 07:21:30 2020 +0000
4 Commit: Stephan Hartmann <sultan <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 3 07:21:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84ce0858
7
8 www-client/chromium: dev channel bump to 87.0.4278.0
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org>
12
13 www-client/chromium/Manifest | 4 +-
14 ...0.4270.0.ebuild => chromium-87.0.4278.0.ebuild} | 12 +-
15 .../files/chromium-87-fix-vaapi-build.patch | 177 ---------------------
16 .../files/chromium-87-webcodecs-deps.patch | 27 ++++
17 4 files changed, 39 insertions(+), 181 deletions(-)
18
19 diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
20 index 258e12ebaaa..b8d5944ebf6 100644
21 --- a/www-client/chromium/Manifest
22 +++ b/www-client/chromium/Manifest
23 @@ -2,6 +2,6 @@ DIST chromium-85-patchset-2.tar.xz 9724 BLAKE2B 929d6abe3a66db395a9cedc63510a6a0
24 DIST chromium-85.0.4183.121.tar.xz 833194480 BLAKE2B d91302792fc34730795815a39ba91878f1d6d33c7bb810a10efcea2e117c069a6493b3acb1e3d8a04b19d599335b60d70523f47c65c42080cbe0d3981255c264 SHA512 9d61a0782c012fe36467a10f008962d45f4eaa065f6812276d847f7563056124c9fd21d8376dda8ab64e4c3b793da0593bac9d39988bbd60221828084b534945
25 DIST chromium-86-patchset-6.tar.xz 7152 BLAKE2B 494b412caec2b3e3fd6c838ba4b61d499433f5a6043e4763efc424c811e405ed11461d8df2afe0aa22d898329ef82df0c43c47ae30f7c4a1c0c3f6e5b314e283 SHA512 68833c9dea6a7183ff42a2d432cf811b360c1237c36feed6b4f9163b61d7f98854ce73b33c58851cb800cf72311a638adeedb4555caf15f80b4bd6aca5039aef
26 DIST chromium-86.0.4240.68.tar.xz 825424240 BLAKE2B 69638d0c0fb434593efd63c8d1700992d52e4ed20f5d36f2152d9c5e9aa6a0fc35a83c80c3428e3bc35ffb70e351185380ea2d4b98bcae6ca2dc7186d73ec45b SHA512 85d55d2ed5fa5fc9c835015871df258a7f465d07ba8b959345d309c52c718b70c2bbce476544eb1b432e88ef5f26ed3d1f1aeba50929b3795391f27371748f53
27 -DIST chromium-87-patchset-4.tar.xz 8100 BLAKE2B cf052203bb9ced993f051ebac51270da1482e59999d87aff24fa81d25cc0de228a92a00abb56e0caa91c3f045bdd9df7524d77b375b77f1a0c7c198cb05c7649 SHA512 bc7cb6ad99c7d45999d45e5c9df05d43c80c25212dafe3750146d2cb5b38a7239e32ac1e9bf245331ba7055c0a36e551131eab92ecea907e51878259416b59a9
28 -DIST chromium-87.0.4270.0.tar.xz 831037464 BLAKE2B f9b19b704e252b96c5a6861719828d3b08eee9128d753a8c264b21b0bd26cbc1e7a3d29909d4300e59246ac9c56b88e205f83efd024897915a8b77085fe5f160 SHA512 76cbf88b1390c2e64d6615e29763f00493b94beff5836c240833840b1b50fa782c137ebc66a81a6940f35052895bdc0098fefca5e6cc46f56dbc2b8b2184ca6f
29 +DIST chromium-87-patchset-5.tar.xz 7932 BLAKE2B d97f2f901e51288504cc6313d517251daf23d4f4b0f7802453076774c019ef4eeebef5e38c64c12efb156cc770f0fa3e0b00d6b832f8e0614988a0961b1ebb05 SHA512 b4d70cca16ec944771238140765c63487b7306a800298d896b6b5b46761af57b6c58f080d308bfd7d9e131e05d8b79503651c94b200a3ff3e18d11dafab3db0c
30 +DIST chromium-87.0.4278.0.tar.xz 832042784 BLAKE2B 5f02a03ddd076aa543a2c9620295d99f87a337f22afb7ebdee6533a57cfe947aa887522d53e83431b83ee213e56d4415624112d9bf094f39381d9cdf30a590ad SHA512 32ce81904659e07b63ced9ff0bbf9a1a61f6a201701e8154674d7107d0e62173c544fa4724bd1326e47209db44f65a7b29ae5c3832e59863126a7714f2947e0f
31 DIST setuptools-44.1.0.zip 858569 BLAKE2B f59f154e121502a731e51294ccd293d60ffccadacf51e23b53bf7ceba38858948b86783238061136c827ac3373ea7ea8e6253d4bb53f3f1dd69284568ec65a68 SHA512 4dfb0f42d334b835758e865a26ecd1e725711fa2b9c38ddc273b8b3849fba04527bc97436d11ba1e98f1a42922aa0f0b9032e32998273c705fac6e10735eacbf
32
33 diff --git a/www-client/chromium/chromium-87.0.4270.0.ebuild b/www-client/chromium/chromium-87.0.4278.0.ebuild
34 similarity index 98%
35 rename from www-client/chromium/chromium-87.0.4270.0.ebuild
36 rename to www-client/chromium/chromium-87.0.4278.0.ebuild
37 index 008abd293ee..2b6529a24d7 100644
38 --- a/www-client/chromium/chromium-87.0.4270.0.ebuild
39 +++ b/www-client/chromium/chromium-87.0.4278.0.ebuild
40 @@ -12,7 +12,7 @@ inherit check-reqs chromium-2 desktop flag-o-matic multilib ninja-utils pax-util
41
42 DESCRIPTION="Open-source version of Google Chrome web browser"
43 HOMEPAGE="https://chromium.org/"
44 -PATCHSET="4"
45 +PATCHSET="5"
46 PATCHSET_NAME="chromium-$(ver_cut 1)-patchset-${PATCHSET}"
47 SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz
48 https://files.pythonhosted.org/packages/ed/7b/bbf89ca71e722b7f9464ebffe4b5ee20a9e5c9a555a56e2d3914bb9119a6/setuptools-44.1.0.zip
49 @@ -177,6 +177,7 @@ in /etc/chromium/default.
50
51 PATCHES=(
52 "${FILESDIR}/chromium-87-ozone-deps.patch"
53 + "${FILESDIR}/chromium-87-webcodecs-deps.patch"
54 )
55
56 pre_build_checks() {
57 @@ -233,7 +234,6 @@ src_prepare() {
58 eapply "${WORKDIR}/patches"
59 if use vaapi; then
60 eapply "${FILESDIR}/chromium-86-fix-vaapi-on-intel.patch"
61 - eapply "${FILESDIR}/chromium-87-fix-vaapi-build.patch"
62 fi
63
64 default
65 @@ -404,6 +404,7 @@ src_prepare() {
66 third_party/s2cellid
67 third_party/schema_org
68 third_party/securemessage
69 + third_party/shaka-player
70 third_party/shell-encryption
71 third_party/simplejson
72 third_party/skia
73 @@ -881,4 +882,11 @@ pkg_postinst() {
74 xdg_icon_cache_update
75 xdg_desktop_database_update
76 readme.gentoo_print_elog
77 +
78 + if use vaapi; then
79 + elog "VA-API is disabled by default at runtime. Either enable it"
80 + elog "by navigating to chrome://flags/#enable-accelerated-video-decode"
81 + elog "inside Chromium or add --enable-accelerated-video-decode"
82 + elog "to CHROMIUM_FLAGS in /etc/chromium/default."
83 + fi
84 }
85
86 diff --git a/www-client/chromium/files/chromium-87-fix-vaapi-build.patch b/www-client/chromium/files/chromium-87-fix-vaapi-build.patch
87 deleted file mode 100644
88 index e230510fde7..00000000000
89 --- a/www-client/chromium/files/chromium-87-fix-vaapi-build.patch
90 +++ /dev/null
91 @@ -1,177 +0,0 @@
92 -From 90c4cfb5355a36de6660df4ed0a1c405a830ca0e Mon Sep 17 00:00:00 2001
93 -From: Tom Anderson <thomasanderson@××××××××.org>
94 -Date: Tue, 15 Sep 2020 12:02:17 -0700
95 -Subject: [PATCH] [XProto] Fix VAAPI build
96 -
97 -Fixes the build after [1] broke it.
98 -
99 -[1] https://chromium-review.googlesource.com/c/chromium/src/+/2392140
100 -
101 -Bug: 1066670, 1127532
102 -Change-Id: I340f91a1d4ba7214ea47fa4b1bb4a368fe5597f5
103 -R=mcasas
104 -CC=tmathmeyer
105 ----
106 -
107 -diff --git a/media/gpu/vaapi/vaapi_picture_native_pixmap_angle.cc b/media/gpu/vaapi/vaapi_picture_native_pixmap_angle.cc
108 -index 843cf22..91eb184 100644
109 ---- a/media/gpu/vaapi/vaapi_picture_native_pixmap_angle.cc
110 -+++ b/media/gpu/vaapi/vaapi_picture_native_pixmap_angle.cc
111 -@@ -7,6 +7,8 @@
112 - #include "media/gpu/vaapi/va_surface.h"
113 - #include "media/gpu/vaapi/vaapi_wrapper.h"
114 - #include "ui/base/ui_base_features.h"
115 -+#include "ui/gfx/x/connection.h"
116 -+#include "ui/gfx/x/xproto.h"
117 - #include "ui/gl/gl_bindings.h"
118 - #include "ui/gl/gl_image_egl_pixmap.h"
119 - #include "ui/gl/scoped_binders.h"
120 -@@ -16,24 +18,27 @@
121 - namespace {
122 -
123 - inline Pixmap CreatePixmap(const gfx::Size& size) {
124 -- auto* display = gfx::GetXDisplay();
125 -+ auto* connection = x11::Connection::Get();
126 -+ auto* display = connection->display();
127 - if (!display)
128 - return 0;
129 -
130 -- int screen = DefaultScreen(display);
131 -- auto root = XRootWindow(display, screen);
132 -- if (root == BadValue)
133 -- return 0;
134 -+ auto root = connection->default_root();
135 -
136 -- XWindowAttributes win_attr = {};
137 -- // returns 0 on failure, see:
138 -- // https://tronche.com/gui/x/xlib/introduction/errors.html#Status
139 -- if (!XGetWindowAttributes(display, root, &win_attr))
140 -+ uint8_t depth = 0;
141 -+ if (auto reply = connection->GetGeometry({root}).Sync())
142 -+ depth = reply->depth;
143 -+ else
144 - return 0;
145 -
146 - // TODO(tmathmeyer) should we use the depth from libva instead of root window?
147 -- return XCreatePixmap(display, root, size.width(), size.height(),
148 -- win_attr.depth);
149 -+ auto pixmap = connection->GenerateId<x11::Pixmap>();
150 -+ auto req = connection->CreatePixmap(
151 -+ {depth, pixmap, root, base::checked_cast<uint16_t>(size.width()),
152 -+ base::checked_cast<uint16_t>(size.height())});
153 -+ if (req.Sync().error)
154 -+ pixmap = x11::Pixmap::None;
155 -+ return base::strict_cast<::Pixmap>(pixmap);
156 - }
157 -
158 - } // namespace
159 -@@ -71,11 +76,8 @@
160 - DCHECK_EQ(glGetError(), static_cast<GLenum>(GL_NO_ERROR));
161 - }
162 -
163 -- if (x_pixmap_) {
164 -- if (auto* display = gfx::GetXDisplay()) {
165 -- XFreePixmap(display, x_pixmap_);
166 -- }
167 -- }
168 -+ if (x_pixmap_)
169 -+ x11::Connection::Get()->FreePixmap({static_cast<x11::Pixmap>(x_pixmap_)});
170 - }
171 -
172 - Status VaapiPictureNativePixmapAngle::Allocate(gfx::BufferFormat format) {
173 -diff --git a/media/gpu/vaapi/vaapi_picture_tfp.cc b/media/gpu/vaapi/vaapi_picture_tfp.cc
174 -index 9ff0372..1c917a1 100644
175 ---- a/media/gpu/vaapi/vaapi_picture_tfp.cc
176 -+++ b/media/gpu/vaapi/vaapi_picture_tfp.cc
177 -@@ -7,6 +7,7 @@
178 - #include "media/gpu/vaapi/va_surface.h"
179 - #include "media/gpu/vaapi/vaapi_wrapper.h"
180 - #include "ui/base/ui_base_features.h"
181 -+#include "ui/gfx/x/connection.h"
182 - #include "ui/gfx/x/x11_types.h"
183 - #include "ui/gl/gl_bindings.h"
184 - #include "ui/gl/gl_image_glx.h"
185 -@@ -33,7 +34,8 @@
186 - texture_id,
187 - client_texture_id,
188 - texture_target),
189 -- x_display_(gfx::GetXDisplay()),
190 -+ connection_(x11::Connection::Get()),
191 -+ x_display_(connection_->display()),
192 - x_pixmap_(0) {
193 - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
194 - DCHECK(!features::IsUsingOzonePlatform());
195 -@@ -49,7 +51,7 @@
196 - }
197 -
198 - if (x_pixmap_)
199 -- XFreePixmap(x_display_, x_pixmap_);
200 -+ connection_->FreePixmap({static_cast<x11::Pixmap>(x_pixmap_)});
201 - }
202 -
203 - Status VaapiTFPPicture::Initialize() {
204 -@@ -85,15 +87,20 @@
205 - }
206 -
207 - XWindowAttributes win_attr;
208 -- int screen = DefaultScreen(x_display_);
209 -- XGetWindowAttributes(x_display_, XRootWindow(x_display_, screen), &win_attr);
210 -+ auto root = connection_->default_root();
211 -+ XGetWindowAttributes(x_display_, static_cast<::Window>(root), &win_attr);
212 - // TODO(posciak): pass the depth required by libva, not the RootWindow's
213 - // depth
214 -- x_pixmap_ = XCreatePixmap(x_display_, XRootWindow(x_display_, screen),
215 -- size_.width(), size_.height(), win_attr.depth);
216 -- if (!x_pixmap_) {
217 -+ auto pixmap = connection_->GenerateId<x11::Pixmap>();
218 -+ if (connection_
219 -+ ->CreatePixmap(
220 -+ {win_attr.depth, pixmap, root, size_.width(), size_.height()})
221 -+ .Sync()
222 -+ .error) {
223 - DLOG(ERROR) << "Failed creating an X Pixmap for TFP";
224 - return StatusCode::kVaapiNoPixmap;
225 -+ } else {
226 -+ x_pixmap_ = static_cast<::Pixmap>(pixmap);
227 - }
228 -
229 - return Initialize();
230 -diff --git a/media/gpu/vaapi/vaapi_picture_tfp.h b/media/gpu/vaapi/vaapi_picture_tfp.h
231 -index c4eb2c1..a32955e 100644
232 ---- a/media/gpu/vaapi/vaapi_picture_tfp.h
233 -+++ b/media/gpu/vaapi/vaapi_picture_tfp.h
234 -@@ -11,6 +11,7 @@
235 - #include "base/memory/ref_counted.h"
236 - #include "media/gpu/vaapi/vaapi_picture.h"
237 - #include "ui/gfx/geometry/size.h"
238 -+#include "ui/gfx/x/connection.h"
239 - #include "ui/gl/gl_bindings.h"
240 -
241 - namespace gl {
242 -@@ -47,6 +48,7 @@
243 - private:
244 - Status Initialize();
245 -
246 -+ x11::Connection* const connection_;
247 - Display* x_display_;
248 -
249 - Pixmap x_pixmap_;
250 -diff --git a/media/gpu/vaapi/vaapi_wrapper.cc b/media/gpu/vaapi/vaapi_wrapper.cc
251 -index 2ad0b997..a988233 100644
252 ---- a/media/gpu/vaapi/vaapi_wrapper.cc
253 -+++ b/media/gpu/vaapi/vaapi_wrapper.cc
254 -@@ -57,8 +57,13 @@
255 - #include "ui/gl/gl_implementation.h"
256 -
257 - #if defined(USE_X11)
258 --#include <va/va_x11.h>
259 - #include "ui/gfx/x/x11_types.h" // nogncheck
260 -+
261 -+typedef XID Drawable;
262 -+
263 -+extern "C" {
264 -+#include "media/gpu/vaapi/va_x11.sigs"
265 -+}
266 - #endif
267 -
268 - #if defined(USE_OZONE)
269
270 diff --git a/www-client/chromium/files/chromium-87-webcodecs-deps.patch b/www-client/chromium/files/chromium-87-webcodecs-deps.patch
271 new file mode 100644
272 index 00000000000..e9d411305ee
273 --- /dev/null
274 +++ b/www-client/chromium/files/chromium-87-webcodecs-deps.patch
275 @@ -0,0 +1,27 @@
276 +From 47f6a3bcf7e72c467ca6a2cd633a5c3585a218d5 Mon Sep 17 00:00:00 2001
277 +From: Stephan Hartmann <stha09@××××××××××.com>
278 +Date: Fri, 2 Oct 2020 06:44:53 +0000
279 +Subject: [PATCH] add dependency on openh264:encoder
280 +
281 +webcodecs uses openh264 encoder, but dependency is missing. With
282 +unbundled openh264 library build fails, because include path is
283 +incomplete.
284 +---
285 + third_party/blink/renderer/modules/webcodecs/BUILD.gn | 1 +
286 + 1 file changed, 1 insertion(+)
287 +
288 +diff --git a/third_party/blink/renderer/modules/webcodecs/BUILD.gn b/third_party/blink/renderer/modules/webcodecs/BUILD.gn
289 +index 99d0e47..7c4d188 100644
290 +--- a/third_party/blink/renderer/modules/webcodecs/BUILD.gn
291 ++++ b/third_party/blink/renderer/modules/webcodecs/BUILD.gn
292 +@@ -54,6 +54,7 @@ blink_modules_sources("webcodecs") {
293 + "//media/mojo/clients",
294 + "//media/mojo/mojom",
295 + "//third_party/libyuv:libyuv",
296 ++ "//third_party/openh264:encoder",
297 + ]
298 + public_deps = [
299 + "//third_party/blink/renderer/modules/mediastream:mediastream",
300 +--
301 +2.26.2
302 +