chromium: update to 72.0.3626.109.

* New option: js_optimize. Needs OpenJDK which doesn't work on musl yet
*Use clang by default again, with GCC it fails to build

[ci skip]
This commit is contained in:
Rasmus Thomsen 2019-01-31 14:42:04 +01:00 committed by Duncaen
parent 1c4edc0826
commit e718e8c63e
6 changed files with 32 additions and 173 deletions

View File

@ -21,3 +21,14 @@
if (use_x11) { if (use_x11) {
configs += [ "//build/config/linux:x11" ] configs += [ "//build/config/linux:x11" ]
deps += [ "//ui/gfx/x" ] deps += [ "//ui/gfx/x" ]
--- media/gpu/vaapi/vaapi_wrapper.cc 2019-02-01 20:00:10.825233133 +0100
+++ media/gpu/vaapi/vaapi_wrapper.cc 2019-02-01 20:01:04.955228978 +0100
@@ -1009,7 +1009,7 @@
}
fds[i] = dmabuf_fd;
}
- va_attrib_extbuf.buffers = fds.data();
+ va_attrib_extbuf.buffers = (unsigned int *) fds.data();
va_attrib_extbuf.num_buffers = fds.size();
va_attrib_extbuf.flags = 0;

View File

@ -1,57 +0,0 @@
From 65be571f6ac2f7942b4df9e50b24da517f829eec Mon Sep 17 00:00:00 2001
From: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Date: Mon, 15 Oct 2018 20:26:10 +0000
Subject: [PATCH] google_util: Explicitly use std::initializer_list with
base::NoDestructor
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Follow-up to ac53c5c53 ("Remove CR_DEFINE_STATIC_LOCAL from /components").
Due to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84849, having
base::NoDestructor<T<U>> and passing an initializer list of Us does not
work if this is not done explicitly, as GCC incorrectly fails to determine
which constructor overload to use:
../../components/google/core/common/google_util.cc: In function bool google_util::{anonymous}::IsCanonicalHostGoogleHostname(base::StringPiece, google_util::SubdomainPermission):
../../components/google/core/common/google_util.cc:120:24: error: call of overloaded NoDestructor(<brace-enclosed initializer list>) is ambiguous
{GOOGLE_TLD_LIST});
See also: https://chromium-review.googlesource.com/c/chromium/src/+/1170905
Bug: 819294
Change-Id: Ie1490b6646d7998d636c485769caabf56c1cf44c
Reviewed-on: https://chromium-review.googlesource.com/c/1275854
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Raphael Kubo da Costa (CET) <raphael.kubo.da.costa@intel.com>
Cr-Commit-Position: refs/heads/master@{#599733}
---
components/google/core/common/google_util.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/components/google/core/common/google_util.cc b/components/google/core/common/google_util.cc
index a44c84393820..7733848a0443 100644
--- components/google/core/common/google_util.cc
+++ components/google/core/common/google_util.cc
@@ -117,7 +117,7 @@ bool IsCanonicalHostGoogleHostname(base::StringPiece canonical_host,
StripTrailingDot(&tld);
static base::NoDestructor<std::set<std::string>> google_tlds(
- {GOOGLE_TLD_LIST});
+ std::initializer_list<std::string>({GOOGLE_TLD_LIST}));
return base::ContainsKey(*google_tlds, tld.as_string());
}
@@ -132,7 +132,8 @@ bool IsGoogleSearchSubdomainUrl(const GURL& url) {
StripTrailingDot(&host);
static base::NoDestructor<std::set<std::string>> google_subdomains(
- {"ipv4.google.com", "ipv6.google.com"});
+ std::initializer_list<std::string>(
+ {"ipv4.google.com", "ipv6.google.com"}));
return base::ContainsKey(*google_subdomains, host.as_string());
}
--
2.19.1

View File

@ -514,7 +514,7 @@ diff -ur media/base/media_switches.h chromium-69.0.3497.92/media/base/media_swit
diff -ur media/gpu/BUILD.gn chromium-69.0.3497.92/media/gpu/BUILD.gn diff -ur media/gpu/BUILD.gn chromium-69.0.3497.92/media/gpu/BUILD.gn
--- media/gpu/BUILD.gn 2018-09-12 00:39:48.000000000 +0530 --- media/gpu/BUILD.gn 2018-09-12 00:39:48.000000000 +0530
+++ media/gpu/BUILD.gn 2018-09-13 22:10:34.210007863 +0530 +++ media/gpu/BUILD.gn 2018-09-13 22:10:34.210007863 +0530
@@ -495,6 +495,14 @@ @@ -508,6 +508,14 @@
} }
} }
@ -526,7 +526,7 @@ diff -ur media/gpu/BUILD.gn chromium-69.0.3497.92/media/gpu/BUILD.gn
+ } + }
+} +}
+ +
if (use_vaapi) { if (use_v4l2_codec || use_vaapi) {
test("jpeg_encode_accelerator_unittest") { test("jpeg_encode_accelerator_unittest") {
deps = [ deps = [
@@ -559,6 +567,10 @@ @@ -559,6 +567,10 @@

View File

@ -1,80 +0,0 @@
From 7ae38170a117e909bb28e1470842b68de3501197 Mon Sep 17 00:00:00 2001
From: Mike Gilbert <floppymaster@gmail.com>
Date: Sun, 21 Oct 2018 10:06:53 -0400
Subject: [PATCH] blink: add 'const' modifier for harfbuzz hb_codepoint_t
pointers
This resolves a build failure against harfbuzz 2.0.
Based on a patch by Alexandre Fierreira.
Bug: https://bugs.gentoo.org/669034
---
.../renderer/platform/fonts/shaping/harfbuzz_face.cc | 2 +-
.../renderer/platform/fonts/skia/skia_text_metrics.cc | 9 +++++++--
.../renderer/platform/fonts/skia/skia_text_metrics.h | 2 +-
3 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/third_party/blink/renderer/platform/fonts/shaping/harfbuzz_face.cc b/third_party/blink/renderer/platform/fonts/shaping/harfbuzz_face.cc
index 8e7d91ca371f..e279a5876cb3 100644
--- third_party/blink/renderer/platform/fonts/shaping/harfbuzz_face.cc
+++ third_party/blink/renderer/platform/fonts/shaping/harfbuzz_face.cc
@@ -139,7 +139,7 @@ static hb_position_t HarfBuzzGetGlyphHorizontalAdvance(hb_font_t* hb_font,
static void HarfBuzzGetGlyphHorizontalAdvances(hb_font_t* font,
void* font_data,
unsigned count,
- hb_codepoint_t* first_glyph,
+ const hb_codepoint_t* first_glyph,
unsigned int glyph_stride,
hb_position_t* first_advance,
unsigned int advance_stride,
diff --git a/third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.cc b/third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.cc
index 77ec6209fab9..9f9070921448 100644
--- third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.cc
+++ third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.cc
@@ -18,6 +18,11 @@ T* advance_by_byte_size(T* p, unsigned byte_size) {
return reinterpret_cast<T*>(reinterpret_cast<uint8_t*>(p) + byte_size);
}
+template <class T>
+T* advance_by_byte_size_const(T* p, unsigned byte_size) {
+ return reinterpret_cast<T*>(reinterpret_cast<const uint8_t*>(p) + byte_size);
+}
+
} // namespace
SkiaTextMetrics::SkiaTextMetrics(const SkPaint* paint) : paint_(paint) {
@@ -39,7 +44,7 @@ void SkiaTextMetrics::GetGlyphWidthForHarfBuzz(hb_codepoint_t codepoint,
}
void SkiaTextMetrics::GetGlyphWidthForHarfBuzz(unsigned count,
- hb_codepoint_t* glyphs,
+ const hb_codepoint_t* glyphs,
unsigned glyph_stride,
hb_position_t* advances,
unsigned advance_stride) {
@@ -48,7 +53,7 @@ void SkiaTextMetrics::GetGlyphWidthForHarfBuzz(unsigned count,
// array that copy them to a regular array.
Vector<Glyph, 256> glyph_array(count);
for (unsigned i = 0; i < count;
- i++, glyphs = advance_by_byte_size(glyphs, glyph_stride)) {
+ i++, glyphs = advance_by_byte_size_const(glyphs, glyph_stride)) {
glyph_array[i] = *glyphs;
}
Vector<SkScalar, 256> sk_width_array(count);
diff --git a/third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.h b/third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.h
index 787d8af0375a..3bc4407c641b 100644
--- third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.h
+++ third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.h
@@ -19,7 +19,7 @@ class SkiaTextMetrics final {
void GetGlyphWidthForHarfBuzz(hb_codepoint_t, hb_position_t* width);
void GetGlyphWidthForHarfBuzz(unsigned count,
- hb_codepoint_t* first_glyph,
+ const hb_codepoint_t* first_glyph,
unsigned glyph_stride,
hb_position_t* first_advance,
unsigned advance_stride);
--
2.19.1

View File

@ -1,25 +0,0 @@
See: https://chromium.googlesource.com/chromium/src/tools/gn/+/6630c2e334d7bc179e95a3d543a8eca3201d6725%5E%21/#F0
diff --git a/bootstrap/bootstrap.py b/bootstrap/bootstrap.py
index 261fddd..1945852 100755
--- tools/gn/bootstrap/bootstrap.py
+++ tools/gn/bootstrap/bootstrap.py
@@ -46,10 +46,6 @@
'--build-path',
help='The directory in which to build gn, '
'relative to the src directory. (eg. out/Release)')
- parser.add_option(
- '--with-sysroot',
- action='store_true',
- help='Download and build with the Debian sysroot.')
parser.add_option('-v', '--verbose', help='ignored')
parser.add_option(
'--skip-generate-buildfiles',
@@ -76,8 +72,6 @@
'--no-last-commit-position',
'--out-path=' + gn_build_dir,
]
- if not options.with_sysroot:
- cmd.append('--no-sysroot')
if options.debug:
cmd.append('--debug')
subprocess.check_call(cmd)

View File

@ -1,26 +1,27 @@
# Template file for 'chromium' # Template file for 'chromium'
pkgname=chromium pkgname=chromium
# See http://www.chromium.org/developers/calendar for the latest version # See http://www.chromium.org/developers/calendar for the latest version
version=71.0.3578.98 version=72.0.3626.109
revision=2 revision=1
short_desc="Google's attempt at creating a safer, faster, and more stable browser" short_desc="Google's attempt at creating a safer, faster, and more stable browser"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>" maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="BSD-3-Clause" license="BSD-3-Clause"
homepage="https://www.chromium.org/" homepage="https://www.chromium.org/"
distfiles="https://commondatastorage.googleapis.com/chromium-browser-official/${pkgname}-${version}.tar.xz" distfiles="https://commondatastorage.googleapis.com/chromium-browser-official/${pkgname}-${version}.tar.xz"
checksum=1c56a9e30825774c83d568d194e9585625c6e90f81ee0ef09760fcedc86b9d45 checksum=574a5400dcd9452bf41481518aa5097c396df6e1eb97c67303638ba967048c2d
only_for_archs="i686 x86_64 x86_64-musl" archs="i686 x86_64 x86_64-musl"
lib32disabled=yes lib32disabled=yes
nodebug=yes nodebug=yes
nopie=yes # contains tools that are not PIE, enables PIE itself nopie=yes # contains tools that are not PIE, enables PIE itself
build_options="clang jumbo_build" build_options="clang jumbo_build js_optimize"
desc_option_clang="Use clang to build" desc_option_clang="Use clang to build"
desc_option_jumbo_build="Do a jumbo build, needs way more RAM but builds way faster" desc_option_jumbo_build="Do a jumbo build, needs way more RAM but builds way faster"
desc_option_js_optimize="Optimize the JS used for Chromium's UI"
hostmakedepends="$(vopt_if clang clang) yasm python pkg-config perl gperf bison ninja nodejs hwids hostmakedepends="$(vopt_if clang clang) yasm python pkg-config perl gperf bison ninja nodejs hwids
libatomic-devel libevent-devel libglib-devel" libatomic-devel libevent-devel libglib-devel $(vopt_if js_optimize openjdk)"
makedepends="libpng-devel gtk+-devel gtk+3-devel nss-devel pciutils-devel makedepends="libpng-devel gtk+-devel gtk+3-devel nss-devel pciutils-devel
libXi-devel libgcrypt-devel libgnome-keyring-devel cups-devel elfutils-devel libXi-devel libgcrypt-devel libgnome-keyring-devel cups-devel elfutils-devel
libXcomposite-devel speech-dispatcher-devel libXrandr-devel mit-krb5-devel libXcomposite-devel speech-dispatcher-devel libXrandr-devel mit-krb5-devel
@ -33,7 +34,11 @@ makedepends="libpng-devel gtk+-devel gtk+3-devel nss-devel pciutils-devel
ffmpeg-devel libva-devel" ffmpeg-devel libva-devel"
depends="libexif hwids desktop-file-utils hicolor-icon-theme" depends="libexif hwids desktop-file-utils hicolor-icon-theme"
build_options_default="jumbo_build" build_options_default="jumbo_build clang"
case "${XBPS_TARGET_MACHINE}" in
x86_64|i686) build_options_default+=" js_optimize" ;;
esac
post_extract() { post_extract() {
case "${XBPS_TARGET_MACHINE}" in case "${XBPS_TARGET_MACHINE}" in
@ -44,10 +49,11 @@ post_extract() {
done done
;; ;;
i686) i686)
for f in "${FILESDIR}"/i686-patches/*.patch; do for f in "${FILESDIR}"/i686-patches/*.patch; do
echo "Applying $f" echo "Applying $f"
patch -Np0 -i "$f" patch -Np0 -i "$f"
done done
;;
esac esac
# Use the file at run time instead of effectively compiling it in # Use the file at run time instead of effectively compiling it in
@ -160,7 +166,11 @@ do_configure() {
# Enable VAAPI - hardware accelerated video decoding. # Enable VAAPI - hardware accelerated video decoding.
conf+=( conf+=(
'use_vaapi=true' "use_vaapi=true"
)
conf+=(
"closure_compile=$(vopt_if js_optimize true false)"
) )
# Use explicit library dependencies instead of dlopen. # Use explicit library dependencies instead of dlopen.