Skip to content

Commit

Permalink
chromium-*-beta=75.0.3770.66
Browse files Browse the repository at this point in the history
First m75 beta release. Moved patches in dev m75 based to beta.
Also added fix to reenable CRC32 on ARM for GCC, and upstream buildfix.
Non relevant license changes: libpng, ffmpeg, icu, v8
  • Loading branch information
Jose Dapena Paz committed Jun 4, 2019
1 parent 9fbc6c0 commit a6cd824
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 12 deletions.
23 changes: 11 additions & 12 deletions recipes-browser/chromium/chromium-beta.inc
@@ -1,9 +1,9 @@
require chromium-upstream-tarball.inc

PV = "74.0.3729.108"
PV = "75.0.3770.66"

SRC_URI[md5sum] = "44fc43489d59a98497e9324ccfdf172b"
SRC_URI[sha256sum] = "9793b810ad7349d4d065f4c30d6f427b6baa6caca87d047fe5eeb2deede90123"
SRC_URI[md5sum] = "1d3098232b2441b71a561bedc0e7d07e"
SRC_URI[sha256sum] = "c59fb6dd51ce5dd96a3931545c0ba6f6f80db207f47ef00d511fa4970954ed0c"

LIC_FILES_CHKSUM += "\
file://${S}/buildtools/third_party/libc++/trunk/LICENSE.TXT;md5=55d89dd7eec8d3b4204b680e27da3953 \
Expand All @@ -16,28 +16,27 @@ LIC_FILES_CHKSUM += "\
file://${S}/third_party/chromevox/LICENSE;md5=45739090b454125d851ac7bb1bbd23a2 \
file://${S}/third_party/d3/src/LICENSE;md5=0679931d76eb2f1dd1915249da84a722 \
file://${S}/third_party/expat/files/COPYING;md5=5b8620d98e49772d95fc1d291c26aa79 \
file://${S}/third_party/ffmpeg/CREDITS.chromium;md5=a8aee8de6dd702fa798fa8c7b6812a58 \
file://${S}/third_party/fips181/COPYING;md5=da26b18c1a03a3cae0abccae554029c6 \
file://${S}/third_party/ffmpeg/CREDITS.chromium;md5=005e77d67b51bc0b90c80d469d5e7a0e \
file://${S}/third_party/freetype/src/docs/FTL.TXT;md5=9f37b4e6afa3fef9dba8932b16bd3f97 \
file://${S}/third_party/google_toolbox_for_mac/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
file://${S}/third_party/harfbuzz-ng/src/COPYING;md5=e021dd6dda6ff1e6b1044002fc662b9b \
file://${S}/third_party/icu/LICENSE;md5=63752c57bd0b365c9af9f427ef79c819 \
file://${S}/third_party/libpng/LICENSE;md5=c2adba923425f511c6087a7ca53270e6 \
file://${S}/third_party/icu/LICENSE;md5=8bc5d32052a96f214cbdd1e53dfc935d \
file://${S}/third_party/libpng/LICENSE;md5=b0085051bf265bac2bfc38bc89f50000 \
file://${S}/third_party/libsrtp/LICENSE;md5=2909fcf6f09ffff8430463d91c08c4e1\
file://${S}/third_party/ots/LICENSE;md5=e06eff2aa65b917034a81599bea73dc4 \
file://${S}/third_party/protobuf/LICENSE;md5=37b5762e07f0af8c74ce80a8bda4266b \
file://${S}/third_party/shaderc/src/LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \
file://${S}/third_party/yasm/source/patched-yasm/COPYING;md5=a12d8903508fb6bfd49d8d82c6170dd9 \
file://${S}/v8/LICENSE;md5=bda6d3b7be87052ff181da3ed9fd5501 \
file://${S}/v8/LICENSE;md5=6611673a9587a522034a4be8f4df564c \
"

SRC_URI += " \
file://0001-Wrap-mksnapshot-and-torque-calls-on-Yocto-building-w.patch;patchdir=v8 \
file://0001-Use-v8-qemu-wrapper.sh-on-v8-context-snapshot-creati.patch \
file://0001-zlib-GCC-Disable-CRC32-optimizations-on-ARM.patch \
file://0001-Add-missing-limits-header-to-crashpad.patch;patchdir=third_party/crashpad/crashpad \
file://0001-NEON-do-not-use-certain-calls-that-would-break-GCC-b.patch;patchdir=third_party/skia \
file://0001-Revert-base-Reduce-base-Value-size.patch \
file://0001-GCC-do-not-delete-move-constructor-of-QuicStreamSend.patch;patchdir=net/third_party \
file://0001-crc32c-reenable-crc-and-crypto-extensions-to-arm64-c.patch \
file://0001-GCC-do-not-use-COMPILER_GCC.patch;patchdir=third_party/angle \
file://0001-omnibox-AutocompleteMatch-constructor-cannot-be-noex.patch \
file://0001-libstdc-do-not-assume-unique_ptr-has-ostream-operato.patch \
file://0001-zlib-fix-ARMv8-CRC32-compilation-in-GCC.patch \
"
@@ -0,0 +1,36 @@
From aeed4d1f15ce84a17ea0bc219e258dc4982b2368 Mon Sep 17 00:00:00 2001
From: Jose Dapena Paz <jose.dapena@lge.com>
Date: Fri, 26 Apr 2019 20:07:05 +0000
Subject: libstdc++: do not assume unique_ptr has ostream operator
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

CompositorFrameReportingController is using DCHECK_NE to compare
several unique_ptr. This is valid in libc++, but on libstdc++ unique_ptr
does not have an ostream operator.

Change-Id: I9f23ef17f02b9e107694ba493f6f8f3caf5cac4d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1584292
Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org>
Commit-Queue: José Dapena Paz <jose.dapena@lge.com>
Cr-Commit-Position: refs/heads/master@{#654570}

diff --git a/cc/scheduler/compositor_frame_reporting_controller.cc b/cc/scheduler/compositor_frame_reporting_controller.cc
index f1587ed158d4..1b17021fd229 100644
--- a/cc/scheduler/compositor_frame_reporting_controller.cc
+++ b/cc/scheduler/compositor_frame_reporting_controller.cc
@@ -31,8 +31,8 @@ void CompositorFrameReportingController::WillBeginImplFrame() {

void CompositorFrameReportingController::WillBeginMainFrame() {
DCHECK(reporters_[PipelineStage::kBeginImplFrame]);
- DCHECK_NE(reporters_[PipelineStage::kBeginMainFrame],
- reporters_[PipelineStage::kBeginImplFrame]);
+ DCHECK(reporters_[PipelineStage::kBeginMainFrame] !=
+ reporters_[PipelineStage::kBeginImplFrame]);
reporters_[PipelineStage::kBeginImplFrame]->StartStage(
"SendBeginMainFrameToCommit");
AdvanceReporterStage(PipelineStage::kBeginImplFrame,
--
2.20.1

@@ -0,0 +1,73 @@
From 674607311bdf0b79b3435767de7068bc142dbc8e Mon Sep 17 00:00:00 2001
From: Jose Dapena Paz <jose.dapena@lge.com>
Date: Tue, 4 Jun 2019 11:42:14 +0200
Subject: zlib: fix ARMv8 CRC32 compilation in GCC

GCC compilation in ARM architectures with CRC32 extension was
broken, as the extension was guarded for clang.

For GCC we need to at least enforce armv8-a+crc architecture
so the extensions are available. We can also just include
arm_acle.h to get the required builtins.

Adapted from Vladislav Mukulov <vladislav.mukulov@lge.com>
original patch.

Bug: 819294
Change-Id: Ifa5cf64318f88220052c44126db90bef999b7113

diff --git a/third_party/zlib/BUILD.gn b/third_party/zlib/BUILD.gn
index 1a9cd3b827b3..aa5b1e748f73 100644
--- a/third_party/zlib/BUILD.gn
+++ b/third_party/zlib/BUILD.gn
@@ -89,7 +89,7 @@ if (use_arm_neon_optimizations) {
source_set("zlib_arm_crc32") {
visibility = [ ":*" ]

- if (is_clang && !is_ios) {
+ if (!is_ios) {
include_dirs = [ "." ]

if (is_android) {
@@ -101,6 +101,8 @@ if (use_arm_neon_optimizations) {
} else {
assert(false, "CPU detection requires the Android NDK")
}
+ } else if (!is_win && !is_clang) {
+ cflags_c = [ "-march=armv8-a+crc" ]
}

sources = [
diff --git a/third_party/zlib/crc32_simd.c b/third_party/zlib/crc32_simd.c
index 03698adf7523..2a793f39f8e3 100644
--- a/third_party/zlib/crc32_simd.c
+++ b/third_party/zlib/crc32_simd.c
@@ -161,6 +161,7 @@ uint32_t ZLIB_INTERNAL crc32_sse42_simd_( /* SSE4.2+PCLMUL */
* TODO: implement a version using the PMULL instruction.
*/

+#if defined(__clang__)
/* CRC32 intrinsics are #ifdef'ed out of arm_acle.h unless we build with an
* armv8 target, which is incompatible with ThinLTO optimizations on Android.
* (Namely, mixing and matching different module-level targets makes ThinLTO
@@ -187,6 +188,11 @@ uint32_t ZLIB_INTERNAL crc32_sse42_simd_( /* SSE4.2+PCLMUL */
#define TARGET_ARMV8_WITH_CRC __attribute__((target("armv8-a,crc")))
#endif

+#else
+#include <arm_acle.h>
+#define TARGET_ARMV8_WITH_CRC
+#endif
+
TARGET_ARMV8_WITH_CRC
uint32_t ZLIB_INTERNAL armv8_crc32_little(unsigned long crc,
const unsigned char *buf,
@@ -248,5 +254,4 @@ Pos ZLIB_INTERNAL insert_string_arm(deflate_state *const s, const Pos str)
return ret;
}

-
#endif
--
2.20.1

0 comments on commit a6cd824

Please sign in to comment.