Compare commits
No commits in common. 'epel9' and 'i9e-common-gost' have entirely different histories.
epel9
...
i9e-common
@ -0,0 +1,8 @@
|
|||||||
|
80d6f9be1cc55655da56c20c67de2c83786f0280 SOURCES/chromium-119.0.6045.159.tar.xz
|
||||||
|
dea187019741602d57aaf189a80abba261fbd2aa SOURCES/linux-x64-0.19.2.tgz
|
||||||
|
7e5d2c7864c5c83ec789b59c77cd9c20d2594916 SOURCES/linux-arm64-0.19.2.tgz
|
||||||
|
769196d081c6a0ad37f1c63dec56febfff3370de SOURCES/node-v20.6.1-linux-x64.tar.xz
|
||||||
|
3e94bb4f999c636293bc745b02d98e7925da5616 SOURCES/node-v20.6.1-linux-arm64.tar.xz
|
||||||
|
0c4c4f30f072ddca7762f6fb9a1a0b414cf471da SOURCES/chromium-gost-2c81b2fed144086340d5220ef707350b7fb18ec9.tar.gz
|
||||||
|
36abebc8fd96cdcb5bf8ecd598055586ec434380 SOURCES/msspi-3c50c2d33a4bdf4effb01aaeb9ff5d5b67635a18.tar.gz
|
||||||
|
8e9bc55cce3899627b2810ecfe87116c5a9147b5 SOURCES/chromium-browser-gost-icons.tar.xz
|
@ -1,40 +1,8 @@
|
|||||||
/chromium-52.0.2743.75-clean.tar.xz
|
SOURCES/chromium-119.0.6045.123.tar.xz
|
||||||
/depot_tools.git-master.tar.gz
|
SOURCES/linux-x64-0.19.2.tgz
|
||||||
/policy_templates.zip
|
SOURCES/linux-arm64-0.19.2.tgz
|
||||||
/chromium-*.tar.xz
|
SOURCES/node-v20.6.1-linux-x64.tar.xz
|
||||||
/gelasio.zip
|
SOURCES/node-v20.6.1-linux-arm64.tar.xz
|
||||||
/MuktiNarrow-0.94.tar.bz2
|
SOURCES/chromium-gost-2c81b2fed144086340d5220ef707350b7fb18ec9.tar.gz
|
||||||
/NotoSansCJKjp-hinted.zip
|
SOURCES/msspi-3c50c2d33a4bdf4effb01aaeb9ff5d5b67635a18.tar.gz
|
||||||
/lohit-gurmukhi-ttf-2.91.2.tar.gz
|
SOURCES/chromium-browser-gost-icons.tar.xz
|
||||||
/Arimo-BoldItalic.ttf
|
|
||||||
/Arimo-Bold.ttf
|
|
||||||
/Arimo-Italic.ttf
|
|
||||||
/Arimo-Regular.ttf
|
|
||||||
/Cousine-BoldItalic.ttf
|
|
||||||
/Cousine-Bold.ttf
|
|
||||||
/Cousine-Italic.ttf
|
|
||||||
/Cousine-Regular.ttf
|
|
||||||
/Tinos-BoldItalic.ttf
|
|
||||||
/Tinos-Bold.ttf
|
|
||||||
/Tinos-Italic.ttf
|
|
||||||
/Tinos-Regular.ttf
|
|
||||||
/Ahem.ttf
|
|
||||||
/node-v8.9.1-linux-x64.tar.gz
|
|
||||||
/node-v10.15.3-linux-x64.tar.gz
|
|
||||||
/xcb-proto-1.14.tar.xz
|
|
||||||
/NotoSansSymbols2-Regular.ttf
|
|
||||||
/NotoSansTibetan-Regular.ttf
|
|
||||||
/node-v12.22.6-linux-arm64.tar.xz
|
|
||||||
/node-v12.22.6-linux-x64.tar.xz
|
|
||||||
/node-v16.17.0-linux-x64.tar.xz
|
|
||||||
/node-v16.17.0-linux-arm64.tar.xz
|
|
||||||
/testupload
|
|
||||||
/node-v19.8.1-linux-arm64.tar.xz
|
|
||||||
/node-v19.8.1-linux-x64.tar.xz
|
|
||||||
/node-v20.6.1-linux-arm64.tar.xz
|
|
||||||
/node-v20.6.1-linux-x64.tar.xz
|
|
||||||
/linux-arm64-0.19.2.tgz
|
|
||||||
/linux-x64-0.19.2.tgz
|
|
||||||
/v0.69.4.tar.gz
|
|
||||||
/bindgen-cli-aarch64.tar.xz
|
|
||||||
/bindgen-cli-x86_64.tar.xz
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,57 +0,0 @@
|
|||||||
From 40309fb53e39477490fd6928ebe67c4fb78de380 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawnanastasio@gmail.com>
|
|
||||||
Date: Sun, 10 Mar 2019 21:01:37 -0500
|
|
||||||
Subject: [PATCH] Add ppc64 target to libaom
|
|
||||||
|
|
||||||
---
|
|
||||||
third_party/libaom/BUILD.gn | 12 ++++++++++++
|
|
||||||
third_party/libaom/cmake_update.sh | 3 +++
|
|
||||||
2 files changed, 15 insertions(+)
|
|
||||||
|
|
||||||
Index: chromium-128.0.6613.113/third_party/libaom/BUILD.gn
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/third_party/libaom/BUILD.gn
|
|
||||||
+++ chromium-128.0.6613.113/third_party/libaom/BUILD.gn
|
|
||||||
@@ -275,6 +275,18 @@ if (current_cpu == "arm64") {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
+if (current_cpu == "ppc64") {
|
|
||||||
+ source_set("libaom_intrinsics_vsx") {
|
|
||||||
+ configs -= [ "//build/config/compiler:chromium_code" ]
|
|
||||||
+ configs += [ "//build/config/compiler:no_chromium_code" ]
|
|
||||||
+ configs += [ ":libaom_config" ]
|
|
||||||
+ sources = [
|
|
||||||
+ "//third_party/libaom/source/libaom/aom_ports/ppc_cpudetect.c",
|
|
||||||
+ ]
|
|
||||||
+ sources += aom_av1_common_intrin_vsx
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
static_library("libaom") {
|
|
||||||
check_includes = false
|
|
||||||
if (!is_debug && is_win) {
|
|
||||||
@@ -338,6 +350,9 @@ static_library("libaom") {
|
|
||||||
# This is needed by all arm boards due to aom_arm_cpu_caps()
|
|
||||||
sources += [ "source/libaom/aom_ports/aarch32_cpudetect.c" ]
|
|
||||||
}
|
|
||||||
+ if (current_cpu == "ppc64") {
|
|
||||||
+ deps += [ ":libaom_intrinsics_vsx" ]
|
|
||||||
+ }
|
|
||||||
if (is_android) {
|
|
||||||
deps += [ "//third_party/cpu_features:ndk_compat" ]
|
|
||||||
}
|
|
||||||
Index: chromium-128.0.6613.113/third_party/libaom/cmake_update.sh
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/third_party/libaom/cmake_update.sh
|
|
||||||
+++ chromium-128.0.6613.113/third_party/libaom/cmake_update.sh
|
|
||||||
@@ -190,6 +190,9 @@ reset_dirs linux/arm64-cpu-detect
|
|
||||||
gen_config_files linux/arm64-cpu-detect \
|
|
||||||
"${toolchain}/arm64-linux-gcc.cmake ${all_platforms}"
|
|
||||||
|
|
||||||
+reset_dirs linux/ppc64
|
|
||||||
+gen_config_files linux/ppc64 "${toolchain}/ppc-linux-gcc.cmake ${all_platforms}"
|
|
||||||
+
|
|
||||||
# Copy linux configurations and modify for Windows.
|
|
||||||
reset_dirs win/arm64-cpu-detect
|
|
||||||
cp "${CFG}/linux/arm64-cpu-detect/config"/* \
|
|
File diff suppressed because it is too large
Load Diff
@ -1,30 +0,0 @@
|
|||||||
From ea104a841fca1ff4d5430915f1b7c52c6a642f13 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Timothy Pearson <tpearson@raptorengineering.com>
|
|
||||||
Date: Fri, 21 Sep 2018 21:44:17 -0500
|
|
||||||
Subject: [PATCH] Force baseline POWER8 / AltiVec / VSX CPU features when on a
|
|
||||||
PPC64 platform in LE mode
|
|
||||||
|
|
||||||
---
|
|
||||||
BUILD.gn | 6 ++++++
|
|
||||||
1 file changed, 6 insertions(+)
|
|
||||||
|
|
||||||
Index: chromium-130.0.6723.44/v8/BUILD.gn
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/v8/BUILD.gn
|
|
||||||
+++ chromium-130.0.6723.44/v8/BUILD.gn
|
|
||||||
@@ -1431,7 +1431,14 @@ config("toolchain") {
|
|
||||||
if (v8_current_cpu == "ppc64") {
|
|
||||||
defines += [ "V8_TARGET_ARCH_PPC64" ]
|
|
||||||
cflags += [ "-ffp-contract=off" ]
|
|
||||||
- if (current_os == "aix") {
|
|
||||||
+ if (current_os == "linux") {
|
|
||||||
+ cflags += [
|
|
||||||
+ # Enable usage of AltiVec, VSX, and other POWER8 and higher features
|
|
||||||
+ "-mcpu=power8",
|
|
||||||
+ "-maltivec",
|
|
||||||
+ "-mvsx",
|
|
||||||
+ ]
|
|
||||||
+ } else if (current_os == "aix") {
|
|
||||||
cflags += [
|
|
||||||
# Work around AIX ceil, trunc and round oddities.
|
|
||||||
"-mcpu=power5+",
|
|
File diff suppressed because it is too large
Load Diff
@ -1,773 +0,0 @@
|
|||||||
From cda9400739dfa064907d822f00578bb51b24a404 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawnanastasio@yahoo.com>
|
|
||||||
Date: Fri, 17 Aug 2018 14:18:33 -0500
|
|
||||||
Subject: [PATCH] Implement support for ppc64 on Linux
|
|
||||||
|
|
||||||
This patch implements support for the ppc64 architecture on Linux systems.
|
|
||||||
|
|
||||||
Notable changes include:
|
|
||||||
* Modification of tests to support non-4K page sizes
|
|
||||||
* minidump_writer: Determine size of stack to capture based on page size
|
|
||||||
* dump_writer_common: Introduce member function GetVectorRegisters to
|
|
||||||
ThreadInfo on ppc64 systems. This allows Altivec/VMX registers to be
|
|
||||||
dumped like they are on OS X. linux_ptrace_dumper has been updated
|
|
||||||
to utilize this function along with the ptrace mode NT_PPC_VMX.
|
|
||||||
* processor/exploitability_unittest.cc: Tests were disabled on
|
|
||||||
non-x86 systems. They assume the system objdump is capable of
|
|
||||||
disassembling x86 binaries which is not the case on other
|
|
||||||
architectures.
|
|
||||||
|
|
||||||
To-do:
|
|
||||||
* tools/linux/md2core has been updated as well, but functionality
|
|
||||||
has not been confirmed and restoration of Altivec/VMX registers
|
|
||||||
has not been implemented
|
|
||||||
|
|
||||||
Note that proper functionality depends on updates to third_party/LSS
|
|
||||||
that introduce PPC64 support. An in-progress patch that allows
|
|
||||||
breakpad to build and run successfully is available at:
|
|
||||||
https://wiki.raptorcs.com/wiki/Porting/Chromium
|
|
||||||
---
|
|
||||||
.../dump_writer_common/raw_context_cpu.h | 2 +
|
|
||||||
.../linux/dump_writer_common/thread_info.cc | 56 ++++++++++++++++++-
|
|
||||||
.../linux/dump_writer_common/thread_info.h | 9 +++
|
|
||||||
.../dump_writer_common/ucontext_reader.cc | 42 ++++++++++++++
|
|
||||||
.../dump_writer_common/ucontext_reader.h | 3 +
|
|
||||||
src/client/linux/handler/exception_handler.cc | 22 +++++++-
|
|
||||||
src/client/linux/handler/exception_handler.h | 6 +-
|
|
||||||
.../handler/exception_handler_unittest.cc | 8 ++-
|
|
||||||
.../microdump_writer/microdump_writer.cc | 14 ++++-
|
|
||||||
.../microdump_writer_unittest.cc | 15 ++++-
|
|
||||||
.../minidump_writer/linux_core_dumper.cc | 8 ++-
|
|
||||||
.../linux/minidump_writer/linux_dumper.cc | 4 +-
|
|
||||||
.../linux/minidump_writer/linux_dumper.h | 3 +-
|
|
||||||
.../linux_dumper_unittest_helper.cc | 2 +
|
|
||||||
.../minidump_writer/linux_ptrace_dumper.cc | 19 +++++--
|
|
||||||
.../linux_ptrace_dumper_unittest.cc | 5 ++
|
|
||||||
.../linux/minidump_writer/minidump_writer.cc | 18 ++++--
|
|
||||||
.../linux/minidump_writer/minidump_writer.h | 2 +
|
|
||||||
.../minidump_writer_unittest.cc | 3 +
|
|
||||||
src/common/linux/memory_mapped_file.cc | 3 +-
|
|
||||||
.../linux/memory_mapped_file_unittest.cc | 7 ++-
|
|
||||||
src/common/memory_allocator_unittest.cc | 3 +-
|
|
||||||
src/processor/exploitability_linux.cc | 2 +
|
|
||||||
src/processor/exploitability_unittest.cc | 15 +++--
|
|
||||||
src/tools/linux/md2core/minidump-2-core.cc | 45 +++++++++++++++
|
|
||||||
25 files changed, 281 insertions(+), 35 deletions(-)
|
|
||||||
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h
|
|
||||||
@@ -51,6 +51,8 @@ typedef MDRawContextRISCV64 RawContextCP
|
|
||||||
# else
|
|
||||||
# error "Unexpected __riscv_xlen"
|
|
||||||
# endif
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+typedef MDRawContextPPC64 RawContextCPU;
|
|
||||||
#else
|
|
||||||
#error "This code has not been ported to your platform yet."
|
|
||||||
#endif
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc
|
|
||||||
@@ -336,7 +336,42 @@ void ThreadInfo::FillCPUContext(RawConte
|
|
||||||
#error "Unexpected __riscv_xlen"
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
-#endif // __riscv
|
|
||||||
+
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+
|
|
||||||
+uintptr_t ThreadInfo::GetInstructionPointer() const {
|
|
||||||
+ return mcontext.gp_regs[PT_NIP];
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+void ThreadInfo::FillCPUContext(RawContextCPU* out) const {
|
|
||||||
+ out->context_flags = MD_CONTEXT_PPC64_FULL;
|
|
||||||
+ for (int i = 0; i < MD_CONTEXT_PPC64_GPR_COUNT; i++)
|
|
||||||
+ out->gpr[i] = mcontext.gp_regs[i];
|
|
||||||
+
|
|
||||||
+ out->lr = mcontext.gp_regs[PT_LNK];
|
|
||||||
+ out->srr0 = mcontext.gp_regs[PT_NIP];
|
|
||||||
+ out->srr1 = mcontext.gp_regs[PT_MSR];
|
|
||||||
+ out->cr = mcontext.gp_regs[PT_CCR];
|
|
||||||
+ out->xer = mcontext.gp_regs[PT_XER];
|
|
||||||
+ out->ctr = mcontext.gp_regs[PT_CTR];
|
|
||||||
+
|
|
||||||
+ for (int i = 0; i < MD_FLOATINGSAVEAREA_PPC_FPR_COUNT; i++)
|
|
||||||
+ out->float_save.fpregs[i] = mcontext.fp_regs[i];
|
|
||||||
+
|
|
||||||
+ out->float_save.fpscr = mcontext.fp_regs[NFPREG-1];
|
|
||||||
+
|
|
||||||
+ for (int i = 0; i < MD_VECTORSAVEAREA_PPC_VR_COUNT; i++)
|
|
||||||
+ out->vector_save.save_vr[i] = \
|
|
||||||
+ {(((uint64_t)vregs.vrregs[i][0]) << 32)
|
|
||||||
+ | vregs.vrregs[i][1],
|
|
||||||
+ (((uint64_t)vregs.vrregs[i][2]) << 32)
|
|
||||||
+ | vregs.vrregs[i][3]};
|
|
||||||
+
|
|
||||||
+ out->vrsave = vregs.vrsave;
|
|
||||||
+ out->vector_save.save_vscr = {0, vregs.vscr.vscr_word};
|
|
||||||
+ out->vector_save.save_vrvalid = 0xFFFFFFFF;
|
|
||||||
+}
|
|
||||||
+#endif // __powerpc64__
|
|
||||||
|
|
||||||
void ThreadInfo::GetGeneralPurposeRegisters(void** gp_regs, size_t* size) {
|
|
||||||
assert(gp_regs || size);
|
|
||||||
@@ -350,6 +385,11 @@ void ThreadInfo::GetGeneralPurposeRegist
|
|
||||||
*gp_regs = mcontext.__gregs;
|
|
||||||
if (size)
|
|
||||||
*size = sizeof(mcontext.__gregs);
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ if (gp_regs)
|
|
||||||
+ *gp_regs = mcontext.gp_regs;
|
|
||||||
+ if (size)
|
|
||||||
+ *size = sizeof(mcontext.gp_regs);
|
|
||||||
#else
|
|
||||||
if (gp_regs)
|
|
||||||
*gp_regs = ®s;
|
|
||||||
@@ -384,6 +424,11 @@ void ThreadInfo::GetFloatingPointRegiste
|
|
||||||
# else
|
|
||||||
# error "Unexpected __riscv_flen"
|
|
||||||
# endif
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ if (fp_regs)
|
|
||||||
+ *fp_regs = &mcontext.fp_regs;
|
|
||||||
+ if (size)
|
|
||||||
+ *size = sizeof(mcontext.fp_regs);
|
|
||||||
#else
|
|
||||||
if (fp_regs)
|
|
||||||
*fp_regs = &fpregs;
|
|
||||||
@@ -392,4 +437,13 @@ void ThreadInfo::GetFloatingPointRegiste
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+void ThreadInfo::GetVectorRegisters(void** v_regs, size_t* size) {
|
|
||||||
+ if (v_regs)
|
|
||||||
+ *v_regs = &vregs;
|
|
||||||
+ if (size)
|
|
||||||
+ *size = sizeof(vregs);
|
|
||||||
+}
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
} // namespace google_breakpad
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h
|
|
||||||
@@ -67,6 +67,10 @@ struct ThreadInfo {
|
|
||||||
// Use the structures defined in <sys/user.h>
|
|
||||||
struct user_regs_struct regs;
|
|
||||||
struct user_fpsimd_struct fpregs;
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ // Use the structures defined in <sys/ucontext.h>.
|
|
||||||
+ mcontext_t mcontext;
|
|
||||||
+ struct _libc_vrstate vregs;
|
|
||||||
#elif defined(__mips__) || defined(__riscv)
|
|
||||||
// Use the structure defined in <sys/ucontext.h>.
|
|
||||||
mcontext_t mcontext;
|
|
||||||
@@ -83,6 +87,11 @@ struct ThreadInfo {
|
|
||||||
|
|
||||||
// Returns the pointer and size of float point register area.
|
|
||||||
void GetFloatingPointRegisters(void** fp_regs, size_t* size);
|
|
||||||
+
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ // Returns the pointer and size of the vector register area. (PPC64 only)
|
|
||||||
+ void GetVectorRegisters(void** v_regs, size_t* size);
|
|
||||||
+#endif
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace google_breakpad
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc
|
|
||||||
@@ -324,6 +324,48 @@ void UContextReader::FillCPUContext(RawC
|
|
||||||
#error "Unexpected __riscv_xlen"
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+
|
|
||||||
+uintptr_t UContextReader::GetStackPointer(const ucontext_t* uc) {
|
|
||||||
+ return uc->uc_mcontext.gp_regs[MD_CONTEXT_PPC64_REG_SP];
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+uintptr_t UContextReader::GetInstructionPointer(const ucontext_t* uc) {
|
|
||||||
+ return uc->uc_mcontext.gp_regs[PT_NIP];
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+void UContextReader::FillCPUContext(RawContextCPU* out, const ucontext_t* uc,
|
|
||||||
+ const struct _libc_vrstate* vregs) {
|
|
||||||
+ out->context_flags = MD_CONTEXT_PPC64_FULL;
|
|
||||||
+
|
|
||||||
+ for (int i = 0; i < MD_CONTEXT_PPC64_GPR_COUNT; i++)
|
|
||||||
+ out->gpr[i] = uc->uc_mcontext.gp_regs[i];
|
|
||||||
+
|
|
||||||
+ out->lr = uc->uc_mcontext.gp_regs[PT_LNK];
|
|
||||||
+ out->srr0 = uc->uc_mcontext.gp_regs[PT_NIP];
|
|
||||||
+ out->srr1 = uc->uc_mcontext.gp_regs[PT_MSR];
|
|
||||||
+ out->cr = uc->uc_mcontext.gp_regs[PT_CCR];
|
|
||||||
+ out->xer = uc->uc_mcontext.gp_regs[PT_XER];
|
|
||||||
+ out->ctr = uc->uc_mcontext.gp_regs[PT_CTR];
|
|
||||||
+
|
|
||||||
+ for (int i = 0; i < MD_FLOATINGSAVEAREA_PPC_FPR_COUNT; i++)
|
|
||||||
+ out->float_save.fpregs[i] = uc->uc_mcontext.fp_regs[i];
|
|
||||||
+
|
|
||||||
+ out->float_save.fpscr = uc->uc_mcontext.fp_regs[NFPREG-1];
|
|
||||||
+
|
|
||||||
+ for (int i = 0; i < MD_VECTORSAVEAREA_PPC_VR_COUNT; i++)
|
|
||||||
+ out->vector_save.save_vr[i] =
|
|
||||||
+ {(((uint64_t)vregs->vrregs[i][0]) << 32)
|
|
||||||
+ | vregs->vrregs[i][1],
|
|
||||||
+ (((uint64_t)vregs->vrregs[i][2]) << 32)
|
|
||||||
+ | vregs->vrregs[i][3]};
|
|
||||||
+
|
|
||||||
+ out->vrsave = vregs->vrsave;
|
|
||||||
+ out->vector_save.save_vscr = {0, vregs->vscr.vscr_word};
|
|
||||||
+ out->vector_save.save_vrvalid = 0xFFFFFFFF;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
#endif
|
|
||||||
|
|
||||||
} // namespace google_breakpad
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h
|
|
||||||
@@ -54,6 +54,9 @@ struct UContextReader {
|
|
||||||
#elif defined(__aarch64__)
|
|
||||||
static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc,
|
|
||||||
const struct fpsimd_context* fpregs);
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ static void FillCPUContext(RawContextCPU *out, const ucontext_t *uc,
|
|
||||||
+ const struct _libc_vrstate* vregs);
|
|
||||||
#else
|
|
||||||
static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc);
|
|
||||||
#endif
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
|
|
||||||
@@ -464,6 +464,13 @@ bool ExceptionHandler::HandleSignal(int
|
|
||||||
memcpy(&g_crash_context_.float_state, fp_ptr,
|
|
||||||
sizeof(g_crash_context_.float_state));
|
|
||||||
}
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ // On PPC64, we must copy VR state
|
|
||||||
+ ucontext_t* uc_ptr = (ucontext_t*)uc;
|
|
||||||
+ if (uc_ptr->uc_mcontext.v_regs) {
|
|
||||||
+ memcpy(&g_crash_context_.vector_state, uc_ptr->uc_mcontext.v_regs,
|
|
||||||
+ sizeof(g_crash_context_.vector_state));
|
|
||||||
+ }
|
|
||||||
#elif GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE
|
|
||||||
ucontext_t* uc_ptr = (ucontext_t*)uc;
|
|
||||||
if (uc_ptr->uc_mcontext.fpregs) {
|
|
||||||
@@ -701,10 +708,18 @@ bool ExceptionHandler::WriteMinidump() {
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#if GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE && !defined(__aarch64__)
|
|
||||||
+#if GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE && !defined(__aarch64__) \
|
|
||||||
+ && !defined(__powerpc64__)
|
|
||||||
memcpy(&context.float_state, context.context.uc_mcontext.fpregs,
|
|
||||||
sizeof(context.float_state));
|
|
||||||
#endif
|
|
||||||
+
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ // Vector registers must be copied on PPC64
|
|
||||||
+ memcpy(&context.vector_state, context.context.uc_mcontext.v_regs,
|
|
||||||
+ sizeof(context.vector_state));
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
context.tid = sys_gettid();
|
|
||||||
|
|
||||||
// Add an exception stream to the minidump for better reporting.
|
|
||||||
@@ -725,6 +740,9 @@ bool ExceptionHandler::WriteMinidump() {
|
|
||||||
#elif defined(__mips__)
|
|
||||||
context.siginfo.si_addr =
|
|
||||||
reinterpret_cast<void*>(context.context.uc_mcontext.pc);
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ context.siginfo.si_addr =
|
|
||||||
+ reinterpret_cast<void*>(context.context.uc_mcontext.gp_regs[PT_NIP]);
|
|
||||||
#elif defined(__riscv)
|
|
||||||
context.siginfo.si_addr =
|
|
||||||
reinterpret_cast<void*>(context.context.uc_mcontext.__gregs[REG_PC]);
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h
|
|
||||||
@@ -200,7 +200,11 @@ class ExceptionHandler {
|
|
||||||
siginfo_t siginfo;
|
|
||||||
pid_t tid; // the crashing thread.
|
|
||||||
ucontext_t context;
|
|
||||||
-#if GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ // PPC64's FP state is a part of ucontext_t like MIPS but the vector
|
|
||||||
+ // state is not, so a struct is needed.
|
|
||||||
+ vstate_t vector_state;
|
|
||||||
+#elif GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE
|
|
||||||
fpstate_t float_state;
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc
|
|
||||||
@@ -321,7 +321,7 @@ TEST(ExceptionHandlerTest, ParallelChild
|
|
||||||
ASSERT_EQ(SIGSEGV, WTERMSIG(status));
|
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
- usleep(100000);
|
|
||||||
+ usleep(200000);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -576,6 +576,8 @@ const unsigned char kIllegalInstruction[
|
|
||||||
#if defined(__mips__)
|
|
||||||
// mfc2 zero,Impl - usually illegal in userspace.
|
|
||||||
0x48, 0x00, 0x00, 0x48
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ 0x01, 0x01, 0x01, 0x01 // Crashes on a tested POWER9 cpu
|
|
||||||
#else
|
|
||||||
// This crashes with SIGILL on x86/x86-64/arm.
|
|
||||||
0xff, 0xff, 0xff, 0xff
|
|
||||||
@@ -771,10 +773,10 @@ TEST(ExceptionHandlerTest, InstructionPo
|
|
||||||
|
|
||||||
// These are defined here so the parent can use them to check the
|
|
||||||
// data from the minidump afterwards.
|
|
||||||
- // Use 4k here because the OS will hand out a single page even
|
|
||||||
+ // Use the page size here because the OS will hand out a single page even
|
|
||||||
// if a smaller size is requested, and this test wants to
|
|
||||||
// test the upper bound of the memory range.
|
|
||||||
- const uint32_t kMemorySize = 4096; // bytes
|
|
||||||
+ const uint32_t kMemorySize = getpagesize(); // bytes
|
|
||||||
const int kOffset = kMemorySize - sizeof(kIllegalInstruction);
|
|
||||||
|
|
||||||
const pid_t child = fork();
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc
|
|
||||||
@@ -141,7 +141,9 @@ class MicrodumpWriter {
|
|
||||||
const MicrodumpExtraInfo& microdump_extra_info,
|
|
||||||
LinuxDumper* dumper)
|
|
||||||
: ucontext_(context ? &context->context : NULL),
|
|
||||||
-#if GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ vector_state_(context ? &context->vector_state : NULL),
|
|
||||||
+#elif GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE
|
|
||||||
float_state_(context ? &context->float_state : NULL),
|
|
||||||
#endif
|
|
||||||
dumper_(dumper),
|
|
||||||
@@ -348,6 +350,8 @@ class MicrodumpWriter {
|
|
||||||
# else
|
|
||||||
# error "Unexpected __riscv_xlen"
|
|
||||||
# endif
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ const char kArch[] = "ppc64";
|
|
||||||
#else
|
|
||||||
# error "This code has not been ported to your platform yet"
|
|
||||||
#endif
|
|
||||||
@@ -420,7 +424,9 @@ class MicrodumpWriter {
|
|
||||||
void DumpCPUState() {
|
|
||||||
RawContextCPU cpu;
|
|
||||||
my_memset(&cpu, 0, sizeof(RawContextCPU));
|
|
||||||
-#if GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ UContextReader::FillCPUContext(&cpu, ucontext_, vector_state_);
|
|
||||||
+#elif GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE
|
|
||||||
UContextReader::FillCPUContext(&cpu, ucontext_, float_state_);
|
|
||||||
#else
|
|
||||||
UContextReader::FillCPUContext(&cpu, ucontext_);
|
|
||||||
@@ -616,7 +622,9 @@ class MicrodumpWriter {
|
|
||||||
void* Alloc(unsigned bytes) { return dumper_->allocator()->Alloc(bytes); }
|
|
||||||
|
|
||||||
const ucontext_t* const ucontext_;
|
|
||||||
-#if GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ const google_breakpad::vstate_t* const vector_state_;
|
|
||||||
+#elif GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE
|
|
||||||
const google_breakpad::fpstate_t* const float_state_;
|
|
||||||
#endif
|
|
||||||
LinuxDumper* dumper_;
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc
|
|
||||||
@@ -282,10 +282,19 @@ TEST(MicrodumpWriterTest, BasicWithMappi
|
|
||||||
CrashAndGetMicrodump(mappings, MicrodumpExtraInfo(), &buf);
|
|
||||||
ASSERT_TRUE(ContainsMicrodump(buf));
|
|
||||||
|
|
||||||
+ int page_size = getpagesize();
|
|
||||||
#ifdef __LP64__
|
|
||||||
- ASSERT_NE(std::string::npos,
|
|
||||||
- buf.find("M 0000000000001000 000000000000002A 0000000000001000 "
|
|
||||||
- "33221100554477668899AABBCCDDEEFF0 libfoo.so"));
|
|
||||||
+ // This test is only available for the following page sizes
|
|
||||||
+ ASSERT_TRUE((page_size == 4096) || (page_size == 65536));
|
|
||||||
+ if (page_size == 4096) {
|
|
||||||
+ ASSERT_NE(std::string::npos,
|
|
||||||
+ buf.find("M 0000000000001000 000000000000002A 0000000000001000 "
|
|
||||||
+ "33221100554477668899AABBCCDDEEFF0 libfoo.so"));
|
|
||||||
+ } else {
|
|
||||||
+ ASSERT_NE(std::string::npos,
|
|
||||||
+ buf.find("M 0000000000010000 000000000000002A 0000000000010000 "
|
|
||||||
+ "33221100554477668899AABBCCDDEEFF0 libfoo.so"));
|
|
||||||
+ }
|
|
||||||
#else
|
|
||||||
ASSERT_NE(std::string::npos,
|
|
||||||
buf.find("M 00001000 0000002A 00001000 "
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc
|
|
||||||
@@ -118,6 +118,9 @@ bool LinuxCoreDumper::GetThreadInfoByInd
|
|
||||||
#elif defined(__riscv)
|
|
||||||
stack_pointer = reinterpret_cast<uint8_t*>(
|
|
||||||
info->mcontext.__gregs[MD_CONTEXT_RISCV_REG_SP]);
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ stack_pointer =
|
|
||||||
+ reinterpret_cast<uint8_t*>(info->mcontext.gp_regs[MD_CONTEXT_PPC64_REG_SP]);
|
|
||||||
#else
|
|
||||||
# error "This code hasn't been ported to your platform yet."
|
|
||||||
#endif
|
|
||||||
@@ -213,7 +216,10 @@ bool LinuxCoreDumper::EnumerateThreads()
|
|
||||||
memset(&info, 0, sizeof(ThreadInfo));
|
|
||||||
info.tgid = status->pr_pgrp;
|
|
||||||
info.ppid = status->pr_ppid;
|
|
||||||
-#if defined(__mips__)
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ for (int i = 0; i < 31; i++)
|
|
||||||
+ info.mcontext.gp_regs[i] = status->pr_reg[i];
|
|
||||||
+#elif defined(__mips__)
|
|
||||||
# if defined(__ANDROID__)
|
|
||||||
for (int i = EF_R0; i <= EF_R31; i++)
|
|
||||||
info.mcontext.gregs[i - EF_R0] = status->pr_reg[i];
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc
|
|
||||||
@@ -770,7 +770,9 @@ bool LinuxDumper::GetStackInfo(const voi
|
|
||||||
reinterpret_cast<uint8_t*>(int_stack_pointer & ~(page_size - 1));
|
|
||||||
|
|
||||||
// The number of bytes of stack which we try to capture.
|
|
||||||
- static const ptrdiff_t kStackToCapture = 32 * 1024;
|
|
||||||
+ // This now depends on page_size to avoid missing data
|
|
||||||
+ // on systems with larger page sizes.
|
|
||||||
+ static const ptrdiff_t kStackToCapture = 8 * page_size;
|
|
||||||
|
|
||||||
const MappingInfo* mapping = FindMapping(stack_pointer);
|
|
||||||
if (!mapping)
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h
|
|
||||||
@@ -64,7 +64,8 @@ namespace google_breakpad {
|
|
||||||
typedef Elf32_auxv_t elf_aux_entry;
|
|
||||||
#elif defined(__x86_64) || defined(__aarch64__) || \
|
|
||||||
(defined(__mips__) && _MIPS_SIM != _ABIO32) || \
|
|
||||||
- (defined(__riscv) && __riscv_xlen == 64)
|
|
||||||
+ (defined(__riscv) && __riscv_xlen == 64) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
typedef Elf64_auxv_t elf_aux_entry;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc
|
|
||||||
@@ -56,6 +56,8 @@
|
|
||||||
#define TID_PTR_REGISTER "$1"
|
|
||||||
#elif defined(__riscv)
|
|
||||||
#define TID_PTR_REGISTER "x4"
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+#define TID_PTR_REGISTER "r8"
|
|
||||||
#else
|
|
||||||
#error This test has not been ported to this platform.
|
|
||||||
#endif
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
|
|
||||||
@@ -208,12 +208,12 @@ bool LinuxPtraceDumper::ReadRegisterSet(
|
|
||||||
#ifdef PTRACE_GETREGSET
|
|
||||||
struct iovec io;
|
|
||||||
info->GetGeneralPurposeRegisters(&io.iov_base, &io.iov_len);
|
|
||||||
- if (sys_ptrace(PTRACE_GETREGSET, tid, (void*)NT_PRSTATUS, (void*)&io) == -1) {
|
|
||||||
+ if (ptrace(PTRACE_GETREGSET, tid, (void*)NT_PRSTATUS, (void*)&io) == -1) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
info->GetFloatingPointRegisters(&io.iov_base, &io.iov_len);
|
|
||||||
- if (sys_ptrace(PTRACE_GETREGSET, tid, (void*)NT_FPREGSET, (void*)&io) == -1) {
|
|
||||||
+ if (ptrace(PTRACE_GETREGSET, tid, (void*)NT_FPREGSET, (void*)&io) == -1) {
|
|
||||||
// We are going to check if we can read VFP registers on ARM32.
|
|
||||||
// Currently breakpad does not support VFP registers to be a part of minidump,
|
|
||||||
// so this is only to confirm that we can actually read FP registers.
|
|
||||||
@@ -233,6 +233,15 @@ bool LinuxPtraceDumper::ReadRegisterSet(
|
|
||||||
}
|
|
||||||
#endif // defined(__arm__)
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ // Grab the vector registers on PPC64 too
|
|
||||||
+ info->GetVectorRegisters(&io.iov_base, &io.iov_len);
|
|
||||||
+ if (ptrace(PTRACE_GETREGSET, tid, (void*)NT_PPC_VMX, (void*)&io) == -1) {
|
|
||||||
+ return false;
|
|
||||||
+ }
|
|
||||||
+#endif // defined(__powerpc64__)
|
|
||||||
+
|
|
||||||
return true;
|
|
||||||
#else
|
|
||||||
return false;
|
|
||||||
@@ -397,6 +406,9 @@ bool LinuxPtraceDumper::GetThreadInfoByI
|
|
||||||
#elif defined(__riscv)
|
|
||||||
stack_pointer = reinterpret_cast<uint8_t*>(
|
|
||||||
info->mcontext.__gregs[MD_CONTEXT_RISCV_REG_SP]);
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ stack_pointer =
|
|
||||||
+ reinterpret_cast<uint8_t*>(info->mcontext.gp_regs[MD_CONTEXT_PPC64_REG_SP]);
|
|
||||||
#else
|
|
||||||
# error "This code hasn't been ported to your platform yet."
|
|
||||||
#endif
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc
|
|
||||||
@@ -470,6 +470,9 @@ TEST(LinuxPtraceDumperTest, VerifyStackR
|
|
||||||
#elif defined(__riscv)
|
|
||||||
pid_t* process_tid_location =
|
|
||||||
reinterpret_cast<pid_t*>(one_thread.mcontext.__gregs[4]);
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ pid_t* process_tid_location =
|
|
||||||
+ reinterpret_cast<pid_t*>(one_thread.mcontext.gp_regs[8]);
|
|
||||||
#else
|
|
||||||
#error This test has not been ported to this platform.
|
|
||||||
#endif
|
|
||||||
@@ -569,6 +572,8 @@ TEST_F(LinuxPtraceDumperTest, SanitizeSt
|
|
||||||
uintptr_t heap_addr = thread_info.mcontext.gregs[1];
|
|
||||||
#elif defined(__riscv)
|
|
||||||
uintptr_t heap_addr = thread_info.mcontext.__gregs[4];
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ uintptr_t heap_addr = thread_info.mcontext.gp_regs[8];
|
|
||||||
#else
|
|
||||||
#error This test has not been ported to this platform.
|
|
||||||
#endif
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc
|
|
||||||
@@ -144,7 +144,9 @@ class MinidumpWriter {
|
|
||||||
: fd_(minidump_fd),
|
|
||||||
path_(minidump_path),
|
|
||||||
ucontext_(context ? &context->context : NULL),
|
|
||||||
-#if GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ vector_state_(context ? &context->vector_state : NULL),
|
|
||||||
+#elif GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE
|
|
||||||
float_state_(context ? &context->float_state : NULL),
|
|
||||||
#endif
|
|
||||||
dumper_(dumper),
|
|
||||||
@@ -476,7 +478,9 @@ class MinidumpWriter {
|
|
||||||
if (!cpu.Allocate())
|
|
||||||
return false;
|
|
||||||
my_memset(cpu.get(), 0, sizeof(RawContextCPU));
|
|
||||||
-#if GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ UContextReader::FillCPUContext(cpu.get(), ucontext_, vector_state_);
|
|
||||||
+#elif GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE
|
|
||||||
UContextReader::FillCPUContext(cpu.get(), ucontext_, float_state_);
|
|
||||||
#else
|
|
||||||
UContextReader::FillCPUContext(cpu.get(), ucontext_);
|
|
||||||
@@ -953,7 +957,7 @@ class MinidumpWriter {
|
|
||||||
dirent->location.rva = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
-#if defined(__i386__) || defined(__x86_64__) || defined(__mips__)
|
|
||||||
+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || defined(__powerpc64__)
|
|
||||||
bool WriteCPUInformation(MDRawSystemInfo* sys_info) {
|
|
||||||
char vendor_id[sizeof(sys_info->cpu.x86_cpu_info.vendor_id) + 1] = {0};
|
|
||||||
static const char vendor_id_name[] = "vendor_id";
|
|
||||||
@@ -973,7 +977,9 @@ class MinidumpWriter {
|
|
||||||
|
|
||||||
// processor_architecture should always be set, do this first
|
|
||||||
sys_info->processor_architecture =
|
|
||||||
-#if defined(__mips__)
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ MD_CPU_ARCHITECTURE_PPC64;
|
|
||||||
+#elif defined(__mips__)
|
|
||||||
# if _MIPS_SIM == _ABIO32
|
|
||||||
MD_CPU_ARCHITECTURE_MIPS;
|
|
||||||
# elif _MIPS_SIM == _ABI64
|
|
||||||
@@ -1440,7 +1446,9 @@ class MinidumpWriter {
|
|
||||||
const char* path_; // Path to the file where the minidum should be written.
|
|
||||||
|
|
||||||
const ucontext_t* const ucontext_; // also from the signal handler
|
|
||||||
-#if GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ const google_breakpad::vstate_t* const vector_state_;
|
|
||||||
+#elif GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE
|
|
||||||
const google_breakpad::fpstate_t* const float_state_; // ditto
|
|
||||||
#endif
|
|
||||||
LinuxDumper* dumper_;
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h
|
|
||||||
@@ -47,6 +47,8 @@ class ExceptionHandler;
|
|
||||||
|
|
||||||
#if defined(__aarch64__)
|
|
||||||
typedef struct fpsimd_context fpstate_t;
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+typedef struct _libc_vrstate vstate_t;
|
|
||||||
#elif !defined(__ARM_EABI__) && !defined(__mips__)
|
|
||||||
typedef std::remove_pointer<fpregset_t>::type fpstate_t;
|
|
||||||
#endif
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc
|
|
||||||
@@ -723,6 +723,9 @@ TEST(MinidumpWriterTest, InvalidStackPoi
|
|
||||||
#elif defined(__riscv)
|
|
||||||
context.context.uc_mcontext.__gregs[MD_CONTEXT_RISCV_REG_SP] =
|
|
||||||
invalid_stack_pointer;
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ context.context.uc_mcontext.gp_regs[MD_CONTEXT_PPC64_REG_SP] =
|
|
||||||
+ invalid_stack_pointer;
|
|
||||||
#else
|
|
||||||
# error "This code has not been ported to your platform yet."
|
|
||||||
#endif
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc
|
|
||||||
@@ -72,8 +72,7 @@ bool MemoryMappedFile::Map(const char* p
|
|
||||||
|
|
||||||
#if defined(__x86_64__) || defined(__aarch64__) || \
|
|
||||||
(defined(__mips__) && _MIPS_SIM == _ABI64) || \
|
|
||||||
- (defined(__riscv) && __riscv_xlen == 64)
|
|
||||||
-
|
|
||||||
+ (defined(__riscv) && __riscv_xlen == 64) || defined(__powerpc64__)
|
|
||||||
struct kernel_stat st;
|
|
||||||
if (sys_fstat(fd, &st) == -1 || st.st_size < 0) {
|
|
||||||
#else
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc
|
|
||||||
@@ -179,9 +179,10 @@ TEST_F(MemoryMappedFileTest, RemapAfterM
|
|
||||||
TEST_F(MemoryMappedFileTest, MapWithOffset) {
|
|
||||||
// Put more data in the test file this time. Offsets can only be
|
|
||||||
// done on page boundaries, so we need a two page file to test this.
|
|
||||||
- const int page_size = 4096;
|
|
||||||
- char data1[2 * page_size];
|
|
||||||
- size_t data1_size = sizeof(data1);
|
|
||||||
+ const int page_size = getpagesize();
|
|
||||||
+ char *data1 = static_cast<char*>(malloc(2 * page_size));
|
|
||||||
+ EXPECT_TRUE(data1 != NULL);
|
|
||||||
+ size_t data1_size = (2 * page_size);
|
|
||||||
for (size_t i = 0; i < data1_size; ++i) {
|
|
||||||
data1[i] = i & 0x7f;
|
|
||||||
}
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc
|
|
||||||
@@ -60,8 +60,9 @@ TEST(PageAllocatorTest, LargeObject) {
|
|
||||||
|
|
||||||
EXPECT_EQ(0U, allocator.pages_allocated());
|
|
||||||
uint8_t* p = reinterpret_cast<uint8_t*>(allocator.Alloc(10000));
|
|
||||||
+ uint64_t expected_pages = 1 + ((10000 - 1) / getpagesize());
|
|
||||||
ASSERT_FALSE(p == NULL);
|
|
||||||
- EXPECT_EQ(3U, allocator.pages_allocated());
|
|
||||||
+ EXPECT_EQ(expected_pages, allocator.pages_allocated());
|
|
||||||
for (unsigned i = 1; i < 10; ++i) {
|
|
||||||
uint8_t* p = reinterpret_cast<uint8_t*>(allocator.Alloc(i));
|
|
||||||
ASSERT_FALSE(p == NULL);
|
|
||||||
Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc
|
|
||||||
+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc
|
|
||||||
@@ -82,6 +82,8 @@
|
|
||||||
#define ELF_ARCH EM_AARCH64
|
|
||||||
#elif defined(__riscv)
|
|
||||||
#define ELF_ARCH EM_RISCV
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ #define ELF_ARCH EM_PPC64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__arm__)
|
|
||||||
@@ -92,6 +94,8 @@ typedef user_regs user_regs_struct;
|
|
||||||
#elif defined (__mips__) || defined(__riscv)
|
|
||||||
// This file-local typedef simplifies the source code.
|
|
||||||
typedef gregset_t user_regs_struct;
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+typedef struct pt_regs user_regs_struct;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
using google_breakpad::MDTypeHelper;
|
|
||||||
@@ -324,6 +328,9 @@ struct CrashedProcess {
|
|
||||||
#if defined(__aarch64__)
|
|
||||||
user_fpsimd_struct fpregs;
|
|
||||||
#endif
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ mcontext_t mcontext;
|
|
||||||
+#endif
|
|
||||||
uintptr_t stack_addr;
|
|
||||||
const uint8_t* stack;
|
|
||||||
size_t stack_length;
|
|
||||||
@@ -627,6 +634,38 @@ ParseThreadRegisters(CrashedProcess::Thr
|
|
||||||
#error "Unexpected __riscv_xlen"
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+static void
|
|
||||||
+ParseThreadRegisters(CrashedProcess::Thread* thread,
|
|
||||||
+ const MinidumpMemoryRange& range) {
|
|
||||||
+ const MDRawContextPPC64* rawregs = range.GetData<MDRawContextPPC64>(0);
|
|
||||||
+
|
|
||||||
+ for (int i = 0; i < MD_CONTEXT_PPC64_GPR_COUNT; i++)
|
|
||||||
+ thread->mcontext.gp_regs[i] = rawregs->gpr[i];
|
|
||||||
+
|
|
||||||
+ thread->mcontext.gp_regs[PT_LNK] = rawregs->lr;
|
|
||||||
+ thread->mcontext.gp_regs[PT_NIP] = rawregs->srr0;
|
|
||||||
+ thread->mcontext.gp_regs[PT_MSR] = rawregs->srr1;
|
|
||||||
+ thread->mcontext.gp_regs[PT_CCR] = rawregs->cr;
|
|
||||||
+ thread->mcontext.gp_regs[PT_XER] = rawregs->xer;
|
|
||||||
+ thread->mcontext.gp_regs[PT_CTR] = rawregs->ctr;
|
|
||||||
+ thread->mcontext.v_regs->vrsave = rawregs->vrsave;
|
|
||||||
+
|
|
||||||
+ for (int i = 0; i < MD_FLOATINGSAVEAREA_PPC_FPR_COUNT; i++)
|
|
||||||
+ thread->mcontext.fp_regs[i] = rawregs->float_save.fpregs[i];
|
|
||||||
+
|
|
||||||
+ thread->mcontext.fp_regs[NFPREG-1] = rawregs->float_save.fpscr;
|
|
||||||
+
|
|
||||||
+ for (int i = 0; i < MD_VECTORSAVEAREA_PPC_VR_COUNT; i++) {
|
|
||||||
+ thread->mcontext.v_regs->vrregs[i][0] = rawregs->vector_save.save_vr[i].high >> 32;
|
|
||||||
+ thread->mcontext.v_regs->vrregs[i][1] = rawregs->vector_save.save_vr[i].high;
|
|
||||||
+ thread->mcontext.v_regs->vrregs[i][2] = rawregs->vector_save.save_vr[i].low >> 32;
|
|
||||||
+ thread->mcontext.v_regs->vrregs[i][3] = rawregs->vector_save.save_vr[i].low;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ thread->mcontext.v_regs->vscr.vscr_word = rawregs->vector_save.save_vscr.low & 0xFFFFFFFF;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
#else
|
|
||||||
#error "This code has not been ported to your platform yet"
|
|
||||||
#endif
|
|
||||||
@@ -732,6 +771,12 @@ ParseSystemInfo(const Options& options,
|
|
||||||
# else
|
|
||||||
# error "Unexpected __riscv_xlen"
|
|
||||||
# endif
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ if (sysinfo->processor_architecture != MD_CPU_ARCHITECTURE_PPC64) {
|
|
||||||
+ fprintf(stderr,
|
|
||||||
+ "This version of minidump-2-core only supports PPC64.\n");
|
|
||||||
+ exit(1);
|
|
||||||
+ }
|
|
||||||
#else
|
|
||||||
#error "This code has not been ported to your platform yet"
|
|
||||||
#endif
|
|
@ -1,37 +0,0 @@
|
|||||||
From b3a14db7637232d30c878cc1f1ad6d8037e81379 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawn@anastas.io>
|
|
||||||
Date: Tue, 15 Jan 2019 22:42:21 -0600
|
|
||||||
Subject: [PATCH] linux/seccomp-bpf: ppc64+glibc workaround in SIGSYS handler
|
|
||||||
|
|
||||||
Workaround for an apparent issue with glibc negating syscall
|
|
||||||
parameters. Observed on a ppc64le machine with glibc.
|
|
||||||
More investigation required.
|
|
||||||
---
|
|
||||||
sandbox/linux/seccomp-bpf/trap.cc | 14 ++++++++++++++
|
|
||||||
1 file changed, 14 insertions(+)
|
|
||||||
|
|
||||||
Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf/trap.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf/trap.cc
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf/trap.cc
|
|
||||||
@@ -236,6 +236,20 @@ void Trap::SigSys(int nr, LinuxSigInfo*
|
|
||||||
SetIsInSigHandler();
|
|
||||||
}
|
|
||||||
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ // On ppc64+glibc, some syscalls seem to accidentally negate the first
|
|
||||||
+ // parameter which causes checks against it to fail. For now, manually
|
|
||||||
+ // negate them back.
|
|
||||||
+ // TODO(shawn@anastas.io): investigate this issue further
|
|
||||||
+ auto nr = SECCOMP_SYSCALL(ctx);
|
|
||||||
+ if (nr == __NR_openat || nr == __NR_mkdirat || nr == __NR_faccessat || nr == __NR_readlinkat ||
|
|
||||||
+ nr == __NR_renameat || nr == __NR_renameat2 || nr == __NR_newfstatat || nr == __NR_unlinkat) {
|
|
||||||
+ if (static_cast<int>(SECCOMP_PARM1(ctx)) > 0) {
|
|
||||||
+ SECCOMP_PARM1(ctx) = -SECCOMP_PARM1(ctx);
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
// Copy the seccomp-specific data into a arch_seccomp_data structure. This
|
|
||||||
// is what we are showing to TrapFnc callbacks that the system call
|
|
||||||
// evaluator registered with the sandbox.
|
|
@ -1,23 +0,0 @@
|
|||||||
From 0c65e40ae578b743b5f06956597ebc9700768d18 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawnanastasio@yahoo.com>
|
|
||||||
Date: Thu, 9 Aug 2018 22:45:47 -0500
|
|
||||||
Subject: [PATCH 1/1] sandbox: Enable seccomp_bpf for ppc64
|
|
||||||
|
|
||||||
---
|
|
||||||
sandbox/features.gni | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
Index: chromium-128.0.6613.113/sandbox/features.gni
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/sandbox/features.gni
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/features.gni
|
|
||||||
@@ -9,7 +9,8 @@
|
|
||||||
use_seccomp_bpf = (is_linux || is_chromeos || is_android) &&
|
|
||||||
(current_cpu == "x86" || current_cpu == "x64" ||
|
|
||||||
current_cpu == "arm" || current_cpu == "arm64" ||
|
|
||||||
- current_cpu == "mipsel" || current_cpu == "mips64el")
|
|
||||||
+ current_cpu == "mipsel" || current_cpu == "mips64el" ||
|
|
||||||
+ current_cpu == "ppc64")
|
|
||||||
|
|
||||||
# SSBD (Speculative Store Bypass Disable) is a mitigation of Spectre Variant 4.
|
|
||||||
# As Spectre Variant 4 can be mitigated by site isolation, opt-out SSBD on site
|
|
@ -1,80 +0,0 @@
|
|||||||
From 036d209a3f1a771de9aed31dfbe804aaf91d1c27 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawnanastasio@yahoo.com>
|
|
||||||
Date: Thu, 9 Aug 2018 23:35:21 -0500
|
|
||||||
Subject: [PATCH] sandbox/linux: Implement partial support for ppc64 syscalls
|
|
||||||
and ucontext
|
|
||||||
|
|
||||||
Unlike other architectures, the ppc64 files currently rely on applicable
|
|
||||||
headers being provided by the system. It is sufficient for standard
|
|
||||||
GNU/Linux environments, but may require expansion elsewhere.
|
|
||||||
---
|
|
||||||
sandbox/linux/BUILD.gn | 2 ++
|
|
||||||
sandbox/linux/system_headers/linux_syscalls.h | 4 ++++
|
|
||||||
sandbox/linux/system_headers/linux_ucontext.h | 2 ++
|
|
||||||
sandbox/linux/system_headers/ppc64_linux_syscalls.h | 12 ++++++++++++
|
|
||||||
sandbox/linux/system_headers/ppc64_linux_ucontext.h | 12 ++++++++++++
|
|
||||||
5 files changed, 32 insertions(+)
|
|
||||||
create mode 100644 sandbox/linux/system_headers/ppc64_linux_syscalls.h
|
|
||||||
create mode 100644 sandbox/linux/system_headers/ppc64_linux_ucontext.h
|
|
||||||
|
|
||||||
Index: chromium-128.0.6613.113/sandbox/linux/BUILD.gn
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/sandbox/linux/BUILD.gn
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/linux/BUILD.gn
|
|
||||||
@@ -383,6 +383,8 @@ component("sandbox_services") {
|
|
||||||
|
|
||||||
source_set("sandbox_services_headers") {
|
|
||||||
sources = [
|
|
||||||
+ "system_headers/ppc64_linux_syscalls.h",
|
|
||||||
+ "system_headers/ppc64_linux_ucontext.h",
|
|
||||||
"system_headers/arm64_linux_syscalls.h",
|
|
||||||
"system_headers/arm_linux_syscalls.h",
|
|
||||||
"system_headers/arm_linux_ucontext.h",
|
|
||||||
Index: chromium-128.0.6613.113/sandbox/linux/system_headers/linux_syscalls.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/sandbox/linux/system_headers/linux_syscalls.h
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/linux/system_headers/linux_syscalls.h
|
|
||||||
@@ -35,5 +35,9 @@
|
|
||||||
#include "sandbox/linux/system_headers/arm64_linux_syscalls.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+#include "sandbox/linux/system_headers/ppc64_linux_syscalls.h"
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_
|
|
||||||
|
|
||||||
Index: chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_syscalls.h
|
|
||||||
===================================================================
|
|
||||||
--- /dev/null
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_syscalls.h
|
|
||||||
@@ -0,0 +1,12 @@
|
|
||||||
+// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
||||||
+// Use of this source code is governed by a BSD-style license that can be
|
|
||||||
+// found in the LICENSE file.
|
|
||||||
+
|
|
||||||
+#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_
|
|
||||||
+#define SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_
|
|
||||||
+
|
|
||||||
+#include <asm/unistd.h>
|
|
||||||
+
|
|
||||||
+//TODO: is it necessary to redefine syscall numbers for PPC64?
|
|
||||||
+
|
|
||||||
+#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_
|
|
||||||
Index: chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_ucontext.h
|
|
||||||
===================================================================
|
|
||||||
--- /dev/null
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_ucontext.h
|
|
||||||
@@ -0,0 +1,12 @@
|
|
||||||
+// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
||||||
+// Use of this source code is governed by a BSD-style license that can be
|
|
||||||
+// found in the LICENSE file.
|
|
||||||
+
|
|
||||||
+#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_
|
|
||||||
+#define SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_
|
|
||||||
+
|
|
||||||
+#include <sys/ucontext.h>
|
|
||||||
+
|
|
||||||
+//TODO: is it necessary to redefine ucontext on PPC64?
|
|
||||||
+
|
|
||||||
+#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_
|
|
@ -1,22 +0,0 @@
|
|||||||
From c41cd6ac927f592b161abc04468d3c7a4be91995 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawnanastasio@yahoo.com>
|
|
||||||
Date: Tue, 23 Oct 2018 15:49:31 -0500
|
|
||||||
Subject: [PATCH] sandbox/linux: Update IsSyscallAllowed in broker_process.cc
|
|
||||||
|
|
||||||
---
|
|
||||||
sandbox/linux/syscall_broker/broker_process.cc | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
Index: chromium-128.0.6613.113/sandbox/linux/syscall_broker/broker_process.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/sandbox/linux/syscall_broker/broker_process.cc
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/linux/syscall_broker/broker_process.cc
|
|
||||||
@@ -169,7 +169,7 @@ bool BrokerProcess::IsSyscallBrokerable(
|
|
||||||
#if defined(__NR_fstatat64)
|
|
||||||
case __NR_fstatat64:
|
|
||||||
#endif
|
|
||||||
-#if defined(__x86_64__) || defined(__aarch64__)
|
|
||||||
+#if defined(__x86_64__) || defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
case __NR_newfstatat:
|
|
||||||
#endif
|
|
||||||
return !fast_check || policy_->allowed_command_set.test(COMMAND_STAT);
|
|
@ -1,638 +0,0 @@
|
|||||||
From da52663deec77f705d7d58b18484c3e28e563f10 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawnanastasio@yahoo.com>
|
|
||||||
Date: Tue, 18 Sep 2018 18:39:28 -0500
|
|
||||||
Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64
|
|
||||||
|
|
||||||
---
|
|
||||||
.../seccomp-bpf-helpers/baseline_policy.cc | 8 +-
|
|
||||||
.../syscall_parameters_restrictions.cc | 2 +-
|
|
||||||
.../syscall_parameters_restrictions.h | 2 +-
|
|
||||||
.../linux/seccomp-bpf-helpers/syscall_sets.cc | 108 ++++++++++--------
|
|
||||||
.../linux/seccomp-bpf-helpers/syscall_sets.h | 6 +-
|
|
||||||
sandbox/linux/services/syscall_wrappers.cc | 2 +-
|
|
||||||
6 files changed, 73 insertions(+), 55 deletions(-)
|
|
||||||
|
|
||||||
Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
|
|
||||||
+++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
|
|
||||||
@@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno)
|
|
||||||
SyscallSets::IsPrctl(sysno) ||
|
|
||||||
SyscallSets::IsProcessGroupOrSession(sysno) ||
|
|
||||||
#if defined(__i386__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
SyscallSets::IsSocketCall(sysno) ||
|
|
||||||
#endif
|
|
||||||
#if defined(__arm__)
|
|
||||||
@@ -255,7 +256,7 @@ ResultExpr EvaluateSyscallImpl(int fs_de
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
|
|
||||||
- defined(__aarch64__)
|
|
||||||
+ defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
if (sysno == __NR_mmap)
|
|
||||||
return RestrictMmapFlags();
|
|
||||||
#endif
|
|
||||||
@@ -276,7 +277,7 @@ ResultExpr EvaluateSyscallImpl(int fs_de
|
|
||||||
return RestrictPrctl();
|
|
||||||
|
|
||||||
#if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \
|
|
||||||
- defined(__aarch64__)
|
|
||||||
+ defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
if (sysno == __NR_socketpair) {
|
|
||||||
// Only allow AF_UNIX, PF_UNIX. Crash if anything else is seen.
|
|
||||||
static_assert(AF_UNIX == PF_UNIX,
|
|
||||||
@@ -340,7 +341,8 @@ ResultExpr EvaluateSyscallImpl(int fs_de
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(__i386__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
if (SyscallSets::IsSocketCall(sysno))
|
|
||||||
return RestrictSocketcallCommand();
|
|
||||||
#endif
|
|
||||||
Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
|
|
||||||
+++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
|
|
||||||
@@ -36,7 +36,7 @@
|
|
||||||
#include "sandbox/linux/system_headers/linux_time.h"
|
|
||||||
|
|
||||||
#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) && \
|
|
||||||
- !defined(__arm__) && !defined(__aarch64__) && \
|
|
||||||
+ !defined(__arm__) && !defined(__aarch64__) && !defined(__powerpc64__) && \
|
|
||||||
!defined(PTRACE_GET_THREAD_AREA)
|
|
||||||
// Also include asm/ptrace-abi.h since ptrace.h in older libc (for instance
|
|
||||||
// the one in Ubuntu 16.04 LTS) is missing PTRACE_GET_THREAD_AREA.
|
|
||||||
@@ -45,6 +45,11 @@
|
|
||||||
#include <asm/ptrace-abi.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+// On PPC64, TCGETS is defined in terms of struct termios, so we must include termios.h
|
|
||||||
+#ifdef __powerpc64__
|
|
||||||
+#include <termios.h>
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#if BUILDFLAG(IS_ANDROID)
|
|
||||||
|
|
||||||
#if !defined(F_DUPFD_CLOEXEC)
|
|
||||||
@@ -102,6 +107,15 @@ inline bool IsArchitectureMips() {
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
+inline bool IsArchitecturePPC64() {
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ return true;
|
|
||||||
+#else
|
|
||||||
+ return false;
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
// Ubuntu's version of glibc has a race condition in sem_post that can cause
|
|
||||||
// it to call futex(2) with bogus op arguments. To workaround this, we need
|
|
||||||
// to allow those futex(2) calls to fail with EINVAL, instead of crashing the
|
|
||||||
@@ -269,9 +283,11 @@ ResultExpr RestrictFcntlCommands() {
|
|
||||||
// operator.
|
|
||||||
// Glibc overrides the kernel's O_LARGEFILE value. Account for this.
|
|
||||||
uint64_t kOLargeFileFlag = O_LARGEFILE;
|
|
||||||
- if (IsArchitectureX86_64() || IsArchitectureI386() || IsArchitectureMips())
|
|
||||||
+ if (IsArchitectureX86_64() || IsArchitectureI386() || IsArchitectureMips() \
|
|
||||||
+ || IsArchitecturePPC64())
|
|
||||||
kOLargeFileFlag = 0100000;
|
|
||||||
|
|
||||||
+
|
|
||||||
const Arg<int> cmd(1);
|
|
||||||
const Arg<long> long_arg(2);
|
|
||||||
|
|
||||||
@@ -294,8 +310,17 @@ ResultExpr RestrictFcntlCommands() {
|
|
||||||
F_SETLKW,
|
|
||||||
F_GETLK,
|
|
||||||
F_DUPFD,
|
|
||||||
- F_DUPFD_CLOEXEC},
|
|
||||||
- Allow())
|
|
||||||
+ F_DUPFD_CLOEXEC
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+// On PPC64, F_SETLK, F_GETLK, F_SETLKW are defined as the 64-bit variants
|
|
||||||
+// but glibc will sometimes still use the 32-bit versions. Allow both.
|
|
||||||
+ ,
|
|
||||||
+ 5, /* F_GETLK (32) */
|
|
||||||
+ 6, /* F_SETLK (32) */
|
|
||||||
+ 7 /* F_SETLKW (32) */
|
|
||||||
+#endif
|
|
||||||
+ },
|
|
||||||
+ Allow())
|
|
||||||
.Case(F_SETFL,
|
|
||||||
If((long_arg & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS()))
|
|
||||||
.Case(F_ADD_SEALS,
|
|
||||||
@@ -304,7 +329,7 @@ ResultExpr RestrictFcntlCommands() {
|
|
||||||
// clang-format on
|
|
||||||
}
|
|
||||||
|
|
||||||
-#if defined(__i386__) || defined(__mips__)
|
|
||||||
+#if defined(__i386__) || defined(__mips__) || defined(__powerpc64__)
|
|
||||||
ResultExpr RestrictSocketcallCommand() {
|
|
||||||
// Unfortunately, we are unable to restrict the first parameter to
|
|
||||||
// socketpair(2). Whilst initially sounding bad, it's noteworthy that very
|
|
||||||
@@ -463,7 +488,7 @@ ResultExpr RestrictPtrace() {
|
|
||||||
#endif
|
|
||||||
return Switch(request)
|
|
||||||
.Cases({
|
|
||||||
-#if !defined(__aarch64__)
|
|
||||||
+#if !defined(__aarch64__) && !defined(__powerpc64__)
|
|
||||||
PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_GET_THREAD_AREA,
|
|
||||||
PTRACE_GETREGSET,
|
|
||||||
#endif
|
|
||||||
Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
|
|
||||||
+++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
|
|
||||||
@@ -52,7 +52,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr
|
|
||||||
// O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME.
|
|
||||||
SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands();
|
|
||||||
|
|
||||||
-#if defined(__i386__) || defined(__mips__)
|
|
||||||
+#if defined(__i386__) || defined(__mips__) || defined(__powerpc64__)
|
|
||||||
// Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2),
|
|
||||||
// sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2).
|
|
||||||
SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand();
|
|
||||||
Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
|
|
||||||
+++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
|
|
||||||
@@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int s
|
|
||||||
switch (sysno) {
|
|
||||||
case __NR_gettimeofday:
|
|
||||||
#if defined(__i386__) || defined(__x86_64__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_time:
|
|
||||||
#endif
|
|
||||||
return true;
|
|
||||||
@@ -52,12 +53,14 @@ bool SyscallSets::IsAllowedGettime(int s
|
|
||||||
case __NR_clock_nanosleep_time64: // Parameters filtered by RestrictClockID().
|
|
||||||
#endif
|
|
||||||
#if defined(__i386__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_ftime: // Obsolete.
|
|
||||||
#endif
|
|
||||||
case __NR_settimeofday: // Privileged.
|
|
||||||
#if defined(__i386__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_stime:
|
|
||||||
#endif
|
|
||||||
default:
|
|
||||||
@@ -136,7 +139,7 @@ bool SyscallSets::IsFileSystem(int sysno
|
|
||||||
case __NR_faccessat2:
|
|
||||||
case __NR_fchmodat:
|
|
||||||
case __NR_fchownat: // Should be called chownat ?
|
|
||||||
-#if defined(__x86_64__) || defined(__aarch64__)
|
|
||||||
+#if defined(__x86_64__) || defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
case __NR_newfstatat: // fstatat(). EPERM not a valid errno.
|
|
||||||
#elif defined(__i386__) || defined(__arm__) || \
|
|
||||||
(defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
@@ -155,7 +158,7 @@ bool SyscallSets::IsFileSystem(int sysno
|
|
||||||
case __NR_memfd_create:
|
|
||||||
case __NR_mkdirat:
|
|
||||||
case __NR_mknodat:
|
|
||||||
-#if defined(__i386__)
|
|
||||||
+#if defined(__i386__) || defined(__powerpc64__)
|
|
||||||
case __NR_oldlstat:
|
|
||||||
case __NR_oldstat:
|
|
||||||
#endif
|
|
||||||
@@ -169,7 +172,8 @@ bool SyscallSets::IsFileSystem(int sysno
|
|
||||||
#endif
|
|
||||||
case __NR_statfs: // EPERM not a valid errno.
|
|
||||||
#if defined(__i386__) || defined(__arm__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_statfs64:
|
|
||||||
#endif
|
|
||||||
case __NR_statx: // EPERM not a valid errno.
|
|
||||||
@@ -180,7 +184,8 @@ bool SyscallSets::IsFileSystem(int sysno
|
|
||||||
case __NR_truncate64:
|
|
||||||
#endif
|
|
||||||
case __NR_unlinkat:
|
|
||||||
-#if defined(__i386__) || defined(__x86_64__) || defined(__mips__)
|
|
||||||
+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_utime:
|
|
||||||
#endif
|
|
||||||
case __NR_utimensat: // New.
|
|
||||||
@@ -220,7 +225,8 @@ bool SyscallSets::IsAllowedFileSystemAcc
|
|
||||||
#endif
|
|
||||||
return true;
|
|
||||||
// TODO(jln): these should be denied gracefully as well (moved below).
|
|
||||||
-#if defined(__i386__) || defined(__x86_64__) || defined(__mips__)
|
|
||||||
+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_fadvise64: // EPERM not a valid errno.
|
|
||||||
#endif
|
|
||||||
#if defined(__i386__)
|
|
||||||
@@ -233,11 +239,12 @@ bool SyscallSets::IsAllowedFileSystemAcc
|
|
||||||
case __NR_flock: // EPERM not a valid errno.
|
|
||||||
case __NR_fstatfs: // Give information about the whole filesystem.
|
|
||||||
#if defined(__i386__) || defined(__arm__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_fstatfs64:
|
|
||||||
#endif
|
|
||||||
case __NR_fsync: // EPERM not a valid errno.
|
|
||||||
-#if defined(__i386__)
|
|
||||||
+#if defined(__i386__) || defined(__powerpc64__)
|
|
||||||
case __NR_oldfstat:
|
|
||||||
#endif
|
|
||||||
#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
|
|
||||||
@@ -245,6 +252,8 @@ bool SyscallSets::IsAllowedFileSystemAcc
|
|
||||||
case __NR_sync_file_range: // EPERM not a valid errno.
|
|
||||||
#elif defined(__arm__)
|
|
||||||
case __NR_arm_sync_file_range: // EPERM not a valid errno.
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ case __NR_sync_file_range2: // EPERM not a valid errno.
|
|
||||||
#endif
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
@@ -265,7 +274,8 @@ bool SyscallSets::IsDeniedFileSystemAcce
|
|
||||||
#endif
|
|
||||||
case __NR_getdents64: // EPERM not a valid errno.
|
|
||||||
#if defined(__i386__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_readdir:
|
|
||||||
#endif
|
|
||||||
return true;
|
|
||||||
@@ -306,7 +316,7 @@ bool SyscallSets::IsGetSimpleId(int sysn
|
|
||||||
bool SyscallSets::IsProcessPrivilegeChange(int sysno) {
|
|
||||||
switch (sysno) {
|
|
||||||
case __NR_capset:
|
|
||||||
-#if defined(__i386__) || defined(__x86_64__)
|
|
||||||
+#if defined(__i386__) || defined(__x86_64__) || defined(__powerpc64__)
|
|
||||||
case __NR_ioperm: // Intel privilege.
|
|
||||||
case __NR_iopl: // Intel privilege.
|
|
||||||
#endif
|
|
||||||
@@ -362,7 +372,8 @@ bool SyscallSets::IsAllowedSignalHandlin
|
|
||||||
// overflow.
|
|
||||||
case __NR_sigaltstack:
|
|
||||||
#if defined(__i386__) || defined(__arm__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_rt_sigtimedwait_time64:
|
|
||||||
case __NR_sigaction:
|
|
||||||
case __NR_sigprocmask:
|
|
||||||
@@ -378,7 +389,8 @@ bool SyscallSets::IsAllowedSignalHandlin
|
|
||||||
#endif
|
|
||||||
case __NR_signalfd4:
|
|
||||||
#if defined(__i386__) || defined(__arm__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_sigpending:
|
|
||||||
case __NR_sigsuspend:
|
|
||||||
#endif
|
|
||||||
@@ -402,7 +414,7 @@ bool SyscallSets::IsAllowedOperationOnFd
|
|
||||||
#endif
|
|
||||||
case __NR_dup3:
|
|
||||||
#if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \
|
|
||||||
- defined(__aarch64__)
|
|
||||||
+ defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
case __NR_shutdown:
|
|
||||||
#endif
|
|
||||||
return true;
|
|
||||||
@@ -435,7 +447,7 @@ bool SyscallSets::IsAllowedProcessStartO
|
|
||||||
case __NR_exit_group:
|
|
||||||
case __NR_wait4:
|
|
||||||
case __NR_waitid:
|
|
||||||
-#if defined(__i386__)
|
|
||||||
+#if defined(__i386__) || defined(__powerpc64__)
|
|
||||||
case __NR_waitpid:
|
|
||||||
#endif
|
|
||||||
return true;
|
|
||||||
@@ -452,7 +464,7 @@ bool SyscallSets::IsAllowedProcessStartO
|
|
||||||
#endif
|
|
||||||
case __NR_set_tid_address:
|
|
||||||
case __NR_unshare:
|
|
||||||
-#if !defined(__mips__) && !defined(__aarch64__)
|
|
||||||
+#if !defined(__mips__) && !defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
case __NR_vfork:
|
|
||||||
#endif
|
|
||||||
default:
|
|
||||||
@@ -499,7 +511,7 @@ bool SyscallSets::IsAllowedEpoll(int sys
|
|
||||||
bool SyscallSets::IsDeniedGetOrModifySocket(int sysno) {
|
|
||||||
switch (sysno) {
|
|
||||||
#if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \
|
|
||||||
- defined(__aarch64__)
|
|
||||||
+ defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
case __NR_accept:
|
|
||||||
case __NR_accept4:
|
|
||||||
case __NR_bind:
|
|
||||||
@@ -514,7 +526,8 @@ bool SyscallSets::IsDeniedGetOrModifySoc
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(__i386__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
// Big multiplexing system call for sockets.
|
|
||||||
bool SyscallSets::IsSocketCall(int sysno) {
|
|
||||||
switch (sysno) {
|
|
||||||
@@ -528,7 +541,8 @@ bool SyscallSets::IsSocketCall(int sysno
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#if defined(__x86_64__) || defined(__arm__) || defined(__mips__)
|
|
||||||
+#if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
bool SyscallSets::IsNetworkSocketInformation(int sysno) {
|
|
||||||
switch (sysno) {
|
|
||||||
case __NR_getpeername:
|
|
||||||
@@ -554,7 +568,7 @@ bool SyscallSets::IsAllowedAddressSpaceA
|
|
||||||
case __NR_mincore:
|
|
||||||
case __NR_mlockall:
|
|
||||||
#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
|
|
||||||
- defined(__aarch64__)
|
|
||||||
+ defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
case __NR_mmap:
|
|
||||||
#endif
|
|
||||||
#if defined(__i386__) || defined(__arm__) || \
|
|
||||||
@@ -584,7 +598,8 @@ bool SyscallSets::IsAllowedGeneralIo(int
|
|
||||||
switch (sysno) {
|
|
||||||
case __NR_lseek:
|
|
||||||
#if defined(__i386__) || defined(__arm__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR__llseek:
|
|
||||||
#endif
|
|
||||||
#if !defined(__aarch64__)
|
|
||||||
@@ -604,26 +619,28 @@ bool SyscallSets::IsAllowedGeneralIo(int
|
|
||||||
case __NR_readv:
|
|
||||||
case __NR_pread64:
|
|
||||||
#if defined(__arm__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_recv:
|
|
||||||
#endif
|
|
||||||
#if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \
|
|
||||||
- defined(__aarch64__)
|
|
||||||
+ defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
case __NR_recvfrom: // Could specify source.
|
|
||||||
case __NR_recvmsg: // Could specify source.
|
|
||||||
#endif
|
|
||||||
-#if defined(__i386__) || defined(__x86_64__)
|
|
||||||
+#if defined(__i386__) || defined(__x86_64__) || defined(__powerpc64__)
|
|
||||||
case __NR_select:
|
|
||||||
#endif
|
|
||||||
-#if defined(__i386__) || defined(__arm__) || defined(__mips__)
|
|
||||||
+#if defined(__i386__) || defined(__arm__) || defined(__mips__) || defined(__powerpc64__)
|
|
||||||
case __NR__newselect:
|
|
||||||
#endif
|
|
||||||
#if defined(__arm__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_send:
|
|
||||||
#endif
|
|
||||||
#if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \
|
|
||||||
- defined(__aarch64__)
|
|
||||||
+ defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
case __NR_sendmsg: // Could specify destination.
|
|
||||||
case __NR_sendto: // Could specify destination.
|
|
||||||
#endif
|
|
||||||
@@ -679,7 +696,8 @@ bool SyscallSets::IsAllowedBasicSchedule
|
|
||||||
return true;
|
|
||||||
case __NR_getpriority:
|
|
||||||
#if defined(__i386__) || defined(__arm__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_nice:
|
|
||||||
#endif
|
|
||||||
case __NR_setpriority:
|
|
||||||
@@ -691,7 +709,8 @@ bool SyscallSets::IsAllowedBasicSchedule
|
|
||||||
bool SyscallSets::IsAdminOperation(int sysno) {
|
|
||||||
switch (sysno) {
|
|
||||||
#if defined(__i386__) || defined(__arm__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_bdflush:
|
|
||||||
#endif
|
|
||||||
case __NR_kexec_load:
|
|
||||||
@@ -707,7 +726,8 @@ bool SyscallSets::IsAdminOperation(int s
|
|
||||||
|
|
||||||
bool SyscallSets::IsKernelModule(int sysno) {
|
|
||||||
switch (sysno) {
|
|
||||||
-#if defined(__i386__) || defined(__x86_64__) || defined(__mips__)
|
|
||||||
+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_create_module:
|
|
||||||
case __NR_get_kernel_syms: // Should ENOSYS.
|
|
||||||
case __NR_query_module:
|
|
||||||
@@ -740,7 +760,8 @@ bool SyscallSets::IsFsControl(int sysno)
|
|
||||||
case __NR_swapoff:
|
|
||||||
case __NR_swapon:
|
|
||||||
#if defined(__i386__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_umount:
|
|
||||||
#endif
|
|
||||||
case __NR_umount2:
|
|
||||||
@@ -756,7 +777,7 @@ bool SyscallSets::IsNuma(int sysno) {
|
|
||||||
case __NR_getcpu:
|
|
||||||
case __NR_mbind:
|
|
||||||
#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
|
|
||||||
- defined(__aarch64__)
|
|
||||||
+ defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
case __NR_migrate_pages:
|
|
||||||
#endif
|
|
||||||
case __NR_move_pages:
|
|
||||||
@@ -791,14 +812,15 @@ bool SyscallSets::IsGlobalProcessEnviron
|
|
||||||
switch (sysno) {
|
|
||||||
case __NR_acct: // Privileged.
|
|
||||||
#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
|
|
||||||
- defined(__aarch64__)
|
|
||||||
+ defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
case __NR_getrlimit:
|
|
||||||
#endif
|
|
||||||
-#if defined(__i386__) || defined(__arm__)
|
|
||||||
+#if defined(__i386__) || defined(__arm__) || defined(__powerpc64__)
|
|
||||||
case __NR_ugetrlimit:
|
|
||||||
#endif
|
|
||||||
#if defined(__i386__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_ulimit:
|
|
||||||
#endif
|
|
||||||
case __NR_getrusage:
|
|
||||||
@@ -832,7 +854,7 @@ bool SyscallSets::IsGlobalSystemStatus(i
|
|
||||||
#endif
|
|
||||||
case __NR_sysinfo:
|
|
||||||
case __NR_uname:
|
|
||||||
-#if defined(__i386__)
|
|
||||||
+#if defined(__i386__) || defined(__powerpc64__)
|
|
||||||
case __NR_olduname:
|
|
||||||
case __NR_oldolduname:
|
|
||||||
#endif
|
|
||||||
@@ -916,7 +938,8 @@ bool SyscallSets::IsSystemVSemaphores(in
|
|
||||||
|
|
||||||
#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \
|
|
||||||
defined(__aarch64__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
// These give a lot of ambient authority and bypass the setuid sandbox.
|
|
||||||
bool SyscallSets::IsSystemVSharedMemory(int sysno) {
|
|
||||||
switch (sysno) {
|
|
||||||
@@ -947,7 +970,8 @@ bool SyscallSets::IsSystemVMessageQueue(
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__i386__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
// Big system V multiplexing system call.
|
|
||||||
bool SyscallSets::IsSystemVIpc(int sysno) {
|
|
||||||
switch (sysno) {
|
|
||||||
@@ -967,7 +991,8 @@ bool SyscallSets::IsAnySystemV(int sysno
|
|
||||||
return IsSystemVMessageQueue(sysno) || IsSystemVSemaphores(sysno) ||
|
|
||||||
IsSystemVSharedMemory(sysno);
|
|
||||||
#elif defined(__i386__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
return IsSystemVIpc(sysno);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
@@ -1024,7 +1049,8 @@ bool SyscallSets::IsFaNotify(int sysno)
|
|
||||||
bool SyscallSets::IsTimer(int sysno) {
|
|
||||||
switch (sysno) {
|
|
||||||
case __NR_getitimer:
|
|
||||||
-#if defined(__i386__) || defined(__x86_64__) || defined(__mips__)
|
|
||||||
+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_alarm:
|
|
||||||
#endif
|
|
||||||
case __NR_setitimer:
|
|
||||||
@@ -1103,18 +1129,22 @@ bool SyscallSets::IsMisc(int sysno) {
|
|
||||||
case __NR_syncfs:
|
|
||||||
case __NR_vhangup:
|
|
||||||
// The system calls below are not implemented.
|
|
||||||
-#if defined(__i386__) || defined(__x86_64__) || defined(__mips__)
|
|
||||||
+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_afs_syscall:
|
|
||||||
#endif
|
|
||||||
#if defined(__i386__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_break:
|
|
||||||
#endif
|
|
||||||
-#if defined(__i386__) || defined(__x86_64__) || defined(__mips__)
|
|
||||||
+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_getpmsg:
|
|
||||||
#endif
|
|
||||||
#if defined(__i386__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_gtty:
|
|
||||||
case __NR_idle:
|
|
||||||
case __NR_lock:
|
|
||||||
@@ -1122,20 +1152,22 @@ bool SyscallSets::IsMisc(int sysno) {
|
|
||||||
case __NR_prof:
|
|
||||||
case __NR_profil:
|
|
||||||
#endif
|
|
||||||
-#if defined(__i386__) || defined(__x86_64__) || defined(__mips__)
|
|
||||||
+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_putpmsg:
|
|
||||||
#endif
|
|
||||||
#if defined(__x86_64__)
|
|
||||||
case __NR_security:
|
|
||||||
#endif
|
|
||||||
#if defined(__i386__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
case __NR_stty:
|
|
||||||
#endif
|
|
||||||
-#if defined(__x86_64__)
|
|
||||||
+#if defined(__x86_64__) || defined(__powerpc64__)
|
|
||||||
case __NR_tuxcall:
|
|
||||||
#endif
|
|
||||||
-#if !defined(__aarch64__)
|
|
||||||
+#if !defined(__aarch64__) && !defined(__powerpc64__)
|
|
||||||
case __NR_vserver:
|
|
||||||
#endif
|
|
||||||
return true;
|
|
||||||
Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
|
|
||||||
+++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
|
|
||||||
@@ -46,13 +46,14 @@ class SANDBOX_EXPORT SyscallSets {
|
|
||||||
static bool IsDeniedGetOrModifySocket(int sysno);
|
|
||||||
|
|
||||||
#if defined(__i386__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
// Big multiplexing system call for sockets.
|
|
||||||
static bool IsSocketCall(int sysno);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \
|
|
||||||
- defined(__aarch64__)
|
|
||||||
+ defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
static bool IsNetworkSocketInformation(int sysno);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@@ -84,7 +85,8 @@ class SANDBOX_EXPORT SyscallSets {
|
|
||||||
#endif
|
|
||||||
#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \
|
|
||||||
defined(__aarch64__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
// These give a lot of ambient authority and bypass the setuid sandbox.
|
|
||||||
static bool IsSystemVSharedMemory(int sysno);
|
|
||||||
#endif
|
|
||||||
@@ -95,7 +97,8 @@ class SANDBOX_EXPORT SyscallSets {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__i386__) || \
|
|
||||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
|
||||||
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
+ defined(__powerpc64__)
|
|
||||||
// Big system V multiplexing system call.
|
|
||||||
static bool IsSystemVIpc(int sysno);
|
|
||||||
#endif
|
|
||||||
Index: chromium-130.0.6723.44/sandbox/linux/services/syscall_wrappers.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/sandbox/linux/services/syscall_wrappers.cc
|
|
||||||
+++ chromium-130.0.6723.44/sandbox/linux/services/syscall_wrappers.cc
|
|
||||||
@@ -61,7 +61,7 @@ long sys_clone(unsigned long flags,
|
|
||||||
#if defined(ARCH_CPU_X86_64)
|
|
||||||
return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls);
|
|
||||||
#elif defined(ARCH_CPU_X86) || defined(ARCH_CPU_ARM_FAMILY) || \
|
|
||||||
- defined(ARCH_CPU_MIPS_FAMILY)
|
|
||||||
+ defined(ARCH_CPU_MIPS_FAMILY) || defined(ARCH_CPU_PPC64_FAMILY)
|
|
||||||
// CONFIG_CLONE_BACKWARDS defined.
|
|
||||||
return syscall(__NR_clone, flags, child_stack, ptid, tls, ctid);
|
|
||||||
#endif
|
|
@ -1,27 +0,0 @@
|
|||||||
From c9043a422fb4a5a6c72aaa1b907cea5f6a3061dd Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawnanastasio@yahoo.com>
|
|
||||||
Date: Thu, 9 Aug 2018 19:10:24 -0500
|
|
||||||
Subject: [PATCH 1/4] sandbox/linux/bpf_dsl: Update syscall ranges for ppc64
|
|
||||||
|
|
||||||
---
|
|
||||||
sandbox/linux/bpf_dsl/linux_syscall_ranges.h | 7 +++++++
|
|
||||||
1 file changed, 7 insertions(+)
|
|
||||||
|
|
||||||
Index: chromium-128.0.6613.113/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
|
|
||||||
@@ -56,6 +56,13 @@
|
|
||||||
#define MAX_PUBLIC_SYSCALL __NR_syscalls
|
|
||||||
#define MAX_SYSCALL MAX_PUBLIC_SYSCALL
|
|
||||||
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+
|
|
||||||
+#include <asm/unistd.h>
|
|
||||||
+#define MIN_SYSCALL 0u
|
|
||||||
+#define MAX_PUBLIC_SYSCALL 386u
|
|
||||||
+#define MAX_SYSCALL MAX_PUBLIC_SYSCALL
|
|
||||||
+
|
|
||||||
#else
|
|
||||||
#error "Unsupported architecture"
|
|
||||||
#endif
|
|
@ -1,26 +0,0 @@
|
|||||||
From 7468b266532bd607eb1f5292d758256d800b2eee Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawnanastasio@yahoo.com>
|
|
||||||
Date: Fri, 10 Aug 2018 00:23:50 -0500
|
|
||||||
Subject: [PATCH] services/service_manager/sandbox/linux: Fix TCGETS
|
|
||||||
declaration on PPC64
|
|
||||||
|
|
||||||
---
|
|
||||||
.../sandbox/linux/bpf_renderer_policy_linux.cc | 5 +++++
|
|
||||||
1 file changed, 5 insertions(+)
|
|
||||||
|
|
||||||
Index: chromium-128.0.6613.113/sandbox/policy/linux/bpf_renderer_policy_linux.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/policy/linux/bpf_renderer_policy_linux.cc
|
|
||||||
@@ -15,6 +15,11 @@
|
|
||||||
#include "sandbox/linux/system_headers/linux_syscalls.h"
|
|
||||||
#include "sandbox/policy/linux/sandbox_linux.h"
|
|
||||||
|
|
||||||
+// On PPC64, TCGETS is defined in terms of struct termios, so we must include termios.h
|
|
||||||
+#ifdef __powerpc64__
|
|
||||||
+#include <termios.h>
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
// TODO(vignatti): replace the local definitions below with #include
|
|
||||||
// <linux/dma-buf.h> once kernel version 4.6 becomes widely used.
|
|
||||||
#include <linux/types.h>
|
|
@ -1,11 +0,0 @@
|
|||||||
--- a/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn
|
|
||||||
+++ b/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn
|
|
||||||
@@ -1258,6 +1258,8 @@
|
|
||||||
"llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp",
|
|
||||||
"llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp",
|
|
||||||
"llvm/lib/Target/PowerPC/TargetInfo/PowerPCTargetInfo.cpp",
|
|
||||||
+ "llvm/lib/MC/MCXCOFFObjectTargetWriter.cpp",
|
|
||||||
+ "llvm/lib/MC/MCAsmInfoXCOFF.cpp",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
|||||||
Index: chromium-128.0.6613.113/third_party/angle/src/libANGLE/Constants.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/third_party/angle/src/libANGLE/Constants.h
|
|
||||||
+++ chromium-128.0.6613.113/third_party/angle/src/libANGLE/Constants.h
|
|
||||||
@@ -9,6 +9,7 @@
|
|
||||||
#ifndef LIBANGLE_CONSTANTS_H_
|
|
||||||
#define LIBANGLE_CONSTANTS_H_
|
|
||||||
|
|
||||||
+#include <cstddef>
|
|
||||||
#include "common/platform.h"
|
|
||||||
|
|
||||||
#include <stddef.h>
|
|
@ -1,23 +0,0 @@
|
|||||||
From cc613c2e3bac8d4d1ff153700b819f964435923a Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawnanastasio@yahoo.com>
|
|
||||||
Date: Tue, 4 Sep 2018 18:16:07 -0500
|
|
||||||
Subject: [PATCH] third_party/libvpx: Properly generate gni on ppc64
|
|
||||||
|
|
||||||
---
|
|
||||||
third_party/libvpx/BUILD.gn | 2 ++
|
|
||||||
third_party/libvpx/generate_gni.sh | 10 ++++++++++
|
|
||||||
2 files changed, 12 insertions(+)
|
|
||||||
|
|
||||||
Index: chromium-128.0.6613.113/third_party/libvpx/BUILD.gn
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/third_party/libvpx/BUILD.gn
|
|
||||||
+++ chromium-128.0.6613.113/third_party/libvpx/BUILD.gn
|
|
||||||
@@ -320,6 +320,8 @@ if (current_cpu == "x86" || (current_cpu
|
|
||||||
} else if (current_cpu == "x64") {
|
|
||||||
deps = [ ":libvpx_x86_64_headers" ]
|
|
||||||
sources = libvpx_srcs_x86_64_avx512
|
|
||||||
+ } else if (current_cpu == "ppc64") {
|
|
||||||
+ sources = libvpx_srcs_ppc64
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
Index: chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/third_party/lss/linux_syscall_support.h
|
|
||||||
+++ chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h
|
|
||||||
@@ -4638,7 +4638,7 @@ struct kernel_statx {
|
|
||||||
LSS_REG(2, buf);
|
|
||||||
LSS_BODY(void*, mmap2, "0"(__r2));
|
|
||||||
}
|
|
||||||
-#else
|
|
||||||
+#elif !defined(__powerpc64__) /* ppc64 doesn't have mmap2 */
|
|
||||||
#define __NR__mmap2 __NR_mmap2
|
|
||||||
LSS_INLINE _syscall6(void*, _mmap2, void*, s,
|
|
||||||
size_t, l, int, p,
|
|
||||||
@@ -4749,7 +4749,7 @@ struct kernel_statx {
|
|
||||||
#if defined(__i386__) || \
|
|
||||||
defined(__ARM_ARCH_3__) || defined(__ARM_EABI__) || \
|
|
||||||
(defined(__mips__) && _MIPS_SIM == _MIPS_SIM_ABI32) || \
|
|
||||||
- defined(__PPC__) || \
|
|
||||||
+ (defined(__PPC__) && !defined(__powerpc64__)) || \
|
|
||||||
(defined(__s390__) && !defined(__s390x__))
|
|
||||||
/* On these architectures, implement mmap() with mmap2(). */
|
|
||||||
LSS_INLINE void* LSS_NAME(mmap)(void *s, size_t l, int p, int f, int d,
|
|
@ -1,22 +0,0 @@
|
|||||||
From 63e63a70766f3059ce5f1d06a95988ecf909b298 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawn@anastas.io>
|
|
||||||
Date: Wed, 24 Apr 2019 21:17:23 -0500
|
|
||||||
Subject: [PATCH] third_party/pffft: Include altivec.h on ppc64 with SIMD
|
|
||||||
enabled
|
|
||||||
|
|
||||||
---
|
|
||||||
third_party/pffft/src/pffft.c | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
Index: chromium-128.0.6613.113/third_party/pffft/src/pffft.c
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/third_party/pffft/src/pffft.c
|
|
||||||
+++ chromium-128.0.6613.113/third_party/pffft/src/pffft.c
|
|
||||||
@@ -100,6 +100,7 @@
|
|
||||||
Altivec support macros
|
|
||||||
*/
|
|
||||||
#if !defined(PFFFT_SIMD_DISABLE) && (defined(__ppc__) || defined(__ppc64__))
|
|
||||||
+#include <altivec.h>
|
|
||||||
typedef vector float v4sf;
|
|
||||||
# define SIMD_SZ 4
|
|
||||||
# define VZERO() ((vector float) vec_splat_u8(0))
|
|
File diff suppressed because it is too large
Load Diff
@ -1,18 +0,0 @@
|
|||||||
Index: chromium-128.0.6613.113/v8/src/base/immediate-crash.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/v8/src/base/immediate-crash.h
|
|
||||||
+++ chromium-128.0.6613.113/v8/src/base/immediate-crash.h
|
|
||||||
@@ -98,6 +98,13 @@
|
|
||||||
#define TRAP_SEQUENCE1_() asm volatile(".2byte 0x0001");
|
|
||||||
#define TRAP_SEQUENCE2_() asm volatile("")
|
|
||||||
|
|
||||||
+#elif V8_HOST_ARCH_PPC64
|
|
||||||
+
|
|
||||||
+#define TRAP_SEQUENCE1_() asm volatile("trap")
|
|
||||||
+// Intentionally empty: __builtin_unreachable() is always part of the sequence
|
|
||||||
+// (see IMMEDIATE_CRASH below)
|
|
||||||
+#define TRAP_SEQUENCE2_() asm volatile("")
|
|
||||||
+
|
|
||||||
#else
|
|
||||||
|
|
||||||
// Crash report accuracy will not be guaranteed on other architectures, but at
|
|
@ -1,21 +0,0 @@
|
|||||||
From 82922bf486e9926a171152f61030dfcd53f017b8 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Timothy Pearson <tpearson@raptorengineering.com>
|
|
||||||
Date: Thu, 30 Aug 2018 17:32:05 -0500
|
|
||||||
Subject: [PATCH] Include cstddef to fix build
|
|
||||||
|
|
||||||
size_t is not defined unless cstddef is included.
|
|
||||||
---
|
|
||||||
third_party/crashpad/crashpad/compat/linux/sys/user.h | 1 +
|
|
||||||
|
|
||||||
Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/compat/linux/sys/user.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/compat/linux/sys/user.h
|
|
||||||
+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/compat/linux/sys/user.h
|
|
||||||
@@ -15,6 +15,7 @@
|
|
||||||
#ifndef CRASHPAD_COMPAT_LINUX_SYS_USER_H_
|
|
||||||
#define CRASHPAD_COMPAT_LINUX_SYS_USER_H_
|
|
||||||
|
|
||||||
+#include <cstddef>
|
|
||||||
#include_next <sys/user.h>
|
|
||||||
|
|
||||||
#include <features.h>
|
|
@ -1,76 +0,0 @@
|
|||||||
From 3c4705bfdda45feb860a1f121631773e5fe8e53f Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawnanastasio@yahoo.com>
|
|
||||||
Date: Thu, 9 Aug 2018 19:11:26 -0500
|
|
||||||
Subject: [PATCH 1/4] sandbox/linux/bpf_dsl: Modify seccomp_macros to add
|
|
||||||
support for ppc64
|
|
||||||
|
|
||||||
---
|
|
||||||
sandbox/linux/bpf_dsl/seccomp_macros.h | 43 ++++++++++++++++++++++++++
|
|
||||||
1 file changed, 43 insertions(+)
|
|
||||||
|
|
||||||
Index: chromium-128.0.6613.113/sandbox/linux/bpf_dsl/seccomp_macros.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/sandbox/linux/bpf_dsl/seccomp_macros.h
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/linux/bpf_dsl/seccomp_macros.h
|
|
||||||
@@ -14,6 +14,9 @@
|
|
||||||
#if defined(__mips__)
|
|
||||||
// sys/user.h in eglibc misses size_t definition
|
|
||||||
#include <stddef.h>
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+// Manually define greg_t on ppc64
|
|
||||||
+typedef unsigned long long greg_t;
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@@ -343,6 +346,51 @@ struct regs_struct {
|
|
||||||
#define SECCOMP_PT_PARM4(_regs) (_regs).regs[3]
|
|
||||||
#define SECCOMP_PT_PARM5(_regs) (_regs).regs[4]
|
|
||||||
#define SECCOMP_PT_PARM6(_regs) (_regs).regs[5]
|
|
||||||
+
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+#include <asm/ptrace.h>
|
|
||||||
+
|
|
||||||
+typedef struct pt_regs regs_struct;
|
|
||||||
+
|
|
||||||
+#ifdef ARCH_CPU_LITTLE_ENDIAN
|
|
||||||
+#define SECCOMP_ARCH AUDIT_ARCH_PPC64LE
|
|
||||||
+#else
|
|
||||||
+#define SECCOMP_ARCH AUDIT_ARCH_PPC64
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+#define SECCOMP_REG(_ctx, _reg) ((_ctx)->uc_mcontext.regs->gpr[_reg])
|
|
||||||
+
|
|
||||||
+#define SECCOMP_RESULT(_ctx) SECCOMP_REG(_ctx, 3)
|
|
||||||
+#define SECCOMP_SYSCALL(_ctx) SECCOMP_REG(_ctx, 0)
|
|
||||||
+#define SECCOMP_IP(_ctx) (_ctx)->uc_mcontext.regs->nip
|
|
||||||
+#define SECCOMP_PARM1(_ctx) SECCOMP_REG(_ctx, 3)
|
|
||||||
+#define SECCOMP_PARM2(_ctx) SECCOMP_REG(_ctx, 4)
|
|
||||||
+#define SECCOMP_PARM3(_ctx) SECCOMP_REG(_ctx, 5)
|
|
||||||
+#define SECCOMP_PARM4(_ctx) SECCOMP_REG(_ctx, 6)
|
|
||||||
+#define SECCOMP_PARM5(_ctx) SECCOMP_REG(_ctx, 7)
|
|
||||||
+#define SECCOMP_PARM6(_ctx) SECCOMP_REG(_ctx, 8)
|
|
||||||
+
|
|
||||||
+#define SECCOMP_NR_IDX (offsetof(struct arch_seccomp_data, nr))
|
|
||||||
+#define SECCOMP_ARCH_IDX (offsetof(struct arch_seccomp_data, arch))
|
|
||||||
+#define SECCOMP_IP_MSB_IDX \
|
|
||||||
+ (offsetof(struct arch_seccomp_data, instruction_pointer) + 4)
|
|
||||||
+#define SECCOMP_IP_LSB_IDX \
|
|
||||||
+ (offsetof(struct arch_seccomp_data, instruction_pointer) + 0)
|
|
||||||
+#define SECCOMP_ARG_MSB_IDX(nr) \
|
|
||||||
+ (offsetof(struct arch_seccomp_data, args) + 8 * (nr) + 4)
|
|
||||||
+#define SECCOMP_ARG_LSB_IDX(nr) \
|
|
||||||
+ (offsetof(struct arch_seccomp_data, args) + 8 * (nr) + 0)
|
|
||||||
+
|
|
||||||
+#define SECCOMP_PT_RESULT(_regs) (_regs).gpr[3]
|
|
||||||
+#define SECCOMP_PT_SYSCALL(_regs) (_regs).gpr[0]
|
|
||||||
+#define SECCOMP_PT_IP(_regs) (_regs).nip
|
|
||||||
+#define SECCOMP_PT_PARM1(_regs) (_regs).gpr[3]
|
|
||||||
+#define SECCOMP_PT_PARM2(_regs) (_regs).gpr[4]
|
|
||||||
+#define SECCOMP_PT_PARM3(_regs) (_regs).gpr[5]
|
|
||||||
+#define SECCOMP_PT_PARM4(_regs) (_regs).gpr[6]
|
|
||||||
+#define SECCOMP_PT_PARM5(_regs) (_regs).gpr[7]
|
|
||||||
+#define SECCOMP_PT_PARM6(_regs) (_regs).gpr[8]
|
|
||||||
+
|
|
||||||
#else
|
|
||||||
#error Unsupported target platform
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -1,168 +0,0 @@
|
|||||||
Index: chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/third_party/lss/linux_syscall_support.h
|
|
||||||
+++ chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h
|
|
||||||
@@ -87,7 +87,7 @@
|
|
||||||
* Porting to other related platforms should not be difficult.
|
|
||||||
*/
|
|
||||||
#if (defined(__i386__) || defined(__x86_64__) || defined(__ARM_ARCH_3__) || \
|
|
||||||
- defined(__mips__) || defined(__PPC__) || defined(__ARM_EABI__) || \
|
|
||||||
+ defined(__mips__) || defined(__PPC__) || defined(__powerpc64__) || defined(__ARM_EABI__) || \
|
|
||||||
defined(__aarch64__) || defined(__s390__) || defined(__e2k__) || \
|
|
||||||
(defined(__riscv) && __riscv_xlen == 64) || defined(__loongarch_lp64)) \
|
|
||||||
&& (defined(__linux) || defined(__ANDROID__))
|
|
||||||
@@ -399,7 +399,7 @@ struct kernel_stat64 {
|
|
||||||
unsigned __pad2;
|
|
||||||
unsigned long long st_blocks;
|
|
||||||
};
|
|
||||||
-#elif defined __PPC__
|
|
||||||
+#elif defined __PPC__ && !defined(__powerpc64__)
|
|
||||||
struct kernel_stat64 {
|
|
||||||
unsigned long long st_dev;
|
|
||||||
unsigned long long st_ino;
|
|
||||||
@@ -421,6 +421,28 @@ struct kernel_stat64 {
|
|
||||||
unsigned long __unused4;
|
|
||||||
unsigned long __unused5;
|
|
||||||
};
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+struct kernel_stat64 {
|
|
||||||
+ unsigned long int st_dev;
|
|
||||||
+ unsigned long int st_ino;
|
|
||||||
+ unsigned int st_mode;
|
|
||||||
+ unsigned long int st_nlink;
|
|
||||||
+ unsigned int st_uid;
|
|
||||||
+ unsigned int st_gid;
|
|
||||||
+ unsigned long int st_rdev;
|
|
||||||
+ unsigned short int __pad2;
|
|
||||||
+ long int st_size;
|
|
||||||
+ long int st_blksize;
|
|
||||||
+ long int st_blocks;
|
|
||||||
+ long int st_atime_;
|
|
||||||
+ unsigned long int st_atime_nsec_;
|
|
||||||
+ long int st_mtime_;
|
|
||||||
+ unsigned long int st_mtime_nsec_;
|
|
||||||
+ long int st_ctime_;
|
|
||||||
+ unsigned long int st_ctime_nsec_;
|
|
||||||
+ unsigned long int __unused4;
|
|
||||||
+ unsigned long int __unused5;
|
|
||||||
+};
|
|
||||||
#elif defined(__e2k__)
|
|
||||||
struct kernel_stat64 {
|
|
||||||
unsigned long long st_dev;
|
|
||||||
@@ -537,7 +559,7 @@ struct kernel_stat {
|
|
||||||
uint64_t st_ctime_nsec_;
|
|
||||||
int64_t __unused4[3];
|
|
||||||
};
|
|
||||||
-#elif defined(__PPC__)
|
|
||||||
+#elif defined(__PPC__) && !defined(__powerpc64__)
|
|
||||||
typedef unsigned long kernel_blkcnt_t;
|
|
||||||
typedef unsigned long kernel_blksize_t;
|
|
||||||
typedef unsigned kernel_dev_t;
|
|
||||||
@@ -568,6 +590,37 @@ struct kernel_stat {
|
|
||||||
unsigned long __unused4;
|
|
||||||
unsigned long __unused5;
|
|
||||||
};
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+typedef long int kernel_blkcnt_t;
|
|
||||||
+typedef long int kernel_blksize_t;
|
|
||||||
+typedef unsigned long int kernel_dev_t;
|
|
||||||
+typedef unsigned int kernel_gid_t;
|
|
||||||
+typedef unsigned long int kernel_ino_t;
|
|
||||||
+typedef unsigned int kernel_mode_t;
|
|
||||||
+typedef unsigned long int kernel_nlink_t;
|
|
||||||
+typedef long int kernel_off_t;
|
|
||||||
+typedef long int kernel_time_t;
|
|
||||||
+typedef unsigned int kernel_uid_t;
|
|
||||||
+struct kernel_stat {
|
|
||||||
+ kernel_dev_t st_dev;
|
|
||||||
+ kernel_ino_t st_ino;
|
|
||||||
+ kernel_mode_t st_mode;
|
|
||||||
+ kernel_nlink_t st_nlink;
|
|
||||||
+ kernel_uid_t st_uid;
|
|
||||||
+ kernel_gid_t st_gid;
|
|
||||||
+ kernel_dev_t st_rdev;
|
|
||||||
+ kernel_off_t st_size;
|
|
||||||
+ kernel_blksize_t st_blksize;
|
|
||||||
+ kernel_blkcnt_t st_blocks;
|
|
||||||
+ kernel_time_t st_atime_;
|
|
||||||
+ unsigned long int st_atime_nsec_;
|
|
||||||
+ kernel_time_t st_mtime_;
|
|
||||||
+ unsigned long int st_mtime_nsec_;
|
|
||||||
+ kernel_time_t st_ctime_;
|
|
||||||
+ unsigned long int st_ctime_nsec_;
|
|
||||||
+ unsigned long int __unused4;
|
|
||||||
+ unsigned long int __unused5;
|
|
||||||
+};
|
|
||||||
#elif (defined(__mips__) && _MIPS_SIM != _MIPS_SIM_ABI64)
|
|
||||||
typedef int kernel_blkcnt_t;
|
|
||||||
typedef int kernel_blksize_t;
|
|
||||||
@@ -1824,6 +1877,28 @@ struct kernel_statx {
|
|
||||||
#ifndef __NR_getcpu
|
|
||||||
#define __NR_getcpu 302
|
|
||||||
#endif
|
|
||||||
+
|
|
||||||
+/* Linux commit 86250b9d12caa1a3dee12a7cf638b7dd70eaadb6 (2010) adds
|
|
||||||
+ * direct socket system calls to PPC */
|
|
||||||
+#ifndef __NR_socket
|
|
||||||
+#define __NR_socket 326
|
|
||||||
+#endif
|
|
||||||
+#ifndef __NR_socketpair
|
|
||||||
+#define __NR_socketpair 333
|
|
||||||
+#endif
|
|
||||||
+#ifndef __NR_sendto
|
|
||||||
+#define __NR_sendto 335
|
|
||||||
+#endif
|
|
||||||
+#ifndef __NR_shutdown
|
|
||||||
+#define __NR_shutdown 338
|
|
||||||
+#endif
|
|
||||||
+#ifndef __NR_sendmsg
|
|
||||||
+#define __NR_sendmsg 341
|
|
||||||
+#endif
|
|
||||||
+#ifndef __NR_recvmsg
|
|
||||||
+#define __NR_recvmsg 342
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
/* End of powerpc defininitions */
|
|
||||||
#elif defined(__s390__)
|
|
||||||
#ifndef __NR_quotactl
|
|
||||||
@@ -3363,6 +3438,11 @@ struct kernel_statx {
|
|
||||||
/* TODO(csilvers): consider wrapping some args up in a struct, like we
|
|
||||||
* do for i386's _syscall6, so we can compile successfully on gcc 2.95
|
|
||||||
*/
|
|
||||||
+ #ifdef __powerpc64__
|
|
||||||
+ /* TODO: implement clone() for ppc64.
|
|
||||||
+ * until then, use system libc */
|
|
||||||
+ #define sys_clone clone
|
|
||||||
+ #else
|
|
||||||
LSS_INLINE int LSS_NAME(clone)(int (*fn)(void *), void *child_stack,
|
|
||||||
int flags, void *arg, int *parent_tidptr,
|
|
||||||
void *newtls, int *child_tidptr) {
|
|
||||||
@@ -3433,6 +3513,7 @@ struct kernel_statx {
|
|
||||||
}
|
|
||||||
LSS_RETURN(int, __ret, __err);
|
|
||||||
}
|
|
||||||
+ #endif
|
|
||||||
#elif defined(__s390__)
|
|
||||||
#undef LSS_REG
|
|
||||||
#define LSS_REG(r, a) register unsigned long __r##r __asm__("r"#r) = (unsigned long) a
|
|
||||||
@@ -4783,7 +4864,7 @@ struct kernel_statx {
|
|
||||||
LSS_INLINE _syscall6(void*, mmap, void*, addr, size_t, length, int, prot,
|
|
||||||
int, flags, int, fd, int64_t, offset)
|
|
||||||
#endif
|
|
||||||
- #if defined(__PPC__)
|
|
||||||
+ #if defined(__PPC__) && !defined(__powerpc64__)
|
|
||||||
#undef LSS_SC_LOADARGS_0
|
|
||||||
#define LSS_SC_LOADARGS_0(dummy...)
|
|
||||||
#undef LSS_SC_LOADARGS_1
|
|
||||||
@@ -5173,7 +5254,11 @@ struct kernel_statx {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(__NR_pipe)
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ LSS_INLINE pid_t LSS_NAME(pipe)(int *pipefd) {
|
|
||||||
+#else
|
|
||||||
LSS_INLINE int LSS_NAME(pipe)(int *pipefd) {
|
|
||||||
+#endif
|
|
||||||
return LSS_NAME(pipe2)(pipefd, 0);
|
|
||||||
}
|
|
||||||
#endif
|
|
@ -1,37 +0,0 @@
|
|||||||
From cca78240860abb63bbcfe94d1e5f04a1f23c527d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawnanastasio@yahoo.com>
|
|
||||||
Date: Thu, 9 Aug 2018 19:11:56 -0500
|
|
||||||
Subject: [PATCH 3/4] sandbox/linux/system_headers: Update linux seccomp header
|
|
||||||
for ppc64
|
|
||||||
|
|
||||||
---
|
|
||||||
sandbox/linux/system_headers/linux_seccomp.h | 10 ++++++++++
|
|
||||||
1 file changed, 10 insertions(+)
|
|
||||||
|
|
||||||
Index: chromium-128.0.6613.113/sandbox/linux/system_headers/linux_seccomp.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/sandbox/linux/system_headers/linux_seccomp.h
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/linux/system_headers/linux_seccomp.h
|
|
||||||
@@ -38,6 +38,9 @@
|
|
||||||
#ifndef EM_AARCH64
|
|
||||||
#define EM_AARCH64 183
|
|
||||||
#endif
|
|
||||||
+#ifndef EM_PPC64
|
|
||||||
+#define EM_PPC64 21
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
#ifndef __AUDIT_ARCH_64BIT
|
|
||||||
#define __AUDIT_ARCH_64BIT 0x80000000
|
|
||||||
@@ -70,6 +73,12 @@
|
|
||||||
#ifndef AUDIT_ARCH_AARCH64
|
|
||||||
#define AUDIT_ARCH_AARCH64 (EM_AARCH64 | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE)
|
|
||||||
#endif
|
|
||||||
+#ifndef AUDIT_ARCH_PPC64
|
|
||||||
+#define AUDIT_ARCH_PPC64 (EM_PPC64 | __AUDIT_ARCH_64BIT)
|
|
||||||
+#endif
|
|
||||||
+#ifndef AUDIT_ARCH_PPC64LE
|
|
||||||
+#define AUDIT_ARCH_PPC64LE (EM_PPC64 | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE)
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
// For prctl.h
|
|
||||||
#ifndef PR_SET_SECCOMP
|
|
File diff suppressed because it is too large
Load Diff
@ -1,23 +0,0 @@
|
|||||||
From 298df3dc44f7121cd8cb9a06b29fa3b16c959b8d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawnanastasio@yahoo.com>
|
|
||||||
Date: Thu, 9 Aug 2018 19:13:25 -0500
|
|
||||||
Subject: [PATCH 4/4] sandbox/linux/system_headers: Update linux signal header
|
|
||||||
for ppc64
|
|
||||||
|
|
||||||
---
|
|
||||||
sandbox/linux/system_headers/linux_signal.h | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
Index: chromium-128.0.6613.113/sandbox/linux/system_headers/linux_signal.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/sandbox/linux/system_headers/linux_signal.h
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/linux/system_headers/linux_signal.h
|
|
||||||
@@ -13,7 +13,7 @@
|
|
||||||
// (not undefined, but defined different values and in different memory
|
|
||||||
// layouts). So, fill the gap here.
|
|
||||||
#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \
|
|
||||||
- defined(__aarch64__)
|
|
||||||
+ defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
|
|
||||||
#define LINUX_SIGHUP 1
|
|
||||||
#define LINUX_SIGINT 2
|
|
@ -1,17 +0,0 @@
|
|||||||
Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc
|
|
||||||
+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc
|
|
||||||
@@ -239,6 +239,12 @@ std::string UserAgent() {
|
|
||||||
#endif
|
|
||||||
#elif defined (ARCH_CPU_RISCV64)
|
|
||||||
static constexpr char arch[] = "riscv64";
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+#if defined(ARCH_CPU_LITTLE_ENDIAN)
|
|
||||||
+ static constexpr char arch[] = "ppc64";
|
|
||||||
+#elif defined(ARCH_CPU_BIG_ENDIAN)
|
|
||||||
+ static constexpr char arch[] = "ppc64_be";
|
|
||||||
+#endif
|
|
||||||
#else
|
|
||||||
#error Port
|
|
||||||
#endif
|
|
@ -1,376 +0,0 @@
|
|||||||
Index: chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c
|
|
||||||
+++ chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c
|
|
||||||
@@ -38,6 +38,28 @@ static INLINE int16x8_t vec_max_across(i
|
|
||||||
return vec_max(a, vec_perm(a, a, vec_perm16));
|
|
||||||
}
|
|
||||||
|
|
||||||
+static INLINE void
|
|
||||||
+vec_u64_store(vector unsigned long long vecu64, unsigned long offset, void *ptr)
|
|
||||||
+{
|
|
||||||
+#ifndef WORDS_BIGENDIAN
|
|
||||||
+ __asm__ ("xxswapd %x0, %x1"
|
|
||||||
+ : "=wa" (vecu64)
|
|
||||||
+ : "wa" (vecu64));
|
|
||||||
+#endif
|
|
||||||
+#if __GNUC__ >= 4
|
|
||||||
+ if (__builtin_constant_p (offset) && offset == 0)
|
|
||||||
+ __asm__ ("stxvd2x %x0,0,%1\n\t"
|
|
||||||
+ :
|
|
||||||
+ : "wa" (vecu64), "r" ((uintptr_t)ptr)
|
|
||||||
+ : "memory");
|
|
||||||
+ else
|
|
||||||
+#endif
|
|
||||||
+ __asm__ ("stxvd2x %x0,%1,%2\n\t"
|
|
||||||
+ :
|
|
||||||
+ : "wa" (vecu64), "r" (offset), "r" ((uintptr_t)ptr)
|
|
||||||
+ : "memory", "r0");
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
void vp9_quantize_fp_vsx(const tran_low_t *coeff_ptr, intptr_t n_coeffs,
|
|
||||||
const int16_t *round_ptr, const int16_t *quant_ptr,
|
|
||||||
tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr,
|
|
||||||
@@ -60,10 +82,10 @@ void vp9_quantize_fp_vsx(const tran_low_
|
|
||||||
qcoeff0 = vec_mulhi(vec_vaddshs(vec_abs(coeff0), round), quant);
|
|
||||||
zero_coeff0 = vec_cmpeq(qcoeff0, vec_zeros_s16);
|
|
||||||
qcoeff0 = vec_sign(qcoeff0, coeff0);
|
|
||||||
- vec_vsx_st(qcoeff0, 0, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff0, 0, qcoeff_ptr);
|
|
||||||
|
|
||||||
dqcoeff0 = vec_mladd(qcoeff0, dequant, vec_zeros_s16);
|
|
||||||
- vec_vsx_st(dqcoeff0, 0, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dqcoeff0, 0, dqcoeff_ptr);
|
|
||||||
|
|
||||||
// Remove DC value from round and quant
|
|
||||||
round = vec_splat(round, 1);
|
|
||||||
@@ -76,10 +98,10 @@ void vp9_quantize_fp_vsx(const tran_low_
|
|
||||||
qcoeff1 = vec_mulhi(vec_vaddshs(vec_abs(coeff1), round), quant);
|
|
||||||
zero_coeff1 = vec_cmpeq(qcoeff1, vec_zeros_s16);
|
|
||||||
qcoeff1 = vec_sign(qcoeff1, coeff1);
|
|
||||||
- vec_vsx_st(qcoeff1, 16, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff1, 16, qcoeff_ptr);
|
|
||||||
|
|
||||||
dqcoeff1 = vec_mladd(qcoeff1, dequant, vec_zeros_s16);
|
|
||||||
- vec_vsx_st(dqcoeff1, 16, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dqcoeff1, 16, dqcoeff_ptr);
|
|
||||||
|
|
||||||
eob = vec_max(vec_or(scan0, zero_coeff0), vec_or(scan1, zero_coeff1));
|
|
||||||
|
|
||||||
@@ -107,23 +129,23 @@ void vp9_quantize_fp_vsx(const tran_low_
|
|
||||||
qcoeff0 = vec_mulhi(vec_vaddshs(vec_abs(coeff0), round), quant);
|
|
||||||
zero_coeff0 = vec_cmpeq(qcoeff0, vec_zeros_s16);
|
|
||||||
qcoeff0 = vec_sign(qcoeff0, coeff0);
|
|
||||||
- vec_vsx_st(qcoeff0, off0, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff0, off0, qcoeff_ptr);
|
|
||||||
dqcoeff0 = vec_mladd(qcoeff0, dequant, vec_zeros_s16);
|
|
||||||
- vec_vsx_st(dqcoeff0, off0, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dqcoeff0, off0, dqcoeff_ptr);
|
|
||||||
|
|
||||||
qcoeff1 = vec_mulhi(vec_vaddshs(vec_abs(coeff1), round), quant);
|
|
||||||
zero_coeff1 = vec_cmpeq(qcoeff1, vec_zeros_s16);
|
|
||||||
qcoeff1 = vec_sign(qcoeff1, coeff1);
|
|
||||||
- vec_vsx_st(qcoeff1, off1, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff1, off1, qcoeff_ptr);
|
|
||||||
dqcoeff1 = vec_mladd(qcoeff1, dequant, vec_zeros_s16);
|
|
||||||
- vec_vsx_st(dqcoeff1, off1, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dqcoeff1, off1, dqcoeff_ptr);
|
|
||||||
|
|
||||||
qcoeff2 = vec_mulhi(vec_vaddshs(vec_abs(coeff2), round), quant);
|
|
||||||
zero_coeff2 = vec_cmpeq(qcoeff2, vec_zeros_s16);
|
|
||||||
qcoeff2 = vec_sign(qcoeff2, coeff2);
|
|
||||||
- vec_vsx_st(qcoeff2, off2, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff2, off2, qcoeff_ptr);
|
|
||||||
dqcoeff2 = vec_mladd(qcoeff2, dequant, vec_zeros_s16);
|
|
||||||
- vec_vsx_st(dqcoeff2, off2, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dqcoeff2, off2, dqcoeff_ptr);
|
|
||||||
|
|
||||||
eob = vec_max(eob, vec_or(scan0, zero_coeff0));
|
|
||||||
eob2 = vec_max(vec_or(scan1, zero_coeff1), vec_or(scan2, zero_coeff2));
|
|
||||||
@@ -200,10 +222,10 @@ void vp9_quantize_fp_32x32_vsx(const tra
|
|
||||||
qcoeff0 = vec_and(qcoeff0, mask0);
|
|
||||||
zero_coeff0 = vec_cmpeq(qcoeff0, vec_zeros_s16);
|
|
||||||
qcoeff0 = vec_sign(qcoeff0, coeff0);
|
|
||||||
- vec_vsx_st(qcoeff0, 0, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff0, 0, qcoeff_ptr);
|
|
||||||
|
|
||||||
dqcoeff0 = dequantize_coeff_32(qcoeff0, dequant);
|
|
||||||
- vec_vsx_st(dqcoeff0, 0, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dqcoeff0, 0, dqcoeff_ptr);
|
|
||||||
|
|
||||||
// Remove DC value from thres, round, quant and dequant
|
|
||||||
thres = vec_splat(thres, 1);
|
|
||||||
@@ -219,10 +241,10 @@ void vp9_quantize_fp_32x32_vsx(const tra
|
|
||||||
qcoeff1 = vec_and(qcoeff1, mask1);
|
|
||||||
zero_coeff1 = vec_cmpeq(qcoeff1, vec_zeros_s16);
|
|
||||||
qcoeff1 = vec_sign(qcoeff1, coeff1);
|
|
||||||
- vec_vsx_st(qcoeff1, 16, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff1, 16, qcoeff_ptr);
|
|
||||||
|
|
||||||
dqcoeff1 = dequantize_coeff_32(qcoeff1, dequant);
|
|
||||||
- vec_vsx_st(dqcoeff1, 16, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dqcoeff1, 16, dqcoeff_ptr);
|
|
||||||
|
|
||||||
eob = vec_max(vec_or(scan0, zero_coeff0), vec_or(scan1, zero_coeff1));
|
|
||||||
|
|
||||||
@@ -260,17 +282,17 @@ void vp9_quantize_fp_32x32_vsx(const tra
|
|
||||||
qcoeff1 = vec_sign(qcoeff1, coeff1);
|
|
||||||
qcoeff2 = vec_sign(qcoeff2, coeff2);
|
|
||||||
|
|
||||||
- vec_vsx_st(qcoeff0, off0, qcoeff_ptr);
|
|
||||||
- vec_vsx_st(qcoeff1, off1, qcoeff_ptr);
|
|
||||||
- vec_vsx_st(qcoeff2, off2, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff0, off0, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff1, off1, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff2, off2, qcoeff_ptr);
|
|
||||||
|
|
||||||
dqcoeff0 = dequantize_coeff_32(qcoeff0, dequant);
|
|
||||||
dqcoeff1 = dequantize_coeff_32(qcoeff1, dequant);
|
|
||||||
dqcoeff2 = dequantize_coeff_32(qcoeff2, dequant);
|
|
||||||
|
|
||||||
- vec_vsx_st(dqcoeff0, off0, dqcoeff_ptr);
|
|
||||||
- vec_vsx_st(dqcoeff1, off1, dqcoeff_ptr);
|
|
||||||
- vec_vsx_st(dqcoeff2, off2, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dqcoeff0, off0, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dqcoeff1, off1, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dqcoeff2, off2, dqcoeff_ptr);
|
|
||||||
|
|
||||||
eob = vec_max(eob, vec_or(scan0, zero_coeff0));
|
|
||||||
eob2 = vec_max(vec_or(scan1, zero_coeff1), vec_or(scan2, zero_coeff2));
|
|
||||||
Index: chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c
|
|
||||||
+++ chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c
|
|
||||||
@@ -15,6 +15,28 @@
|
|
||||||
#include "vpx_dsp/ppc/txfm_common_vsx.h"
|
|
||||||
#include "vpx_dsp/ppc/types_vsx.h"
|
|
||||||
|
|
||||||
+static INLINE void
|
|
||||||
+vec_u64_store(vector unsigned long long vecu64, unsigned long offset, void *ptr)
|
|
||||||
+{
|
|
||||||
+#ifndef WORDS_BIGENDIAN
|
|
||||||
+ __asm__ ("xxswapd %x0, %x1"
|
|
||||||
+ : "=wa" (vecu64)
|
|
||||||
+ : "wa" (vecu64));
|
|
||||||
+#endif
|
|
||||||
+#if __GNUC__ >= 4
|
|
||||||
+ if (__builtin_constant_p (offset) && offset == 0)
|
|
||||||
+ __asm__ ("stxvd2x %x0,0,%1\n\t"
|
|
||||||
+ :
|
|
||||||
+ : "wa" (vecu64), "r" ((uintptr_t)ptr)
|
|
||||||
+ : "memory");
|
|
||||||
+ else
|
|
||||||
+#endif
|
|
||||||
+ __asm__ ("stxvd2x %x0,%1,%2\n\t"
|
|
||||||
+ :
|
|
||||||
+ : "wa" (vecu64), "r" (offset), "r" ((uintptr_t)ptr)
|
|
||||||
+ : "memory", "r0");
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
// Returns ((a +/- b) * cospi16 + (2 << 13)) >> 14.
|
|
||||||
static INLINE void single_butterfly(int16x8_t a, int16x8_t b, int16x8_t *add,
|
|
||||||
int16x8_t *sub) {
|
|
||||||
@@ -164,45 +186,45 @@ static INLINE void load(const int16_t *a
|
|
||||||
}
|
|
||||||
|
|
||||||
static INLINE void store(tran_low_t *a, const int16x8_t *b) {
|
|
||||||
- vec_vsx_st(b[0], 0, a);
|
|
||||||
- vec_vsx_st(b[8], 0, a + 8);
|
|
||||||
- vec_vsx_st(b[16], 0, a + 16);
|
|
||||||
- vec_vsx_st(b[24], 0, a + 24);
|
|
||||||
-
|
|
||||||
- vec_vsx_st(b[1], 0, a + 32);
|
|
||||||
- vec_vsx_st(b[9], 0, a + 40);
|
|
||||||
- vec_vsx_st(b[17], 0, a + 48);
|
|
||||||
- vec_vsx_st(b[25], 0, a + 56);
|
|
||||||
-
|
|
||||||
- vec_vsx_st(b[2], 0, a + 64);
|
|
||||||
- vec_vsx_st(b[10], 0, a + 72);
|
|
||||||
- vec_vsx_st(b[18], 0, a + 80);
|
|
||||||
- vec_vsx_st(b[26], 0, a + 88);
|
|
||||||
-
|
|
||||||
- vec_vsx_st(b[3], 0, a + 96);
|
|
||||||
- vec_vsx_st(b[11], 0, a + 104);
|
|
||||||
- vec_vsx_st(b[19], 0, a + 112);
|
|
||||||
- vec_vsx_st(b[27], 0, a + 120);
|
|
||||||
-
|
|
||||||
- vec_vsx_st(b[4], 0, a + 128);
|
|
||||||
- vec_vsx_st(b[12], 0, a + 136);
|
|
||||||
- vec_vsx_st(b[20], 0, a + 144);
|
|
||||||
- vec_vsx_st(b[28], 0, a + 152);
|
|
||||||
-
|
|
||||||
- vec_vsx_st(b[5], 0, a + 160);
|
|
||||||
- vec_vsx_st(b[13], 0, a + 168);
|
|
||||||
- vec_vsx_st(b[21], 0, a + 176);
|
|
||||||
- vec_vsx_st(b[29], 0, a + 184);
|
|
||||||
-
|
|
||||||
- vec_vsx_st(b[6], 0, a + 192);
|
|
||||||
- vec_vsx_st(b[14], 0, a + 200);
|
|
||||||
- vec_vsx_st(b[22], 0, a + 208);
|
|
||||||
- vec_vsx_st(b[30], 0, a + 216);
|
|
||||||
-
|
|
||||||
- vec_vsx_st(b[7], 0, a + 224);
|
|
||||||
- vec_vsx_st(b[15], 0, a + 232);
|
|
||||||
- vec_vsx_st(b[23], 0, a + 240);
|
|
||||||
- vec_vsx_st(b[31], 0, a + 248);
|
|
||||||
+ vec_u64_store(b[0], 0, a);
|
|
||||||
+ vec_u64_store(b[8], 0, a + 8);
|
|
||||||
+ vec_u64_store(b[16], 0, a + 16);
|
|
||||||
+ vec_u64_store(b[24], 0, a + 24);
|
|
||||||
+
|
|
||||||
+ vec_u64_store(b[1], 0, a + 32);
|
|
||||||
+ vec_u64_store(b[9], 0, a + 40);
|
|
||||||
+ vec_u64_store(b[17], 0, a + 48);
|
|
||||||
+ vec_u64_store(b[25], 0, a + 56);
|
|
||||||
+
|
|
||||||
+ vec_u64_store(b[2], 0, a + 64);
|
|
||||||
+ vec_u64_store(b[10], 0, a + 72);
|
|
||||||
+ vec_u64_store(b[18], 0, a + 80);
|
|
||||||
+ vec_u64_store(b[26], 0, a + 88);
|
|
||||||
+
|
|
||||||
+ vec_u64_store(b[3], 0, a + 96);
|
|
||||||
+ vec_u64_store(b[11], 0, a + 104);
|
|
||||||
+ vec_u64_store(b[19], 0, a + 112);
|
|
||||||
+ vec_u64_store(b[27], 0, a + 120);
|
|
||||||
+
|
|
||||||
+ vec_u64_store(b[4], 0, a + 128);
|
|
||||||
+ vec_u64_store(b[12], 0, a + 136);
|
|
||||||
+ vec_u64_store(b[20], 0, a + 144);
|
|
||||||
+ vec_u64_store(b[28], 0, a + 152);
|
|
||||||
+
|
|
||||||
+ vec_u64_store(b[5], 0, a + 160);
|
|
||||||
+ vec_u64_store(b[13], 0, a + 168);
|
|
||||||
+ vec_u64_store(b[21], 0, a + 176);
|
|
||||||
+ vec_u64_store(b[29], 0, a + 184);
|
|
||||||
+
|
|
||||||
+ vec_u64_store(b[6], 0, a + 192);
|
|
||||||
+ vec_u64_store(b[14], 0, a + 200);
|
|
||||||
+ vec_u64_store(b[22], 0, a + 208);
|
|
||||||
+ vec_u64_store(b[30], 0, a + 216);
|
|
||||||
+
|
|
||||||
+ vec_u64_store(b[7], 0, a + 224);
|
|
||||||
+ vec_u64_store(b[15], 0, a + 232);
|
|
||||||
+ vec_u64_store(b[23], 0, a + 240);
|
|
||||||
+ vec_u64_store(b[31], 0, a + 248);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Returns 1 if negative 0 if positive
|
|
||||||
Index: chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c
|
|
||||||
+++ chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c
|
|
||||||
@@ -13,6 +13,28 @@
|
|
||||||
#include "./vpx_dsp_rtcd.h"
|
|
||||||
#include "vpx_dsp/ppc/types_vsx.h"
|
|
||||||
|
|
||||||
+static INLINE void
|
|
||||||
+vec_u64_store(vector unsigned long long vecu64, unsigned long offset, void *ptr)
|
|
||||||
+{
|
|
||||||
+#ifndef WORDS_BIGENDIAN
|
|
||||||
+ __asm__ ("xxswapd %x0, %x1"
|
|
||||||
+ : "=wa" (vecu64)
|
|
||||||
+ : "wa" (vecu64));
|
|
||||||
+#endif
|
|
||||||
+#if __GNUC__ >= 4
|
|
||||||
+ if (__builtin_constant_p (offset) && offset == 0)
|
|
||||||
+ __asm__ ("stxvd2x %x0,0,%1\n\t"
|
|
||||||
+ :
|
|
||||||
+ : "wa" (vecu64), "r" ((uintptr_t)ptr)
|
|
||||||
+ : "memory");
|
|
||||||
+ else
|
|
||||||
+#endif
|
|
||||||
+ __asm__ ("stxvd2x %x0,%1,%2\n\t"
|
|
||||||
+ :
|
|
||||||
+ : "wa" (vecu64), "r" (offset), "r" ((uintptr_t)ptr)
|
|
||||||
+ : "memory", "r0");
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
// Negate 16-bit integers in a when the corresponding signed 16-bit
|
|
||||||
// integer in b is negative.
|
|
||||||
static INLINE int16x8_t vec_sign(int16x8_t a, int16x8_t b) {
|
|
||||||
@@ -124,19 +146,19 @@ void vpx_quantize_b_vsx(const tran_low_t
|
|
||||||
|
|
||||||
qcoeff0 =
|
|
||||||
quantize_coeff(coeff0, coeff0_abs, round, quant, quant_shift, zero_mask0);
|
|
||||||
- vec_vsx_st(qcoeff0, 0, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff0, 0, qcoeff_ptr);
|
|
||||||
round = vec_splat(round, 1);
|
|
||||||
quant = vec_splat(quant, 1);
|
|
||||||
quant_shift = vec_splat(quant_shift, 1);
|
|
||||||
qcoeff1 =
|
|
||||||
quantize_coeff(coeff1, coeff1_abs, round, quant, quant_shift, zero_mask1);
|
|
||||||
- vec_vsx_st(qcoeff1, 16, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff1, 16, qcoeff_ptr);
|
|
||||||
|
|
||||||
dqcoeff0 = vec_mladd(qcoeff0, dequant, vec_zeros_s16);
|
|
||||||
- vec_vsx_st(dqcoeff0, 0, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dqcoeff0, 0, dqcoeff_ptr);
|
|
||||||
dequant = vec_splat(dequant, 1);
|
|
||||||
dqcoeff1 = vec_mladd(qcoeff1, dequant, vec_zeros_s16);
|
|
||||||
- vec_vsx_st(dqcoeff1, 16, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dqcoeff1, 16, dqcoeff_ptr);
|
|
||||||
|
|
||||||
eob = vec_max(nonzero_scanindex(qcoeff0, iscan_ptr, 0),
|
|
||||||
nonzero_scanindex(qcoeff1, iscan_ptr, 16));
|
|
||||||
@@ -164,17 +186,17 @@ void vpx_quantize_b_vsx(const tran_low_t
|
|
||||||
zero_mask1);
|
|
||||||
qcoeff2 = quantize_coeff(coeff2, coeff2_abs, round, quant, quant_shift,
|
|
||||||
zero_mask2);
|
|
||||||
- vec_vsx_st(qcoeff0, off0, qcoeff_ptr);
|
|
||||||
- vec_vsx_st(qcoeff1, off1, qcoeff_ptr);
|
|
||||||
- vec_vsx_st(qcoeff2, off2, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff0, off0, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff1, off1, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff2, off2, qcoeff_ptr);
|
|
||||||
|
|
||||||
dqcoeff0 = vec_mladd(qcoeff0, dequant, vec_zeros_s16);
|
|
||||||
dqcoeff1 = vec_mladd(qcoeff1, dequant, vec_zeros_s16);
|
|
||||||
dqcoeff2 = vec_mladd(qcoeff2, dequant, vec_zeros_s16);
|
|
||||||
|
|
||||||
- vec_vsx_st(dqcoeff0, off0, dqcoeff_ptr);
|
|
||||||
- vec_vsx_st(dqcoeff1, off1, dqcoeff_ptr);
|
|
||||||
- vec_vsx_st(dqcoeff2, off2, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dqcoeff0, off0, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dqcoeff1, off1, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dqcoeff2, off2, dqcoeff_ptr);
|
|
||||||
|
|
||||||
eob = vec_max(eob, nonzero_scanindex(qcoeff0, iscan_ptr, off0));
|
|
||||||
eob2 = vec_max(nonzero_scanindex(qcoeff1, iscan_ptr, off1),
|
|
||||||
@@ -243,12 +265,12 @@ void vpx_quantize_b_32x32_vsx(const tran
|
|
||||||
qcoeff1 = quantize_coeff_32(coeff1, coeff1_abs, round, quant, quant_shift,
|
|
||||||
zero_mask1);
|
|
||||||
|
|
||||||
- vec_vsx_st(qcoeff0, 0, qcoeff_ptr);
|
|
||||||
- vec_vsx_st(qcoeff1, 16, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff0, 0, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff1, 16, qcoeff_ptr);
|
|
||||||
|
|
||||||
- vec_vsx_st(dequantize_coeff_32(qcoeff0, dequant), 0, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dequantize_coeff_32(qcoeff0, dequant), 0, dqcoeff_ptr);
|
|
||||||
dequant = vec_splat(dequant, 1); // remove DC from dequant
|
|
||||||
- vec_vsx_st(dequantize_coeff_32(qcoeff1, dequant), 16, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dequantize_coeff_32(qcoeff1, dequant), 16, dqcoeff_ptr);
|
|
||||||
|
|
||||||
eob = vec_max(nonzero_scanindex(qcoeff0, iscan_ptr, 0),
|
|
||||||
nonzero_scanindex(qcoeff1, iscan_ptr, 16));
|
|
||||||
@@ -276,13 +298,13 @@ void vpx_quantize_b_32x32_vsx(const tran
|
|
||||||
qcoeff2 = quantize_coeff_32(coeff2, coeff2_abs, round, quant, quant_shift,
|
|
||||||
zero_mask2);
|
|
||||||
|
|
||||||
- vec_vsx_st(qcoeff0, off0, qcoeff_ptr);
|
|
||||||
- vec_vsx_st(qcoeff1, off1, qcoeff_ptr);
|
|
||||||
- vec_vsx_st(qcoeff2, off2, qcoeff_ptr);
|
|
||||||
-
|
|
||||||
- vec_vsx_st(dequantize_coeff_32(qcoeff0, dequant), off0, dqcoeff_ptr);
|
|
||||||
- vec_vsx_st(dequantize_coeff_32(qcoeff1, dequant), off1, dqcoeff_ptr);
|
|
||||||
- vec_vsx_st(dequantize_coeff_32(qcoeff2, dequant), off2, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff0, off0, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff1, off1, qcoeff_ptr);
|
|
||||||
+ vec_u64_store(qcoeff2, off2, qcoeff_ptr);
|
|
||||||
+
|
|
||||||
+ vec_u64_store(dequantize_coeff_32(qcoeff0, dequant), off0, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dequantize_coeff_32(qcoeff1, dequant), off1, dqcoeff_ptr);
|
|
||||||
+ vec_u64_store(dequantize_coeff_32(qcoeff2, dequant), off2, dqcoeff_ptr);
|
|
||||||
|
|
||||||
eob = vec_max(eob, nonzero_scanindex(qcoeff0, iscan_ptr, off0));
|
|
||||||
eob2 = vec_max(nonzero_scanindex(qcoeff1, iscan_ptr, off1),
|
|
@ -1,107 +0,0 @@
|
|||||||
From 1d44643a7c7cf650efd1093d22cd5bf859fdcb51 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawnanastasio@yahoo.com>
|
|
||||||
Date: Thu, 9 Aug 2018 20:52:13 -0500
|
|
||||||
Subject: [PATCH] sandbox/linux/seccomp-bpf: Add ppc64 syscall stub
|
|
||||||
|
|
||||||
---
|
|
||||||
sandbox/linux/seccomp-bpf/syscall.cc | 53 ++++++++++++++++++++++++++--
|
|
||||||
1 file changed, 51 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf/syscall.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf/syscall.cc
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf/syscall.cc
|
|
||||||
@@ -23,7 +23,7 @@ namespace sandbox {
|
|
||||||
namespace {
|
|
||||||
|
|
||||||
#if defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARM_FAMILY) || \
|
|
||||||
- defined(ARCH_CPU_MIPS_FAMILY)
|
|
||||||
+ defined(ARCH_CPU_MIPS_FAMILY) || defined (ARCH_CPU_PPC64_FAMILY)
|
|
||||||
// Number that's not currently used by any Linux kernel ABIs.
|
|
||||||
const int kInvalidSyscallNumber = 0x351d3;
|
|
||||||
#else
|
|
||||||
@@ -313,10 +313,54 @@ asm(// We need to be able to tell the ke
|
|
||||||
"2:ret\n"
|
|
||||||
".cfi_endproc\n"
|
|
||||||
".size SyscallAsm, .-SyscallAsm\n"
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ ".text\n"
|
|
||||||
+ ".align 4\n"
|
|
||||||
+ ".type SyscallAsm @function\n"
|
|
||||||
+ "SyscallAsm:\n"
|
|
||||||
+ ".cfi_startproc\n"
|
|
||||||
+
|
|
||||||
+ // Check if r3 is negative
|
|
||||||
+ "cmpdi 3, 0\n"
|
|
||||||
+ "bgt 2f\n"
|
|
||||||
+
|
|
||||||
+ // Load address of 3f into r3 and return
|
|
||||||
+ "mflr 10\n"
|
|
||||||
+ "bl 1f\n"
|
|
||||||
+ "1: mflr 3\n"
|
|
||||||
+ "mtlr 10\n"
|
|
||||||
+ "addi 3, 3, 4*13\n"
|
|
||||||
+ "blr\n"
|
|
||||||
+
|
|
||||||
+ // Load arguments from array into r3-8
|
|
||||||
+ // save param 3 in r10
|
|
||||||
+ "2:\n"
|
|
||||||
+ "mr 0, 3\n"
|
|
||||||
+ "ld 3, 0(4)\n"
|
|
||||||
+ "ld 5, 16(4)\n"
|
|
||||||
+ "ld 6, 24(4)\n"
|
|
||||||
+ "ld 7, 32(4)\n"
|
|
||||||
+ "ld 8, 40(4)\n"
|
|
||||||
+ "ld 4, 8(4)\n"
|
|
||||||
+ "li 9, 0\n"
|
|
||||||
+
|
|
||||||
+ // Enter kernel
|
|
||||||
+ "sc\n"
|
|
||||||
+
|
|
||||||
+ // Magic return address
|
|
||||||
+ "3:\n"
|
|
||||||
+ // Like MIPS, ppc64 return values are always positive.
|
|
||||||
+ // Check for error in cr0.SO and negate upon error
|
|
||||||
+ "bc 4, 3, 4f\n"
|
|
||||||
+ "neg 3, 3\n"
|
|
||||||
+ "4: blr\n"
|
|
||||||
+
|
|
||||||
+ ".cfi_endproc\n"
|
|
||||||
+ ".size SyscallAsm, .-SyscallAsm\n"
|
|
||||||
#endif
|
|
||||||
); // asm
|
|
||||||
|
|
||||||
-#if defined(__x86_64__)
|
|
||||||
+#if defined(__x86_64__) || defined(__powerpc64__)
|
|
||||||
extern "C" {
|
|
||||||
intptr_t SyscallAsm(intptr_t nr, const intptr_t args[6]);
|
|
||||||
}
|
|
||||||
@@ -430,6 +474,8 @@ intptr_t Syscall::Call(int nr,
|
|
||||||
ret = inout;
|
|
||||||
}
|
|
||||||
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+ intptr_t ret = SyscallAsm(nr, args);
|
|
||||||
#else
|
|
||||||
#error "Unimplemented architecture"
|
|
||||||
#endif
|
|
||||||
@@ -446,8 +492,18 @@ void Syscall::PutValueInUcontext(intptr_
|
|
||||||
// needs to be changed back.
|
|
||||||
ret_val = -ret_val;
|
|
||||||
SECCOMP_PARM4(ctx) = 1;
|
|
||||||
- } else
|
|
||||||
+ } else {
|
|
||||||
SECCOMP_PARM4(ctx) = 0;
|
|
||||||
+ }
|
|
||||||
+#endif
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ // Same as MIPS, need to invert ret and set error register (cr0.SO)
|
|
||||||
+ if (ret_val <= -1 && ret_val >= -4095) {
|
|
||||||
+ ret_val = -ret_val;
|
|
||||||
+ ctx->uc_mcontext.regs->ccr |= (1 << 28);
|
|
||||||
+ } else {
|
|
||||||
+ ctx->uc_mcontext.regs->ccr &= ~(1 << 28);
|
|
||||||
+ }
|
|
||||||
#endif
|
|
||||||
SECCOMP_RESULT(ctx) = static_cast<greg_t>(ret_val);
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
From 6a852c4135864ba87b3cbdd0880d7cfecf7cd654 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shawn Anastasio <shawnanastasio@yahoo.com>
|
|
||||||
Date: Thu, 13 Sep 2018 15:12:22 -0500
|
|
||||||
Subject: [PATCH 5/6] sandbox/linux: update unit test for ppc64
|
|
||||||
|
|
||||||
---
|
|
||||||
sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
|
|
||||||
@@ -350,8 +350,10 @@ TEST_BASELINE_SIGSYS(__NR_timer_create)
|
|
||||||
|
|
||||||
#if !defined(__aarch64__)
|
|
||||||
TEST_BASELINE_SIGSYS(__NR_inotify_init)
|
|
||||||
+#if !defined(__powerpc64__)
|
|
||||||
TEST_BASELINE_SIGSYS(__NR_vserver)
|
|
||||||
#endif
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
#if defined(LIBC_GLIBC) && !BUILDFLAG(IS_CHROMEOS_ASH)
|
|
||||||
BPF_TEST_C(BaselinePolicy, FutexEINVAL, BaselinePolicy) {
|
|
@ -1,14 +0,0 @@
|
|||||||
Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
|
|
||||||
@@ -374,7 +374,9 @@ bool SyscallSets::IsAllowedSignalHandlin
|
|
||||||
#if defined(__i386__) || defined(__arm__) || \
|
|
||||||
(defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
|
|
||||||
defined(__powerpc64__)
|
|
||||||
+#if !defined(__powerpc64__)
|
|
||||||
case __NR_rt_sigtimedwait_time64:
|
|
||||||
+#endif
|
|
||||||
case __NR_sigaction:
|
|
||||||
case __NR_sigprocmask:
|
|
||||||
case __NR_sigreturn:
|
|
@ -1,33 +0,0 @@
|
|||||||
Index: chromium-128.0.6613.113/sandbox/linux/system_headers/linux_stat.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/sandbox/linux/system_headers/linux_stat.h
|
|
||||||
+++ chromium-128.0.6613.113/sandbox/linux/system_headers/linux_stat.h
|
|
||||||
@@ -173,6 +173,28 @@ struct kernel_stat {
|
|
||||||
unsigned int __unused4;
|
|
||||||
unsigned int __unused5;
|
|
||||||
};
|
|
||||||
+#elif defined(__powerpc64__)
|
|
||||||
+struct kernel_stat {
|
|
||||||
+ unsigned long st_dev;
|
|
||||||
+ ino_t st_ino;
|
|
||||||
+ unsigned long st_nlink;
|
|
||||||
+ mode_t st_mode;
|
|
||||||
+ uid_t st_uid;
|
|
||||||
+ gid_t st_gid;
|
|
||||||
+ unsigned long st_rdev;
|
|
||||||
+ long st_size;
|
|
||||||
+ unsigned long st_blksize;
|
|
||||||
+ unsigned long st_blocks;
|
|
||||||
+ // unsigned long st_atime;
|
|
||||||
+ unsigned long st_atime_nsec;
|
|
||||||
+ //unsigned long st_mtime;
|
|
||||||
+ unsigned long st_mtime_nsec;
|
|
||||||
+ //unsigned long st_ctime;
|
|
||||||
+ unsigned long st_ctime_nsec;
|
|
||||||
+ unsigned long __unused4;
|
|
||||||
+ unsigned long __unused5;
|
|
||||||
+ unsigned long __unused6;
|
|
||||||
+};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(AT_EMPTY_PATH)
|
|
@ -1,90 +0,0 @@
|
|||||||
Index: chromium-130.0.6723.44/sandbox/policy/linux/bpf_utility_policy_linux.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc
|
|
||||||
+++ chromium-130.0.6723.44/sandbox/policy/linux/bpf_utility_policy_linux.cc
|
|
||||||
@@ -34,7 +34,7 @@ ResultExpr UtilityProcessPolicy::Evaluat
|
|
||||||
case __NR_fdatasync:
|
|
||||||
case __NR_fsync:
|
|
||||||
#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
|
|
||||||
- defined(__aarch64__)
|
|
||||||
+ defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
case __NR_getrlimit:
|
|
||||||
#endif
|
|
||||||
#if defined(__i386__) || defined(__arm__)
|
|
||||||
Index: chromium-130.0.6723.44/sandbox/policy/linux/bpf_renderer_policy_linux.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc
|
|
||||||
+++ chromium-130.0.6723.44/sandbox/policy/linux/bpf_renderer_policy_linux.cc
|
|
||||||
@@ -87,7 +87,7 @@ ResultExpr RendererProcessPolicy::Evalua
|
|
||||||
case __NR_ftruncate64:
|
|
||||||
#endif
|
|
||||||
#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
|
|
||||||
- defined(__aarch64__)
|
|
||||||
+ defined(__aarch64__) || defined(__powerpc64__)
|
|
||||||
case __NR_getrlimit:
|
|
||||||
case __NR_setrlimit:
|
|
||||||
// We allow setrlimit to dynamically adjust the address space limit as
|
|
||||||
Index: chromium-130.0.6723.44/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
|
|
||||||
+++ chromium-130.0.6723.44/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
|
|
||||||
@@ -58,9 +58,9 @@
|
|
||||||
|
|
||||||
#elif defined(__powerpc64__)
|
|
||||||
|
|
||||||
-#include <asm/unistd.h>
|
|
||||||
+#include <asm-generic/unistd.h>
|
|
||||||
#define MIN_SYSCALL 0u
|
|
||||||
-#define MAX_PUBLIC_SYSCALL 386u
|
|
||||||
+#define MAX_PUBLIC_SYSCALL __NR_syscalls
|
|
||||||
#define MAX_SYSCALL MAX_PUBLIC_SYSCALL
|
|
||||||
|
|
||||||
#else
|
|
||||||
Index: chromium-130.0.6723.44/sandbox/linux/services/credentials.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/sandbox/linux/services/credentials.cc
|
|
||||||
+++ chromium-130.0.6723.44/sandbox/linux/services/credentials.cc
|
|
||||||
@@ -96,7 +96,8 @@ bool ChrootToSafeEmptyDir() {
|
|
||||||
|
|
||||||
int clone_flags = CLONE_FS | LINUX_SIGCHLD;
|
|
||||||
void* tls = nullptr;
|
|
||||||
-#if (defined(ARCH_CPU_X86_64) || defined(ARCH_CPU_ARM_FAMILY)) && \
|
|
||||||
+#if (defined(ARCH_CPU_X86_64) || defined(ARCH_CPU_ARM_FAMILY) || \
|
|
||||||
+ defined(ARCH_CPU_PPC64_FAMILY)) && \
|
|
||||||
!defined(MEMORY_SANITIZER)
|
|
||||||
// Use CLONE_VM | CLONE_VFORK as an optimization to avoid copying page tables.
|
|
||||||
// Since clone writes to the new child's TLS before returning, we must set a
|
|
||||||
@@ -104,6 +105,11 @@ bool ChrootToSafeEmptyDir() {
|
|
||||||
// glibc performs syscalls by calling a function pointer in TLS, so we do not
|
|
||||||
// attempt this optimization.
|
|
||||||
// TODO(crbug.com/40196869) Broken in MSan builds after LLVM f1bb30a4956f.
|
|
||||||
+ //
|
|
||||||
+ // NOTE: Without CLONE_VM, fontconfig will attempt to reload configuration
|
|
||||||
+ // in every thread. Since the rendered threads are sandboxed without
|
|
||||||
+ // filesystem access (e.g. to /etc/fonts/fonts.conf) this will cause font
|
|
||||||
+ // configuration loading failures and no fonts will be displayed!
|
|
||||||
clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS;
|
|
||||||
|
|
||||||
char tls_buf[PTHREAD_STACK_MIN_CONST] = {0};
|
|
||||||
Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
|
|
||||||
+++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
|
|
||||||
@@ -362,7 +362,16 @@ intptr_t SIGSYSFstatatHandler(const stru
|
|
||||||
if (args.nr == __NR_fstatat_default) {
|
|
||||||
if (*reinterpret_cast<const char*>(args.args[1]) == '\0' &&
|
|
||||||
args.args[3] == static_cast<uint64_t>(AT_EMPTY_PATH)) {
|
|
||||||
- return syscall(__NR_fstat_default, static_cast<int>(args.args[0]),
|
|
||||||
+ int fd = static_cast<int>(args.args[0]);
|
|
||||||
+#if defined(__powerpc64__)
|
|
||||||
+ // On ppc64+glibc, some syscalls seem to accidentally negate the first
|
|
||||||
+ // parameter which causes checks against it to fail. For now, manually
|
|
||||||
+ // negate them back.
|
|
||||||
+ // TODO: Investigate the root cause and fix in glibc
|
|
||||||
+ if (fd < 0)
|
|
||||||
+ fd = -fd;
|
|
||||||
+#endif
|
|
||||||
+ return syscall(__NR_fstat_default, fd,
|
|
||||||
reinterpret_cast<default_stat_struct*>(args.args[2]));
|
|
||||||
}
|
|
||||||
return -reinterpret_cast<intptr_t>(fs_denied_errno);
|
|
@ -1,24 +0,0 @@
|
|||||||
diff -up chromium-131.0.6778.69/base/compiler_specific.h.me chromium-131.0.6778.69/base/compiler_specific.h
|
|
||||||
--- chromium-131.0.6778.69/base/compiler_specific.h.me 2024-11-19 20:44:12.404060581 +0100
|
|
||||||
+++ chromium-131.0.6778.69/base/compiler_specific.h 2024-11-19 20:44:54.434121935 +0100
|
|
||||||
@@ -152,7 +152,7 @@
|
|
||||||
// MUSTTAIL return Func1(d + 1); // `Func1()` will be tail-called.
|
|
||||||
// }
|
|
||||||
// ```
|
|
||||||
-#if __has_cpp_attribute(clang::musttail)
|
|
||||||
+#if __has_cpp_attribute(clang::musttail) && !defined(__powerpc64__)
|
|
||||||
#define MUSTTAIL [[clang::musttail]]
|
|
||||||
#else
|
|
||||||
#define MUSTTAIL
|
|
||||||
diff -up chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h.me chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h
|
|
||||||
--- chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h.me 2024-11-20 18:50:28.690761262 +0100
|
|
||||||
+++ chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h 2024-11-20 18:54:49.374711202 +0100
|
|
||||||
@@ -138,7 +138,7 @@
|
|
||||||
// PA_MUSTTAIL return Func1(d + 1); // `Func1()` will be tail-called.
|
|
||||||
// }
|
|
||||||
// ```
|
|
||||||
-#if PA_HAS_CPP_ATTRIBUTE(clang::musttail)
|
|
||||||
+#if PA_HAS_CPP_ATTRIBUTE(clang::musttail) && !defined(__powerpc64__)
|
|
||||||
#define PA_MUSTTAIL [[clang::musttail]]
|
|
||||||
#else
|
|
||||||
#define PA_MUSTTAIL
|
|
@ -1,13 +0,0 @@
|
|||||||
Index: chromium-130.0.6723.44/third_party/skia/src/core/SkRasterPipeline.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkRasterPipeline.h
|
|
||||||
+++ chromium-130.0.6723.44/third_party/skia/src/core/SkRasterPipeline.h
|
|
||||||
@@ -27,7 +27,7 @@ struct SkImageInfo;
|
|
||||||
struct skcms_TransferFunction;
|
|
||||||
|
|
||||||
#if __has_cpp_attribute(clang::musttail) && !defined(__EMSCRIPTEN__) && !defined(SK_CPU_ARM32) && \
|
|
||||||
- !defined(SK_CPU_LOONGARCH) && !(defined(_WIN32) && defined(SK_BUILD_FOR_ANDROID_FRAMEWORK))
|
|
||||||
+ !defined(SK_CPU_LOONGARCH) && !(defined(_WIN32) && defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)) && !defined(__powerpc64__)
|
|
||||||
// [[clang::musttail]] is disabled for the Android version of Skia running on Windows as it
|
|
||||||
// causes crashes (This is probably related to http://crbug.com/1505442).
|
|
||||||
#define SK_HAS_MUSTTAIL 1
|
|
@ -1,48 +0,0 @@
|
|||||||
Index: chromium-130.0.6723.44/third_party/libvpx/generate_gni.sh
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/libvpx/generate_gni.sh
|
|
||||||
+++ chromium-130.0.6723.44/third_party/libvpx/generate_gni.sh
|
|
||||||
@@ -433,7 +433,7 @@ gen_config_files linux/mipsel "--target=
|
|
||||||
gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}"
|
|
||||||
gen_config_files linux/loongarch \
|
|
||||||
"--target=loongarch64-linux-gcc ${all_platforms}"
|
|
||||||
-gen_config_files linux/ppc64 "--target=ppc64le-linux-gcc ${all_platforms}"
|
|
||||||
+gen_config_files linux/ppc64 "--target=generic-gnu $HIGHBD ${all_platforms}"
|
|
||||||
gen_config_files linux/generic "--target=generic-gnu $HIGHBD ${all_platforms}"
|
|
||||||
gen_config_files win/arm64-highbd \
|
|
||||||
"--target=arm64-win64-vs15 ${all_platforms} ${HIGHBD} ${disable_sve}"
|
|
||||||
Index: chromium-130.0.6723.44/third_party/libvpx/source/libvpx/build/make/rtcd.pl
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl
|
|
||||||
+++ chromium-130.0.6723.44/third_party/libvpx/source/libvpx/build/make/rtcd.pl
|
|
||||||
@@ -509,8 +509,9 @@ if ($opts{arch} eq 'x86') {
|
|
||||||
&require(@REQUIRES);
|
|
||||||
arm;
|
|
||||||
} elsif ($opts{arch} =~ /^ppc/ ) {
|
|
||||||
- @ALL_ARCHS = filter(qw/vsx/);
|
|
||||||
- ppc;
|
|
||||||
+ #@ALL_ARCHS = filter(qw/vsx/);
|
|
||||||
+ #ppc;
|
|
||||||
+ unoptimized;
|
|
||||||
} elsif ($opts{arch} =~ /loongarch/ ) {
|
|
||||||
@ALL_ARCHS = filter(qw/lsx lasx/);
|
|
||||||
loongarch;
|
|
||||||
Index: chromium-130.0.6723.44/third_party/libvpx/BUILD.gn
|
|
||||||
===================================================================
|
|
||||||
--- chromium-130.0.6723.44.orig/third_party/libvpx/BUILD.gn
|
|
||||||
+++ chromium-130.0.6723.44/third_party/libvpx/BUILD.gn
|
|
||||||
@@ -102,6 +102,14 @@ config("libvpx_config") {
|
|
||||||
"-Wno-sign-compare",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ if (current_cpu == "ppc64") {
|
|
||||||
+ cflags += [
|
|
||||||
+ "-mcpu=power8",
|
|
||||||
+ "-maltivec",
|
|
||||||
+ "-mvsx",
|
|
||||||
+ ]
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
# This config is applied to targets that depend on libvpx.
|
|
@ -1,23 +0,0 @@
|
|||||||
Index: chromium-128.0.6613.113/third_party/webrtc/rtc_base/system/arch.h
|
|
||||||
===================================================================
|
|
||||||
--- chromium-128.0.6613.113.orig/third_party/webrtc/rtc_base/system/arch.h
|
|
||||||
+++ chromium-128.0.6613.113/third_party/webrtc/rtc_base/system/arch.h
|
|
||||||
@@ -46,6 +46,18 @@
|
|
||||||
#endif
|
|
||||||
#if defined(__MIPSEL__)
|
|
||||||
#define WEBRTC_ARCH_LITTLE_ENDIAN
|
|
||||||
+#elif defined(__PPC__)
|
|
||||||
+#define WEBRTC_ARCH_PPC_FAMILY
|
|
||||||
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
|
||||||
+#define WEBRTC_ARCH_LITTLE_ENDIAN
|
|
||||||
+#else
|
|
||||||
+#define WEBRTC_ARCH_BIG_ENDIAN
|
|
||||||
+#endif
|
|
||||||
+#if defined(__LP64__)
|
|
||||||
+#define WEBRTC_ARCH_64_BITS
|
|
||||||
+#else
|
|
||||||
+#define WEBRTC_ARCH_32_BITS
|
|
||||||
+#endif
|
|
||||||
#else
|
|
||||||
#define WEBRTC_ARCH_BIG_ENDIAN
|
|
||||||
#endif
|
|
@ -0,0 +1,145 @@
|
|||||||
|
From a3f478e7c8b93c6aad5db97f43560db46492c5ea Mon Sep 17 00:00:00 2001
|
||||||
|
From: tigro <arkadiy.sheyn@softline.com>
|
||||||
|
Date: Thu, 2 Nov 2023 18:55:06 +0300
|
||||||
|
Subject: [PATCH] Yandex as default search engine
|
||||||
|
|
||||||
|
---
|
||||||
|
.../search_engines/prepopulated_engines.json | 11 +++++----
|
||||||
|
.../template_url_prepopulate_data.cc | 24 +++++++++++--------
|
||||||
|
2 files changed, 20 insertions(+), 15 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/components/search_engines/prepopulated_engines.json b/components/search_engines/prepopulated_engines.json
|
||||||
|
index 8ab6a40d2e..eded2b55e1 100644
|
||||||
|
--- a/components/search_engines/prepopulated_engines.json
|
||||||
|
+++ b/components/search_engines/prepopulated_engines.json
|
||||||
|
@@ -639,7 +639,7 @@
|
||||||
|
"suggest_url": "https://suggest.yandex.by/suggest-ff.cgi?part={searchTerms}&{google:cursorPosition}",
|
||||||
|
"image_url": "https://yandex.by/images/search/?rpt=imageview",
|
||||||
|
"image_url_post_params": "upfile={google:imageThumbnail},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight},prg=1",
|
||||||
|
- "new_tab_url": "https://www.yandex.by/chrome/newtab",
|
||||||
|
+ "new_tab_url": "chrome://new-tab-page",
|
||||||
|
"type": "SEARCH_ENGINE_YANDEX",
|
||||||
|
"id": 15
|
||||||
|
},
|
||||||
|
@@ -652,6 +652,7 @@
|
||||||
|
"suggest_url": "https://suggest.yandex.com/suggest-ff.cgi?part={searchTerms}&{google:cursorPosition}&uil=en&v=3&sn=5",
|
||||||
|
"image_url": "https://yandex.com/images/search?rpt=imageview",
|
||||||
|
"image_url_post_params": "upfile={google:imageThumbnail},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight},prg=1",
|
||||||
|
+ "new_tab_url": "chrome://new-tab-page",
|
||||||
|
"type": "SEARCH_ENGINE_YANDEX",
|
||||||
|
"id": 15
|
||||||
|
},
|
||||||
|
@@ -665,7 +666,7 @@
|
||||||
|
"suggest_url": "https://suggest.yandex.kz/suggest-ff.cgi?part={searchTerms}&{google:cursorPosition}",
|
||||||
|
"image_url": "https://yandex.kz/images/search/?rpt=imageview",
|
||||||
|
"image_url_post_params": "upfile={google:imageThumbnail},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight},prg=1",
|
||||||
|
- "new_tab_url": "https://www.yandex.kz/chrome/newtab",
|
||||||
|
+ "new_tab_url": "chrome://new-tab-page",
|
||||||
|
"type": "SEARCH_ENGINE_YANDEX",
|
||||||
|
"id": 15
|
||||||
|
},
|
||||||
|
@@ -679,7 +680,7 @@
|
||||||
|
"suggest_url": "https://suggest.yandex.ru/suggest-ff.cgi?part={searchTerms}&{google:cursorPosition}",
|
||||||
|
"image_url": "https://yandex.ru/images/search/?rpt=imageview",
|
||||||
|
"image_url_post_params": "upfile={google:imageThumbnail},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight},prg=1",
|
||||||
|
- "new_tab_url": "https://www.yandex.ru/chrome/newtab",
|
||||||
|
+ "new_tab_url": "chrome://new-tab-page",
|
||||||
|
"type": "SEARCH_ENGINE_YANDEX",
|
||||||
|
"id": 15
|
||||||
|
},
|
||||||
|
@@ -692,7 +693,7 @@
|
||||||
|
"suggest_url": "https://suggest.yandex.com.tr/suggest-ff.cgi?part={searchTerms}&{google:cursorPosition}",
|
||||||
|
"image_url": "https://yandex.com.tr/gorsel/search?rpt=imageview",
|
||||||
|
"image_url_post_params": "upfile={google:imageThumbnail},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight},prg=1",
|
||||||
|
- "new_tab_url": "https://www.yandex.com.tr/chrome/newtab",
|
||||||
|
+ "new_tab_url": "chrome://new-tab-page",
|
||||||
|
"type": "SEARCH_ENGINE_YANDEX",
|
||||||
|
"id": 15
|
||||||
|
},
|
||||||
|
@@ -706,7 +707,7 @@
|
||||||
|
"suggest_url": "https://suggest.yandex.ua/suggest-ff.cgi?part={searchTerms}&{google:cursorPosition}",
|
||||||
|
"image_url": "https://yandex.ua/images/search/?rpt=imageview",
|
||||||
|
"image_url_post_params": "upfile={google:imageThumbnail},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight},prg=1",
|
||||||
|
- "new_tab_url": "https://www.yandex.ua/chrome/newtab",
|
||||||
|
+ "new_tab_url": "chrome://new-tab-page",
|
||||||
|
"type": "SEARCH_ENGINE_YANDEX",
|
||||||
|
"id": 15
|
||||||
|
},
|
||||||
|
diff --git a/components/search_engines/template_url_prepopulate_data.cc b/components/search_engines/template_url_prepopulate_data.cc
|
||||||
|
index 315fa0bc59..08952eec6d 100644
|
||||||
|
--- a/components/search_engines/template_url_prepopulate_data.cc
|
||||||
|
+++ b/components/search_engines/template_url_prepopulate_data.cc
|
||||||
|
@@ -56,6 +56,7 @@ struct EngineAndTier {
|
||||||
|
|
||||||
|
// Default (for countries with no better engine set)
|
||||||
|
constexpr EngineAndTier engines_default[] = {
|
||||||
|
+ {SearchEngineTier::kTopEngines, &yandex_com},
|
||||||
|
{SearchEngineTier::kTopEngines, &google},
|
||||||
|
{SearchEngineTier::kTopEngines, &bing},
|
||||||
|
{SearchEngineTier::kTopEngines, &yahoo},
|
||||||
|
@@ -209,8 +210,8 @@ constexpr EngineAndTier engines_BR[] = {
|
||||||
|
|
||||||
|
// Belarus
|
||||||
|
constexpr EngineAndTier engines_BY[] = {
|
||||||
|
- {SearchEngineTier::kTopEngines, &google},
|
||||||
|
{SearchEngineTier::kTopEngines, &yandex_by},
|
||||||
|
+ {SearchEngineTier::kTopEngines, &google},
|
||||||
|
{SearchEngineTier::kTopEngines, &bing},
|
||||||
|
{SearchEngineTier::kTopEngines, &duckduckgo},
|
||||||
|
{SearchEngineTier::kTopEngines, &mail_ru},
|
||||||
|
@@ -597,9 +598,9 @@ constexpr EngineAndTier engines_IN[] = {
|
||||||
|
|
||||||
|
// Iraq
|
||||||
|
constexpr EngineAndTier engines_IQ[] = {
|
||||||
|
+ {SearchEngineTier::kTopEngines, &yandex_tr},
|
||||||
|
{SearchEngineTier::kTopEngines, &google},
|
||||||
|
{SearchEngineTier::kTopEngines, &bing},
|
||||||
|
- {SearchEngineTier::kTopEngines, &yandex_tr},
|
||||||
|
{SearchEngineTier::kTopEngines, &yahoo},
|
||||||
|
{SearchEngineTier::kTopEngines, &duckduckgo},
|
||||||
|
};
|
||||||
|
@@ -702,8 +703,8 @@ constexpr EngineAndTier engines_KW[] = {
|
||||||
|
|
||||||
|
// Kazakhstan
|
||||||
|
constexpr EngineAndTier engines_KZ[] = {
|
||||||
|
- {SearchEngineTier::kTopEngines, &google},
|
||||||
|
{SearchEngineTier::kTopEngines, &yandex_kz},
|
||||||
|
+ {SearchEngineTier::kTopEngines, &google},
|
||||||
|
{SearchEngineTier::kTopEngines, &bing},
|
||||||
|
{SearchEngineTier::kTopEngines, &mail_ru},
|
||||||
|
{SearchEngineTier::kTopEngines, &yahoo},
|
||||||
|
@@ -1172,8 +1173,8 @@ constexpr EngineAndTier engines_TN[] = {
|
||||||
|
|
||||||
|
// Turkey
|
||||||
|
constexpr EngineAndTier engines_TR[] = {
|
||||||
|
- {SearchEngineTier::kTopEngines, &google},
|
||||||
|
{SearchEngineTier::kTopEngines, &yandex_tr},
|
||||||
|
+ {SearchEngineTier::kTopEngines, &google},
|
||||||
|
{SearchEngineTier::kTopEngines, &yahoo_tr},
|
||||||
|
{SearchEngineTier::kTopEngines, &bing},
|
||||||
|
{SearchEngineTier::kTopEngines, &duckduckgo},
|
||||||
|
@@ -1774,12 +1775,15 @@ std::vector<std::unique_ptr<TemplateURLData>> GetPrepopulatedEngines(
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- if (default_search_provider_index) {
|
||||||
|
- const auto itr =
|
||||||
|
- base::ranges::find(t_urls, google.id, &TemplateURLData::prepopulate_id);
|
||||||
|
- *default_search_provider_index =
|
||||||
|
- itr == t_urls.end() ? 0 : std::distance(t_urls.begin(), itr);
|
||||||
|
- }
|
||||||
|
+ /* Making yandex_ru be the first in "const PrepopulatedEngine* const engines_RU[]"
|
||||||
|
+ * makes it be the first item in chrome://settings/search,
|
||||||
|
+ * but Google is still chosen by default.
|
||||||
|
+ * Removed code calculated the distance between 0 and Google's position
|
||||||
|
+ * and assign that position to default_search_provider_index,
|
||||||
|
+ * so that Google still was the default search engine.
|
||||||
|
+ * Instead, just use the first search engine as the default one.
|
||||||
|
+ */
|
||||||
|
+ if (default_search_provider_index) *default_search_provider_index = 0;
|
||||||
|
return t_urls;
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.41.0
|
||||||
|
|
After Width: | Height: | Size: 3.1 KiB |
@ -0,0 +1,12 @@
|
|||||||
|
diff -up chromium-101.0.4951.41/content/common/user_agent.cc.fedora-user-agent chromium-101.0.4951.41/content/common/user_agent.cc
|
||||||
|
--- chromium-101.0.4951.41/content/common/user_agent.cc.fedora-user-agent 2022-04-27 20:03:36.913767022 +0000
|
||||||
|
+++ chromium-101.0.4951.41/content/common/user_agent.cc 2022-04-27 20:04:30.591942420 +0000
|
||||||
|
@@ -34,7 +34,7 @@ std::string GetUserAgentPlatform() {
|
||||||
|
#elif BUILDFLAG(IS_MAC)
|
||||||
|
return "Macintosh; ";
|
||||||
|
#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
||||||
|
- return "X11; "; // strange, but that's what Firefox uses
|
||||||
|
+ return "X11; Fedora; "; // strange, but that's what Firefox uses
|
||||||
|
#elif BUILDFLAG(IS_ANDROID)
|
||||||
|
return "Linux; ";
|
||||||
|
#elif BUILDFLAG(IS_FUCHSIA)
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,134 @@
|
|||||||
|
diff -up chromium-103.0.5060.53/third_party/catapult/third_party/six/six.py.116 chromium-103.0.5060.53/third_party/catapult/third_party/six/six.py
|
||||||
|
--- chromium-103.0.5060.53/third_party/catapult/third_party/six/six.py.116 2022-07-05 13:31:29.434673638 +0000
|
||||||
|
+++ chromium-103.0.5060.53/third_party/catapult/third_party/six/six.py 2022-07-05 21:52:01.884578748 +0000
|
||||||
|
@@ -29,7 +29,7 @@ import sys
|
||||||
|
import types
|
||||||
|
|
||||||
|
__author__ = "Benjamin Peterson <benjamin@python.org>"
|
||||||
|
-__version__ = "1.15.0"
|
||||||
|
+__version__ = "1.16.0"
|
||||||
|
|
||||||
|
|
||||||
|
# Useful for very coarse version differentiation.
|
||||||
|
@@ -71,6 +71,11 @@ else:
|
||||||
|
MAXSIZE = int((1 << 63) - 1)
|
||||||
|
del X
|
||||||
|
|
||||||
|
+if PY34:
|
||||||
|
+ from importlib.util import spec_from_loader
|
||||||
|
+else:
|
||||||
|
+ spec_from_loader = None
|
||||||
|
+
|
||||||
|
|
||||||
|
def _add_doc(func, doc):
|
||||||
|
"""Add documentation to a function."""
|
||||||
|
@@ -186,6 +191,11 @@ class _SixMetaPathImporter(object):
|
||||||
|
return self
|
||||||
|
return None
|
||||||
|
|
||||||
|
+ def find_spec(self, fullname, path, target=None):
|
||||||
|
+ if fullname in self.known_modules:
|
||||||
|
+ return spec_from_loader(fullname, self)
|
||||||
|
+ return None
|
||||||
|
+
|
||||||
|
def __get_module(self, fullname):
|
||||||
|
try:
|
||||||
|
return self.known_modules[fullname]
|
||||||
|
@@ -223,6 +233,12 @@ class _SixMetaPathImporter(object):
|
||||||
|
return None
|
||||||
|
get_source = get_code # same as get_code
|
||||||
|
|
||||||
|
+ def create_module(self, spec):
|
||||||
|
+ return self.load_module(spec.name)
|
||||||
|
+
|
||||||
|
+ def exec_module(self, module):
|
||||||
|
+ pass
|
||||||
|
+
|
||||||
|
_importer = _SixMetaPathImporter(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
diff -up chromium-103.0.5060.53/third_party/six/src/six.py.116 chromium-103.0.5060.53/third_party/six/src/six.py
|
||||||
|
--- chromium-103.0.5060.53/third_party/six/src/six.py.116 2022-07-05 13:32:28.916687658 +0000
|
||||||
|
+++ chromium-103.0.5060.53/third_party/six/src/six.py 2022-07-05 21:59:42.561240407 +0000
|
||||||
|
@@ -29,7 +29,7 @@ import sys
|
||||||
|
import types
|
||||||
|
|
||||||
|
__author__ = "Benjamin Peterson <benjamin@python.org>"
|
||||||
|
-__version__ = "1.14.0"
|
||||||
|
+__version__ = "1.16.0"
|
||||||
|
|
||||||
|
|
||||||
|
# Useful for very coarse version differentiation.
|
||||||
|
@@ -71,6 +71,11 @@ else:
|
||||||
|
MAXSIZE = int((1 << 63) - 1)
|
||||||
|
del X
|
||||||
|
|
||||||
|
+if PY34:
|
||||||
|
+ from importlib.util import spec_from_loader
|
||||||
|
+else:
|
||||||
|
+ spec_from_loader = None
|
||||||
|
+
|
||||||
|
|
||||||
|
def _add_doc(func, doc):
|
||||||
|
"""Add documentation to a function."""
|
||||||
|
@@ -186,6 +191,11 @@ class _SixMetaPathImporter(object):
|
||||||
|
return self
|
||||||
|
return None
|
||||||
|
|
||||||
|
+ def find_spec(self, fullname, path, target=None):
|
||||||
|
+ if fullname in self.known_modules:
|
||||||
|
+ return spec_from_loader(fullname, self)
|
||||||
|
+ return None
|
||||||
|
+
|
||||||
|
def __get_module(self, fullname):
|
||||||
|
try:
|
||||||
|
return self.known_modules[fullname]
|
||||||
|
@@ -223,6 +233,12 @@ class _SixMetaPathImporter(object):
|
||||||
|
return None
|
||||||
|
get_source = get_code # same as get_code
|
||||||
|
|
||||||
|
+ def create_module(self, spec):
|
||||||
|
+ return self.load_module(spec.name)
|
||||||
|
+
|
||||||
|
+ def exec_module(self, module):
|
||||||
|
+ pass
|
||||||
|
+
|
||||||
|
_importer = _SixMetaPathImporter(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@@ -890,12 +906,11 @@ def ensure_binary(s, encoding='utf-8', e
|
||||||
|
- `str` -> encoded to `bytes`
|
||||||
|
- `bytes` -> `bytes`
|
||||||
|
"""
|
||||||
|
+ if isinstance(s, binary_type):
|
||||||
|
+ return s
|
||||||
|
if isinstance(s, text_type):
|
||||||
|
return s.encode(encoding, errors)
|
||||||
|
- elif isinstance(s, binary_type):
|
||||||
|
- return s
|
||||||
|
- else:
|
||||||
|
- raise TypeError("not expecting type '%s'" % type(s))
|
||||||
|
+ raise TypeError("not expecting type '%s'" % type(s))
|
||||||
|
|
||||||
|
|
||||||
|
def ensure_str(s, encoding='utf-8', errors='strict'):
|
||||||
|
@@ -909,12 +924,15 @@ def ensure_str(s, encoding='utf-8', erro
|
||||||
|
- `str` -> `str`
|
||||||
|
- `bytes` -> decoded to `str`
|
||||||
|
"""
|
||||||
|
- if not isinstance(s, (text_type, binary_type)):
|
||||||
|
- raise TypeError("not expecting type '%s'" % type(s))
|
||||||
|
+ # Optimization: Fast return for the common case.
|
||||||
|
+ if type(s) is str:
|
||||||
|
+ return s
|
||||||
|
if PY2 and isinstance(s, text_type):
|
||||||
|
- s = s.encode(encoding, errors)
|
||||||
|
+ return s.encode(encoding, errors)
|
||||||
|
elif PY3 and isinstance(s, binary_type):
|
||||||
|
- s = s.decode(encoding, errors)
|
||||||
|
+ return s.decode(encoding, errors)
|
||||||
|
+ elif not isinstance(s, (text_type, binary_type)):
|
||||||
|
+ raise TypeError("not expecting type '%s'" % type(s))
|
||||||
|
return s
|
||||||
|
|
||||||
|
|
@ -0,0 +1,39 @@
|
|||||||
|
diff -up chromium-105.0.5195.52/build/linux/unbundle/libusb.gn.gnsystem chromium-105.0.5195.52/build/linux/unbundle/libusb.gn
|
||||||
|
--- chromium-105.0.5195.52/build/linux/unbundle/libusb.gn.gnsystem 2022-09-01 12:23:27.557313611 +0000
|
||||||
|
+++ chromium-105.0.5195.52/build/linux/unbundle/libusb.gn 2022-09-01 12:23:27.557313611 +0000
|
||||||
|
@@ -0,0 +1,24 @@
|
||||||
|
+# Copyright 2016 The Chromium Authors. All rights reserved.
|
||||||
|
+# Use of this source code is governed by a BSD-style license that can be
|
||||||
|
+# found in the LICENSE file.
|
||||||
|
+
|
||||||
|
+import("//build/config/linux/pkg_config.gni")
|
||||||
|
+import("//build/shim_headers.gni")
|
||||||
|
+
|
||||||
|
+pkg_config("system_libusb") {
|
||||||
|
+ packages = [ "libusb-1.0" ]
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+shim_headers("libusb_shim") {
|
||||||
|
+ root_path = "src/libusb"
|
||||||
|
+ headers = [
|
||||||
|
+ "libusb.h",
|
||||||
|
+ ]
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+source_set("libusb") {
|
||||||
|
+ deps = [
|
||||||
|
+ ":libusb_shim",
|
||||||
|
+ ]
|
||||||
|
+ public_configs = [ ":system_libusb" ]
|
||||||
|
+}
|
||||||
|
diff -up chromium-105.0.5195.52/build/linux/unbundle/replace_gn_files.py.gnsystem chromium-105.0.5195.52/build/linux/unbundle/replace_gn_files.py
|
||||||
|
--- chromium-105.0.5195.52/build/linux/unbundle/replace_gn_files.py.gnsystem 2022-09-01 12:23:27.558313577 +0000
|
||||||
|
+++ chromium-105.0.5195.52/build/linux/unbundle/replace_gn_files.py 2022-09-01 12:36:01.870847125 +0000
|
||||||
|
@@ -52,6 +52,7 @@ REPLACEMENTS = {
|
||||||
|
'libjpeg': 'third_party/libjpeg.gni',
|
||||||
|
'libjxl' : 'third_party/libjxl/BUILD.gn',
|
||||||
|
'libpng': 'third_party/libpng/BUILD.gn',
|
||||||
|
+ 'libusb': 'third_party/libusb/BUILD.gn',
|
||||||
|
'libvpx': 'third_party/libvpx/BUILD.gn',
|
||||||
|
'libwebp': 'third_party/libwebp/BUILD.gn',
|
||||||
|
'libxml': 'third_party/libxml/BUILD.gn',
|
@ -0,0 +1,36 @@
|
|||||||
|
diff -up chromium-108.0.5359.124/third_party/wayland/src/src/wayland-shm.c.me chromium-108.0.5359.124/third_party/wayland/src/src/wayland-shm.c
|
||||||
|
--- chromium-108.0.5359.124/third_party/wayland/src/src/wayland-shm.c.me 2022-12-24 11:08:03.212333476 +0100
|
||||||
|
+++ chromium-108.0.5359.124/third_party/wayland/src/src/wayland-shm.c 2022-12-24 11:08:18.316606155 +0100
|
||||||
|
@@ -44,7 +44,7 @@
|
||||||
|
#include <signal.h>
|
||||||
|
#include <pthread.h>
|
||||||
|
#include <errno.h>
|
||||||
|
-#include <fcntl.h>
|
||||||
|
+#include <linux/fcntl.h>
|
||||||
|
|
||||||
|
#include "wayland-os.h"
|
||||||
|
#include "wayland-util.h"
|
||||||
|
diff -up chromium-102.0.5005.115/v8/src/base/platform/platform-posix.cc.el7-memfd-include chromium-102.0.5005.115/v8/src/base/platform/platform-posix.cc
|
||||||
|
--- chromium-102.0.5005.115/v8/src/base/platform/platform-posix.cc.el7-memfd-include 2022-06-15 10:52:49.553817031 -0400
|
||||||
|
+++ chromium-102.0.5005.115/v8/src/base/platform/platform-posix.cc 2022-06-15 10:56:15.775173013 -0400
|
||||||
|
@@ -56,6 +56,7 @@
|
||||||
|
|
||||||
|
#if V8_OS_LINUX
|
||||||
|
#include <sys/prctl.h> // for prctl
|
||||||
|
+#include <linux/memfd.h> // for MFD_CLOEXEC
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(V8_OS_FUCHSIA)
|
||||||
|
diff -up iridium-browser-2022.12.108.1/third_party/wayland/src/cursor/os-compatibility.c.me iridium-browser-2022.12.108.1/third_party/wayland/src/cursor/os-compatibility.c
|
||||||
|
--- iridium-browser-2022.12.108.1/third_party/wayland/src/cursor/os-compatibility.c.me 2022-12-08 21:59:43.502200984 +0100
|
||||||
|
+++ iridium-browser-2022.12.108.1/third_party/wayland/src/cursor/os-compatibility.c 2022-12-08 22:13:53.375653343 +0100
|
||||||
|
@@ -29,7 +29,8 @@
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
-#include <fcntl.h>
|
||||||
|
+#include <linux/fcntl.h> // for F_SEAL_SHRINK, F_ADD_SEALS, F_SEAL_SEAL
|
||||||
|
+#include <linux/memfd.h> // for MFD_CLOEXEC
|
||||||
|
#include <errno.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#include <string.h>
|
@ -0,0 +1,11 @@
|
|||||||
|
diff -up chromium-108.0.5359.124/third_party/wayland/src/src/scanner.c.me chromium-108.0.5359.124/third_party/wayland/src/src/scanner.c
|
||||||
|
--- chromium-108.0.5359.124/third_party/wayland/src/src/scanner.c.me 2022-12-27 16:14:22.507496575 +0100
|
||||||
|
+++ chromium-108.0.5359.124/third_party/wayland/src/src/scanner.c 2022-12-27 16:35:17.617573610 +0100
|
||||||
|
@@ -26,6 +26,7 @@
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "wayland-version.h"
|
||||||
|
+#include "config.h" // HAVE_STRNDUP
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <stdio.h>
|
@ -0,0 +1,141 @@
|
|||||||
|
diff -up chromium-110.0.5481.77/sandbox/policy/linux/bpf_hardware_video_decoding_policy_linux.cc.me chromium-110.0.5481.77/sandbox/policy/linux/bpf_hardware_video_decoding_policy_linux.cc
|
||||||
|
--- chromium-110.0.5481.77/sandbox/policy/linux/bpf_hardware_video_decoding_policy_linux.cc.me 2023-02-08 20:34:02.700010846 +0100
|
||||||
|
+++ chromium-110.0.5481.77/sandbox/policy/linux/bpf_hardware_video_decoding_policy_linux.cc 2023-02-08 20:35:30.455580670 +0100
|
||||||
|
@@ -4,7 +4,9 @@
|
||||||
|
|
||||||
|
#include "sandbox/policy/linux/bpf_hardware_video_decoding_policy_linux.h"
|
||||||
|
|
||||||
|
-#include <linux/kcmp.h>
|
||||||
|
+#ifndef KCMP_FILE
|
||||||
|
+#define KCMP_FILE 0
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#include "media/gpu/buildflags.h"
|
||||||
|
#include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h"
|
||||||
|
diff -up chromium-99.0.4844.51/mojo/core/channel_linux.cc.epel7-header-workarounds chromium-99.0.4844.51/mojo/core/channel_linux.cc
|
||||||
|
--- chromium-99.0.4844.51/mojo/core/channel_linux.cc.epel7-header-workarounds 2022-02-28 19:05:54.000000000 -0500
|
||||||
|
+++ chromium-99.0.4844.51/mojo/core/channel_linux.cc 2022-03-05 14:50:49.876812909 -0500
|
||||||
|
@@ -44,6 +44,25 @@
|
||||||
|
#include "base/android/build_info.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifndef F_LINUX_SPECIFIC_BASE
|
||||||
|
+#define F_LINUX_SPECIFIC_BASE 1024
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SEAL
|
||||||
|
+#define F_SEAL_SEAL 0x0001
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SHRINK
|
||||||
|
+#define F_SEAL_SHRINK 0x0002
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_GROW
|
||||||
|
+#define F_SEAL_GROW 0x0004
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_ADD_SEALS
|
||||||
|
+#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9)
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_GET_SEALS
|
||||||
|
+#define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10)
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#ifndef EFD_ZERO_ON_WAKE
|
||||||
|
#define EFD_ZERO_ON_WAKE O_NOFOLLOW
|
||||||
|
#endif
|
||||||
|
diff -up chromium-99.0.4844.51/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.epel7-header-workarounds chromium-99.0.4844.51/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
|
||||||
|
--- chromium-99.0.4844.51/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.epel7-header-workarounds 2022-03-05 14:50:49.877812915 -0500
|
||||||
|
+++ chromium-99.0.4844.51/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc 2022-03-05 15:15:02.536867009 -0500
|
||||||
|
@@ -53,6 +53,25 @@
|
||||||
|
|
||||||
|
#endif // BUILDFLAG(IS_ANDROID)
|
||||||
|
|
||||||
|
+#ifndef F_LINUX_SPECIFIC_BASE
|
||||||
|
+#define F_LINUX_SPECIFIC_BASE 1024
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SEAL
|
||||||
|
+#define F_SEAL_SEAL 0x0001
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SHRINK
|
||||||
|
+#define F_SEAL_SHRINK 0x0002
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_GROW
|
||||||
|
+#define F_SEAL_GROW 0x0004
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_ADD_SEALS
|
||||||
|
+#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9)
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_GET_SEALS
|
||||||
|
+#define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10)
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#if defined(__arm__) && !defined(MAP_STACK)
|
||||||
|
#define MAP_STACK 0x20000 // Daisy build environment has old headers.
|
||||||
|
#endif
|
||||||
|
diff -up chromium-99.0.4844.51/sandbox/policy/linux/bpf_cros_amd_gpu_policy_linux.cc.epel7-header-workarounds chromium-99.0.4844.51/sandbox/policy/linux/bpf_cros_amd_gpu_policy_linux.cc
|
||||||
|
--- chromium-99.0.4844.51/sandbox/policy/linux/bpf_cros_amd_gpu_policy_linux.cc.epel7-header-workarounds 2022-02-28 19:05:55.000000000 -0500
|
||||||
|
+++ chromium-99.0.4844.51/sandbox/policy/linux/bpf_cros_amd_gpu_policy_linux.cc 2022-03-05 14:50:49.877812915 -0500
|
||||||
|
@@ -6,7 +6,24 @@
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
-#include <linux/kcmp.h>
|
||||||
|
+#ifndef KCMP_FILE
|
||||||
|
+#define KCMP_FILE 0
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_LINUX_SPECIFIC_BASE
|
||||||
|
+#define F_LINUX_SPECIFIC_BASE 1024
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SEAL
|
||||||
|
+#define F_SEAL_SEAL 0x0001
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SHRINK
|
||||||
|
+#define F_SEAL_SHRINK 0x0002
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_GROW
|
||||||
|
+#define F_SEAL_GROW 0x0004
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_ADD_SEALS
|
||||||
|
+#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9)
|
||||||
|
+#endif
|
||||||
|
#include <sys/socket.h>
|
||||||
|
|
||||||
|
// Some arch's (arm64 for instance) unistd.h don't pull in symbols used here
|
||||||
|
diff -up chromium-99.0.4844.51/sandbox/policy/linux/bpf_gpu_policy_linux.cc.epel7-header-workarounds chromium-99.0.4844.51/sandbox/policy/linux/bpf_gpu_policy_linux.cc
|
||||||
|
--- chromium-99.0.4844.51/sandbox/policy/linux/bpf_gpu_policy_linux.cc.epel7-header-workarounds 2022-02-28 19:05:55.000000000 -0500
|
||||||
|
+++ chromium-99.0.4844.51/sandbox/policy/linux/bpf_gpu_policy_linux.cc 2022-03-05 14:50:49.877812915 -0500
|
||||||
|
@@ -22,6 +22,22 @@
|
||||||
|
#include "sandbox/policy/linux/sandbox_linux.h"
|
||||||
|
#include "sandbox/policy/linux/sandbox_seccomp_bpf_linux.h"
|
||||||
|
|
||||||
|
+#ifndef F_LINUX_SPECIFIC_BASE
|
||||||
|
+#define F_LINUX_SPECIFIC_BASE 1024
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SEAL
|
||||||
|
+#define F_SEAL_SEAL 0x0001
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SHRINK
|
||||||
|
+#define F_SEAL_SHRINK 0x0002
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_GROW
|
||||||
|
+#define F_SEAL_GROW 0x0004
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_ADD_SEALS
|
||||||
|
+#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9)
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
using sandbox::bpf_dsl::AllOf;
|
||||||
|
using sandbox::bpf_dsl::Allow;
|
||||||
|
using sandbox::bpf_dsl::Arg;
|
||||||
|
diff -up chromium-99.0.4844.51/ui/events/ozone/evdev/event_converter_evdev_impl.cc.epel7-header-workarounds chromium-99.0.4844.51/ui/events/ozone/evdev/event_converter_evdev_impl.cc
|
||||||
|
--- chromium-99.0.4844.51/ui/events/ozone/evdev/event_converter_evdev_impl.cc.epel7-header-workarounds 2022-02-28 19:06:49.000000000 -0500
|
||||||
|
+++ chromium-99.0.4844.51/ui/events/ozone/evdev/event_converter_evdev_impl.cc 2022-03-05 14:50:49.877812915 -0500
|
||||||
|
@@ -23,6 +23,10 @@
|
||||||
|
#include "ui/events/ozone/evdev/numberpad_metrics.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifndef SW_PEN_INSERTED
|
||||||
|
+#define SW_PEN_INSERTED 0x0f /* set = pen inserted */
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
namespace ui {
|
||||||
|
|
||||||
|
namespace {
|
@ -0,0 +1,22 @@
|
|||||||
|
diff -up chromium-114.0.5735.26/sandbox/policy/linux/bpf_network_policy_linux.cc.me chromium-114.0.5735.26/sandbox/policy/linux/bpf_network_policy_linux.cc
|
||||||
|
--- chromium-114.0.5735.26/sandbox/policy/linux/bpf_network_policy_linux.cc.me 2023-05-13 12:09:44.423727385 +0200
|
||||||
|
+++ chromium-114.0.5735.26/sandbox/policy/linux/bpf_network_policy_linux.cc 2023-05-13 17:52:19.934347246 +0200
|
||||||
|
@@ -11,7 +11,6 @@
|
||||||
|
#include <linux/net.h>
|
||||||
|
#include <linux/netlink.h>
|
||||||
|
#include <linux/sockios.h>
|
||||||
|
-#include <linux/wireless.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <netinet/tcp.h>
|
||||||
|
#include <sys/inotify.h>
|
||||||
|
@@ -48,6 +47,10 @@ using sandbox::syscall_broker::BrokerPro
|
||||||
|
#define F2FS_IOC_GET_FEATURES _IOR(0xf5, 12, uint32_t)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#if !defined(SIOCGIWNAME)
|
||||||
|
+#define SIOCGIWNAME 0x8B01
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
namespace sandbox::policy {
|
||||||
|
|
||||||
|
namespace {
|
@ -0,0 +1,21 @@
|
|||||||
|
diff -up chromium-115.0.5790.24/components/omnibox/browser/omnibox_edit_model.cc.buildflag-el7 chromium-115.0.5790.24/components/omnibox/browser/omnibox_edit_model.cc
|
||||||
|
--- chromium-115.0.5790.24/components/omnibox/browser/omnibox_edit_model.cc.buildflag-el7 2023-06-07 21:48:29.000000000 +0200
|
||||||
|
+++ chromium-115.0.5790.24/components/omnibox/browser/omnibox_edit_model.cc 2023-06-17 16:50:46.373867625 +0200
|
||||||
|
@@ -79,7 +79,7 @@
|
||||||
|
#include "ui/gfx/vector_icon_types.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
|
||||||
|
+#ifdef GOOGLE_CHROME_BRANDING
|
||||||
|
#include "components/vector_icons/vector_icons.h" // nogncheck
|
||||||
|
#endif
|
||||||
|
|
||||||
|
@@ -631,7 +631,7 @@ bool OmniboxEditModel::ShouldShowCurrent
|
||||||
|
|
||||||
|
ui::ImageModel OmniboxEditModel::GetSuperGIcon(int image_size,
|
||||||
|
bool dark_mode) const {
|
||||||
|
-#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
|
||||||
|
+#ifdef GOOGLE_CHROME_BRANDING
|
||||||
|
if (dark_mode) {
|
||||||
|
return ui::ImageModel::FromVectorIcon(
|
||||||
|
vector_icons::kGoogleGLogoMonochromeIcon, ui::kColorRefPrimary100,
|
@ -0,0 +1,57 @@
|
|||||||
|
diff -up chromium-115.0.5790.98/sql/recover_module/cursor.h.me chromium-115.0.5790.98/sql/recover_module/cursor.h
|
||||||
|
--- chromium-115.0.5790.98/sql/recover_module/cursor.h.me 2023-07-21 20:13:43.587451992 +0200
|
||||||
|
+++ chromium-115.0.5790.98/sql/recover_module/cursor.h 2023-07-21 20:16:24.989457148 +0200
|
||||||
|
@@ -61,6 +61,10 @@ class VirtualCursor {
|
||||||
|
// The VirtualCursor instance that embeds a given SQLite virtual table cursor.
|
||||||
|
//
|
||||||
|
// |sqlite_cursor| must have been returned by VirtualTable::SqliteCursor().
|
||||||
|
+#ifdef __GNUC__
|
||||||
|
+#pragma GCC diagnostic push
|
||||||
|
+#pragma GCC diagnostic ignored "-Winvalid-offsetof"
|
||||||
|
+#endif
|
||||||
|
static inline VirtualCursor* FromSqliteCursor(
|
||||||
|
sqlite3_vtab_cursor* sqlite_cursor) {
|
||||||
|
VirtualCursor* result = reinterpret_cast<VirtualCursor*>(
|
||||||
|
@@ -69,6 +73,9 @@ class VirtualCursor {
|
||||||
|
CHECK_EQ(sqlite_cursor, &result->sqlite_cursor_);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
+#ifdef __GNUC__
|
||||||
|
+#pragma GCC diagnostic pop
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
// Seeks the cursor to the first readable row. Returns a SQLite status code.
|
||||||
|
int First();
|
||||||
|
diff -up chromium-115.0.5790.98/third_party/angle/src/libANGLE/BlobCache.cpp.me chromium-115.0.5790.98/third_party/angle/src/libANGLE/BlobCache.cpp
|
||||||
|
--- chromium-115.0.5790.98/third_party/angle/src/libANGLE/BlobCache.cpp.me 2023-07-21 20:10:05.119385885 +0200
|
||||||
|
+++ chromium-115.0.5790.98/third_party/angle/src/libANGLE/BlobCache.cpp 2023-07-21 20:10:14.386558331 +0200
|
||||||
|
@@ -14,7 +14,6 @@
|
||||||
|
#include "libANGLE/histogram_macros.h"
|
||||||
|
#include "platform/PlatformMethods.h"
|
||||||
|
|
||||||
|
-#define USE_SYSTEM_ZLIB
|
||||||
|
#include "compression_utils_portable.h"
|
||||||
|
|
||||||
|
namespace egl
|
||||||
|
diff -up chromium-115.0.5790.98/third_party/angle/src/libANGLE/MemoryProgramCache.cpp.me chromium-115.0.5790.98/third_party/angle/src/libANGLE/MemoryProgramCache.cpp
|
||||||
|
--- chromium-115.0.5790.98/third_party/angle/src/libANGLE/MemoryProgramCache.cpp.me 2023-07-21 20:10:36.864976619 +0200
|
||||||
|
+++ chromium-115.0.5790.98/third_party/angle/src/libANGLE/MemoryProgramCache.cpp 2023-07-21 20:11:07.629549228 +0200
|
||||||
|
@@ -8,7 +8,6 @@
|
||||||
|
// layer to warm up the cache from disk.
|
||||||
|
|
||||||
|
// Include zlib first, otherwise FAR gets defined elsewhere.
|
||||||
|
-#define USE_SYSTEM_ZLIB
|
||||||
|
#include "compression_utils_portable.h"
|
||||||
|
|
||||||
|
#include "libANGLE/MemoryProgramCache.h"
|
||||||
|
diff -up chromium-115.0.5790.98/third_party/angle/src/libANGLE/renderer/vulkan/vk_internal_shaders_autogen.cpp.me chromium-115.0.5790.98/third_party/angle/src/libANGLE/renderer/vulkan/vk_internal_shaders_autogen.cpp
|
||||||
|
--- chromium-115.0.5790.98/third_party/angle/src/libANGLE/renderer/vulkan/vk_internal_shaders_autogen.cpp.me 2023-07-21 20:09:44.206996746 +0200
|
||||||
|
+++ chromium-115.0.5790.98/third_party/angle/src/libANGLE/renderer/vulkan/vk_internal_shaders_autogen.cpp 2023-07-21 20:09:51.834138674 +0200
|
||||||
|
@@ -10,7 +10,6 @@
|
||||||
|
|
||||||
|
#include "libANGLE/renderer/vulkan/vk_internal_shaders_autogen.h"
|
||||||
|
|
||||||
|
-#define USE_SYSTEM_ZLIB
|
||||||
|
#include "compression_utils_portable.h"
|
||||||
|
|
||||||
|
namespace rx
|
@ -0,0 +1,26 @@
|
|||||||
|
diff -up chromium-115.0.5790.40/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc.me chromium-115.0.5790.40/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc
|
||||||
|
--- chromium-115.0.5790.40/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc.me 2023-06-24 10:38:11.011511463 +0200
|
||||||
|
+++ chromium-115.0.5790.40/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc 2023-06-24 13:07:35.865375884 +0200
|
||||||
|
@@ -84,6 +84,7 @@ CanvasStyle::CanvasStyle(const CanvasSty
|
||||||
|
|
||||||
|
void CanvasStyle::ApplyToFlags(cc::PaintFlags& flags,
|
||||||
|
float global_alpha) const {
|
||||||
|
+ SkColor4f custom_color = SkColor4f{0.0f, 0.0f, 0.0f, global_alpha};
|
||||||
|
switch (type_) {
|
||||||
|
case kColor:
|
||||||
|
ApplyColorToFlags(flags, global_alpha);
|
||||||
|
@@ -91,12 +92,12 @@ void CanvasStyle::ApplyToFlags(cc::Paint
|
||||||
|
case kGradient:
|
||||||
|
GetCanvasGradient()->GetGradient()->ApplyToFlags(flags, SkMatrix::I(),
|
||||||
|
ImageDrawOptions());
|
||||||
|
- flags.setColor(SkColor4f(0.0f, 0.0f, 0.0f, global_alpha));
|
||||||
|
+ flags.setColor(custom_color);
|
||||||
|
break;
|
||||||
|
case kImagePattern:
|
||||||
|
GetCanvasPattern()->GetPattern()->ApplyToFlags(
|
||||||
|
flags, AffineTransformToSkMatrix(GetCanvasPattern()->GetTransform()));
|
||||||
|
- flags.setColor(SkColor4f(0.0f, 0.0f, 0.0f, global_alpha));
|
||||||
|
+ flags.setColor(custom_color);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
NOTREACHED();
|
@ -0,0 +1,46 @@
|
|||||||
|
diff -up chromium-115.0.5790.40/chrome/test/chromedriver/capabilities.cc.me chromium-115.0.5790.40/chrome/test/chromedriver/capabilities.cc
|
||||||
|
--- chromium-115.0.5790.40/chrome/test/chromedriver/capabilities.cc.me 2023-06-25 10:06:58.445990069 +0200
|
||||||
|
+++ chromium-115.0.5790.40/chrome/test/chromedriver/capabilities.cc 2023-06-25 10:51:17.640818231 +0200
|
||||||
|
@@ -355,7 +355,7 @@ Status ParseMobileEmulation(const base::
|
||||||
|
"'version' field of type string");
|
||||||
|
}
|
||||||
|
|
||||||
|
- brands.emplace_back(*brand, *version);
|
||||||
|
+ brands.emplace_back() = {*brand, *version};
|
||||||
|
}
|
||||||
|
|
||||||
|
client_hints.brands = std::move(brands);
|
||||||
|
@@ -392,7 +392,7 @@ Status ParseMobileEmulation(const base::
|
||||||
|
"a 'version' field of type string");
|
||||||
|
}
|
||||||
|
|
||||||
|
- full_version_list.emplace_back(*brand, *version);
|
||||||
|
+ full_version_list.emplace_back() = {*brand, *version};
|
||||||
|
}
|
||||||
|
|
||||||
|
client_hints.full_version_list = std::move(full_version_list);
|
||||||
|
diff -up chromium-116.0.5845.96/chrome/browser/content_settings/one_time_permission_provider.cc.me chromium-116.0.5845.96/chrome/browser/content_settings/one_time_permission_provider.cc
|
||||||
|
--- chromium-116.0.5845.96/chrome/browser/content_settings/one_time_permission_provider.cc.me 2023-08-15 21:34:58.922855428 +0200
|
||||||
|
+++ chromium-116.0.5845.96/chrome/browser/content_settings/one_time_permission_provider.cc 2023-08-15 21:39:23.310434237 +0200
|
||||||
|
@@ -207,8 +207,8 @@ void OneTimePermissionProvider::OnSuspen
|
||||||
|
|
||||||
|
while (rule_iterator && rule_iterator->HasNext()) {
|
||||||
|
auto rule = rule_iterator->Next();
|
||||||
|
- patterns_to_delete.emplace_back(setting_type, rule->primary_pattern,
|
||||||
|
- rule->secondary_pattern);
|
||||||
|
+ patterns_to_delete.emplace_back() = {setting_type, rule->primary_pattern,
|
||||||
|
+ rule->secondary_pattern};
|
||||||
|
permissions::PermissionUmaUtil::RecordOneTimePermissionEvent(
|
||||||
|
setting_type,
|
||||||
|
permissions::OneTimePermissionEvent::EXPIRED_ON_SUSPEND);
|
||||||
|
@@ -302,8 +302,8 @@ void OneTimePermissionProvider::DeleteEn
|
||||||
|
auto rule = rule_iterator->Next();
|
||||||
|
if (rule->primary_pattern.Matches(origin_gurl) &&
|
||||||
|
rule->secondary_pattern.Matches(origin_gurl)) {
|
||||||
|
- patterns_to_delete.emplace_back(
|
||||||
|
- content_setting_type, rule->primary_pattern, rule->secondary_pattern);
|
||||||
|
+ patterns_to_delete.emplace_back() = {
|
||||||
|
+ content_setting_type, rule->primary_pattern, rule->secondary_pattern};
|
||||||
|
permissions::PermissionUmaUtil::RecordOneTimePermissionEvent(
|
||||||
|
content_setting_type, trigger_event);
|
||||||
|
}
|
@ -0,0 +1,364 @@
|
|||||||
|
diff -up chromium-116.0.5845.50/net/dns/host_resolver_cache.cc.me chromium-116.0.5845.50/net/dns/host_resolver_cache.cc
|
||||||
|
--- chromium-116.0.5845.50/net/dns/host_resolver_cache.cc.me
|
||||||
|
+++ chromium-116.0.5845.50/net/dns/host_resolver_cache.cc
|
||||||
|
@@ -161,7 +161,7 @@ void HostResolverCache::Set(
|
||||||
|
|
||||||
|
std::string domain_name = result->domain_name();
|
||||||
|
entries_.emplace(
|
||||||
|
- Key(std::move(domain_name), network_anonymization_key),
|
||||||
|
+ Key{std::move(domain_name), network_anonymization_key},
|
||||||
|
Entry(std::move(result), source, secure, staleness_generation_));
|
||||||
|
|
||||||
|
if (entries_.size() > max_entries_) {
|
||||||
|
diff -up chromium-116.0.5845.50/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc.me chromium-116.0.5845.50/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc
|
||||||
|
--- chromium-116.0.5845.50/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc.me 2023-08-02 15:17:52.613858423 +0200
|
||||||
|
+++ chromium-116.0.5845.50/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc 2023-08-02 15:18:43.269790877 +0200
|
||||||
|
@@ -1496,7 +1496,7 @@ void SkiaOutputSurfaceImplOnGpu::CopyOut
|
||||||
|
|
||||||
|
// Issue readbacks from the surfaces:
|
||||||
|
for (size_t i = 0; i < CopyOutputResult::kNV12MaxPlanes; ++i) {
|
||||||
|
- SkISize size(plane_surfaces[i]->width(), plane_surfaces[i]->height());
|
||||||
|
+ SkISize size{plane_surfaces[i]->width(), plane_surfaces[i]->height()};
|
||||||
|
SkImageInfo dst_info = SkImageInfo::Make(
|
||||||
|
size, (i == 0) ? kAlpha_8_SkColorType : kR8G8_unorm_SkColorType,
|
||||||
|
kUnpremul_SkAlphaType);
|
||||||
|
diff -up chromium-116.0.5845.50/third_party/blink/renderer/platform/fonts/palette_interpolation.cc.me chromium-116.0.5845.50/third_party/blink/renderer/platform/fonts/palette_interpolation.cc
|
||||||
|
--- chromium-116.0.5845.50/third_party/blink/renderer/platform/fonts/palette_interpolation.cc.me 2023-08-02 21:32:14.195705494 +0200
|
||||||
|
+++ chromium-116.0.5845.50/third_party/blink/renderer/platform/fonts/palette_interpolation.cc 2023-08-02 21:59:08.156532934 +0200
|
||||||
|
@@ -31,7 +31,7 @@ Vector<FontPalette::FontPaletteOverride>
|
||||||
|
color_interpolation_space, hue_interpolation_method, start_color,
|
||||||
|
end_color, percentage, alpha_multiplier);
|
||||||
|
|
||||||
|
- FontPalette::FontPaletteOverride result_color_record(i, result_color);
|
||||||
|
+ FontPalette::FontPaletteOverride result_color_record{static_cast<int>(i), result_color};
|
||||||
|
result_color_records.push_back(result_color_record);
|
||||||
|
}
|
||||||
|
return result_color_records;
|
||||||
|
diff -up chromium-116.0.5845.50/ui/base/wayland/color_manager_util.h.me chromium-116.0.5845.50/ui/base/wayland/color_manager_util.h
|
||||||
|
--- chromium-116.0.5845.50/ui/base/wayland/color_manager_util.h.me 2023-08-03 08:27:11.371750178 +0200
|
||||||
|
+++ chromium-116.0.5845.50/ui/base/wayland/color_manager_util.h 2023-08-03 10:39:07.266989323 +0200
|
||||||
|
@@ -52,53 +52,53 @@ constexpr auto kChromaticityMap = base::
|
||||||
|
zcr_color_manager_v1_chromaticity_names,
|
||||||
|
PrimaryVersion>(
|
||||||
|
{{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT601_525_LINE,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::SMPTE170M,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::SMPTE170M,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT601_625_LINE,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::BT470BG,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::BT470BG,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTE170M,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::SMPTE170M,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::SMPTE170M,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT709,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::BT709, kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::BT709, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT2020,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::BT2020, kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::BT2020, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SRGB,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::BT709, kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::BT709, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_DISPLAYP3,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::P3, kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::P3, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_ADOBERGB,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::ADOBE_RGB,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::ADOBE_RGB,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_WIDE_GAMUT_COLOR_SPIN,
|
||||||
|
- PrimaryVersion(
|
||||||
|
+ PrimaryVersion{
|
||||||
|
gfx::ColorSpace::PrimaryID::WIDE_GAMUT_COLOR_SPIN,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_WIDE_GAMUT_COLOR_SPIN_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_WIDE_GAMUT_COLOR_SPIN_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT470M,
|
||||||
|
- PrimaryVersion(
|
||||||
|
+ PrimaryVersion{
|
||||||
|
gfx::ColorSpace::PrimaryID::BT470M,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT470M_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT470M_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTE240M,
|
||||||
|
- PrimaryVersion(
|
||||||
|
+ PrimaryVersion{
|
||||||
|
gfx::ColorSpace::PrimaryID::SMPTE240M,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTE240M_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTE240M_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_XYZ_D50,
|
||||||
|
- PrimaryVersion(
|
||||||
|
+ PrimaryVersion{
|
||||||
|
gfx::ColorSpace::PrimaryID::XYZ_D50,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_XYZ_D50_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_XYZ_D50_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST428_1,
|
||||||
|
- PrimaryVersion(
|
||||||
|
+ PrimaryVersion{
|
||||||
|
gfx::ColorSpace::PrimaryID::SMPTEST428_1,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST428_1_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST428_1_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST431_2,
|
||||||
|
- PrimaryVersion(
|
||||||
|
+ PrimaryVersion{
|
||||||
|
gfx::ColorSpace::PrimaryID::SMPTEST431_2,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST431_2_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST431_2_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_FILM,
|
||||||
|
- PrimaryVersion(
|
||||||
|
+ PrimaryVersion{
|
||||||
|
gfx::ColorSpace::PrimaryID::FILM,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_FILM_SINCE_VERSION)}});
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_FILM_SINCE_VERSION}}});
|
||||||
|
|
||||||
|
// A map from the zcr_color_manager_v1 eotf_names enum values
|
||||||
|
// representing well-known EOTFs, to their equivalent TransferIDs.
|
||||||
|
@@ -107,65 +107,65 @@ constexpr auto kEotfMap = base::MakeFixe
|
||||||
|
zcr_color_manager_v1_eotf_names,
|
||||||
|
TransferVersion>({
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LINEAR,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::LINEAR,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::LINEAR,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::SRGB, kDefaultSinceVersion)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::SRGB, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::BT709,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::BT709,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2087,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::GAMMA24,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::GAMMA24,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_ADOBERGB,
|
||||||
|
// This is ever so slightly inaccurate. The number ought to be
|
||||||
|
// 2.19921875f, not 2.2
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::GAMMA22,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::GAMMA22,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_PQ,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::PQ, kDefaultSinceVersion)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::PQ, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::HLG,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::HLG,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE170M,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::SMPTE170M,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE170M_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::SMPTE170M,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE170M_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE240M,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::SMPTE240M,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE240M_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::SMPTE240M,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE240M_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTEST428_1,
|
||||||
|
- TransferVersion(
|
||||||
|
+ TransferVersion{
|
||||||
|
gfx::ColorSpace::TransferID::SMPTEST428_1,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTEST428_1_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTEST428_1_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::LOG,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::LOG,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG_SQRT,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::LOG_SQRT,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG_SQRT_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::LOG_SQRT,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG_SQRT_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_IEC61966_2_4,
|
||||||
|
- TransferVersion(
|
||||||
|
+ TransferVersion{
|
||||||
|
gfx::ColorSpace::TransferID::IEC61966_2_4,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_IEC61966_2_4_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_IEC61966_2_4_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT1361_ECG,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::BT1361_ECG,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT1361_ECG_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::BT1361_ECG,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT1361_ECG_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_10,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::BT2020_10,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_10_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::BT2020_10,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_10_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_12,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::BT2020_12,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_12_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::BT2020_12,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_12_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SCRGB_LINEAR_80_NITS,
|
||||||
|
- TransferVersion(
|
||||||
|
+ TransferVersion{
|
||||||
|
gfx::ColorSpace::TransferID::SCRGB_LINEAR_80_NITS,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SCRGB_LINEAR_80_NITS_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SCRGB_LINEAR_80_NITS_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA18,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::GAMMA18,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA18_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::GAMMA18,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA18_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA28,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::GAMMA28,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA28_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::GAMMA28,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA28_SINCE_VERSION}},
|
||||||
|
});
|
||||||
|
|
||||||
|
// A map from the SDR zcr_color_manager_v1 eotf_names enum values
|
||||||
|
@@ -174,18 +174,18 @@ constexpr auto kEotfMap = base::MakeFixe
|
||||||
|
constexpr auto kTransferMap =
|
||||||
|
base::MakeFixedFlatMap<zcr_color_manager_v1_eotf_names, TransferFnVersion>({
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LINEAR,
|
||||||
|
- TransferFnVersion(SkNamedTransferFn::kLinear, kDefaultSinceVersion)},
|
||||||
|
+ TransferFnVersion{SkNamedTransferFn::kLinear, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB,
|
||||||
|
- TransferFnVersion(SkNamedTransferFnExt::kSRGB, kDefaultSinceVersion)},
|
||||||
|
+ TransferFnVersion{SkNamedTransferFnExt::kSRGB, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709,
|
||||||
|
- TransferFnVersion(
|
||||||
|
+ TransferFnVersion{
|
||||||
|
SkNamedTransferFnExt::kRec709,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2087,
|
||||||
|
- TransferFnVersion(gamma24, kDefaultSinceVersion)},
|
||||||
|
+ TransferFnVersion{gamma24, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_ADOBERGB,
|
||||||
|
- TransferFnVersion(SkNamedTransferFnExt::kA98RGB,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ TransferFnVersion{SkNamedTransferFnExt::kA98RGB,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
});
|
||||||
|
|
||||||
|
// A map from the HDR zcr_color_manager_v1 eotf_names enum values
|
||||||
|
@@ -194,68 +194,68 @@ constexpr auto kTransferMap =
|
||||||
|
constexpr auto kHDRTransferMap =
|
||||||
|
base::MakeFixedFlatMap<zcr_color_manager_v1_eotf_names, TransferFnVersion>(
|
||||||
|
{{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LINEAR,
|
||||||
|
- TransferFnVersion(SkNamedTransferFn::kLinear, kDefaultSinceVersion)},
|
||||||
|
+ TransferFnVersion{SkNamedTransferFn::kLinear, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB,
|
||||||
|
- TransferFnVersion(SkNamedTransferFnExt::kSRGB, kDefaultSinceVersion)},
|
||||||
|
+ TransferFnVersion{SkNamedTransferFnExt::kSRGB, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_PQ,
|
||||||
|
- TransferFnVersion(SkNamedTransferFn::kPQ, kDefaultSinceVersion)},
|
||||||
|
+ TransferFnVersion{SkNamedTransferFn::kPQ, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG,
|
||||||
|
- TransferFnVersion(SkNamedTransferFn::kHLG,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG_SINCE_VERSION)},
|
||||||
|
+ TransferFnVersion{SkNamedTransferFn::kHLG,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_EXTENDEDSRGB10,
|
||||||
|
- TransferFnVersion(
|
||||||
|
+ TransferFnVersion{
|
||||||
|
SkNamedTransferFnExt::kSRGBExtended1023Over510,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_EXTENDEDSRGB10_SINCE_VERSION)}});
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_EXTENDEDSRGB10_SINCE_VERSION}}});
|
||||||
|
|
||||||
|
// A map from zcr_color_manager_v1 matrix_names enum values to
|
||||||
|
// gfx::ColorSpace::MatrixIDs.
|
||||||
|
constexpr auto kMatrixMap =
|
||||||
|
base::MakeFixedFlatMap<zcr_color_manager_v1_matrix_names, MatrixVersion>(
|
||||||
|
{{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_RGB,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::RGB, kDefaultSinceVersion)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::RGB, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT709,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::BT709,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::BT709,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT470BG,
|
||||||
|
- MatrixVersion(
|
||||||
|
+ MatrixVersion{
|
||||||
|
gfx::ColorSpace::MatrixID::BT470BG,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT470BG_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT470BG_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT2020_NCL,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::BT2020_NCL,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::BT2020_NCL,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT2020_CL,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::BT2020_CL,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::BT2020_CL,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_FCC,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::FCC, kDefaultSinceVersion)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::FCC, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YCOCG,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::YCOCG,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YCOCG_SINCE_VERSION)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::YCOCG,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YCOCG_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YDZDX,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::YDZDX,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YDZDX_SINCE_VERSION)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::YDZDX,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YDZDX_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_GBR,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::GBR,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_GBR_SINCE_VERSION)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::GBR,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_GBR_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_SMPTE170M,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::SMPTE170M,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::SMPTE170M,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_SMPTE240M,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::SMPTE240M,
|
||||||
|
- kDefaultSinceVersion)}});
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::SMPTE240M,
|
||||||
|
+ kDefaultSinceVersion}}});
|
||||||
|
|
||||||
|
// A map from zcr_color_manager_v1 range_names enum values to
|
||||||
|
// gfx::ColorSpace::RangeIDs.
|
||||||
|
constexpr auto kRangeMap =
|
||||||
|
base::MakeFixedFlatMap<zcr_color_manager_v1_range_names, RangeVersion>(
|
||||||
|
{{ZCR_COLOR_MANAGER_V1_RANGE_NAMES_LIMITED,
|
||||||
|
- RangeVersion(gfx::ColorSpace::RangeID::LIMITED,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ RangeVersion{gfx::ColorSpace::RangeID::LIMITED,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_RANGE_NAMES_FULL,
|
||||||
|
- RangeVersion(gfx::ColorSpace::RangeID::FULL, kDefaultSinceVersion)},
|
||||||
|
+ RangeVersion{gfx::ColorSpace::RangeID::FULL, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_RANGE_NAMES_DERIVED,
|
||||||
|
- RangeVersion(gfx::ColorSpace::RangeID::DERIVED,
|
||||||
|
- kDefaultSinceVersion)}});
|
||||||
|
+ RangeVersion{gfx::ColorSpace::RangeID::DERIVED,
|
||||||
|
+ kDefaultSinceVersion}}});
|
||||||
|
|
||||||
|
zcr_color_manager_v1_chromaticity_names ToColorManagerChromaticity(
|
||||||
|
gfx::ColorSpace::PrimaryID primaryID,
|
||||||
|
diff -up chromium-116.0.5845.50/chrome/browser/ui/omnibox/chrome_omnibox_client.cc.me chromium-116.0.5845.50/chrome/browser/ui/omnibox/chrome_omnibox_client.cc
|
||||||
|
--- chromium-116.0.5845.50/chrome/browser/ui/omnibox/chrome_omnibox_client.cc.me 2023-08-03 13:23:33.748394615 +0200
|
||||||
|
+++ chromium-116.0.5845.50/chrome/browser/ui/omnibox/chrome_omnibox_client.cc 2023-08-03 13:25:01.140489840 +0200
|
||||||
|
@@ -470,10 +470,10 @@ void ChromeOmniboxClient::OnAutocomplete
|
||||||
|
alternative_nav_match);
|
||||||
|
|
||||||
|
// Store the details necessary to open the omnibox match via browser commands.
|
||||||
|
- location_bar_->set_navigation_params(LocationBar::NavigationParams(
|
||||||
|
+ location_bar_->set_navigation_params(LocationBar::NavigationParams{
|
||||||
|
destination_url, disposition, transition, match_selection_timestamp,
|
||||||
|
destination_url_entered_without_scheme,
|
||||||
|
- destination_url_entered_with_http_scheme));
|
||||||
|
+ destination_url_entered_with_http_scheme});
|
||||||
|
|
||||||
|
if (browser_) {
|
||||||
|
auto navigation = chrome::OpenCurrentURL(browser_);
|
@ -0,0 +1,38 @@
|
|||||||
|
diff -up chromium-116.0.5845.50/net/filter/brotli_source_stream.cc.system-brotli chromium-116.0.5845.50/net/filter/brotli_source_stream.cc
|
||||||
|
--- chromium-116.0.5845.50/net/filter/brotli_source_stream.cc.system-brotli 2023-07-30 13:06:06.284705823 +0200
|
||||||
|
+++ chromium-116.0.5845.50/net/filter/brotli_source_stream.cc 2023-07-30 13:08:43.398218141 +0200
|
||||||
|
@@ -12,8 +12,8 @@
|
||||||
|
#include "base/memory/raw_ptr.h"
|
||||||
|
#include "base/metrics/histogram_macros.h"
|
||||||
|
#include "net/base/io_buffer.h"
|
||||||
|
-#include "third_party/brotli/include/brotli/decode.h"
|
||||||
|
-#include "third_party/brotli/include/brotli/shared_dictionary.h"
|
||||||
|
+#include <brotli/decode.h>
|
||||||
|
+#include <brotli/shared_dictionary.h>
|
||||||
|
|
||||||
|
namespace net {
|
||||||
|
|
||||||
|
diff -up chromium-116.0.5845.50/net/ssl/cert_compression.cc.system-brotli chromium-116.0.5845.50/net/ssl/cert_compression.cc
|
||||||
|
--- chromium-116.0.5845.50/net/ssl/cert_compression.cc.system-brotli 2023-07-26 17:43:01.000000000 +0200
|
||||||
|
+++ chromium-116.0.5845.50/net/ssl/cert_compression.cc 2023-07-30 13:06:06.284705823 +0200
|
||||||
|
@@ -9,7 +9,7 @@
|
||||||
|
#include "third_party/boringssl/src/include/openssl/ssl.h"
|
||||||
|
|
||||||
|
#if !defined(NET_DISABLE_BROTLI)
|
||||||
|
-#include "third_party/brotli/include/brotli/decode.h"
|
||||||
|
+#include <brotli/decode.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace net {
|
||||||
|
diff -up chromium-116.0.5845.50/ui/base/resource/resource_bundle.cc.system-brotli chromium-116.0.5845.50/ui/base/resource/resource_bundle.cc
|
||||||
|
--- chromium-116.0.5845.50/ui/base/resource/resource_bundle.cc.system-brotli 2023-07-26 17:43:23.000000000 +0200
|
||||||
|
+++ chromium-116.0.5845.50/ui/base/resource/resource_bundle.cc 2023-07-30 13:06:06.284705823 +0200
|
||||||
|
@@ -32,7 +32,7 @@
|
||||||
|
#include "net/filter/gzip_header.h"
|
||||||
|
#include "skia/ext/image_operations.h"
|
||||||
|
#include "third_party/abseil-cpp/absl/types/variant.h"
|
||||||
|
-#include "third_party/brotli/include/brotli/decode.h"
|
||||||
|
+#include <brotli/decode.h>
|
||||||
|
#include "third_party/skia/include/core/SkBitmap.h"
|
||||||
|
#include "third_party/skia/include/core/SkColor.h"
|
||||||
|
#include "third_party/zlib/google/compression_utils.h"
|
@ -0,0 +1,79 @@
|
|||||||
|
diff -up chromium-115.0.5790.24/chrome/browser/download/bubble/download_bubble_update_service.cc.me chromium-115.0.5790.24/chrome/browser/download/bubble/download_bubble_update_service.cc
|
||||||
|
--- chromium-115.0.5790.24/chrome/browser/download/bubble/download_bubble_update_service.cc.me 2023-06-17 14:50:56.342591702 +0200
|
||||||
|
+++ chromium-115.0.5790.24/chrome/browser/download/bubble/download_bubble_update_service.cc 2023-06-17 14:57:48.024377375 +0200
|
||||||
|
@@ -91,7 +91,7 @@ ItemSortKey GetSortKey(const Item& item)
|
||||||
|
// Helper to get an iterator to the last element in the cache. The cache
|
||||||
|
// must not be empty.
|
||||||
|
template <typename Item>
|
||||||
|
-SortedItems<Item>::const_iterator GetLastIter(const SortedItems<Item>& cache) {
|
||||||
|
+typename SortedItems<Item>::const_iterator GetLastIter(const SortedItems<Item>& cache) {
|
||||||
|
CHECK(!cache.empty());
|
||||||
|
auto it = cache.end();
|
||||||
|
return std::prev(it);
|
||||||
|
@@ -967,9 +967,9 @@ bool DownloadBubbleUpdateService::CacheM
|
||||||
|
}
|
||||||
|
|
||||||
|
template <typename Id, typename Item>
|
||||||
|
-SortedItems<Item>::iterator
|
||||||
|
+typename SortedItems<Item>::iterator
|
||||||
|
DownloadBubbleUpdateService::CacheManager::RemoveItemFromCacheByIter(
|
||||||
|
- SortedItems<Item>::iterator iter,
|
||||||
|
+ typename SortedItems<Item>::iterator iter,
|
||||||
|
SortedItems<Item>& cache,
|
||||||
|
IterMap<Id, Item>& iter_map) {
|
||||||
|
CHECK(iter != cache.end());
|
||||||
|
diff -up chromium-115.0.5790.32/components/optimization_guide/core/tflite_model_executor.h.me chromium-115.0.5790.32/components/optimization_guide/core/tflite_model_executor.h
|
||||||
|
--- chromium-115.0.5790.32/components/optimization_guide/core/tflite_model_executor.h.me 2023-06-18 21:52:53.515625237 +0200
|
||||||
|
+++ chromium-115.0.5790.32/components/optimization_guide/core/tflite_model_executor.h 2023-06-18 21:53:06.881881293 +0200
|
||||||
|
@@ -189,7 +189,7 @@ class TFLiteModelExecutor : public Model
|
||||||
|
void SendForBatchExecution(
|
||||||
|
BatchExecutionCallback callback_on_complete,
|
||||||
|
base::TimeTicks start_time,
|
||||||
|
- ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs)
|
||||||
|
+ typename ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs)
|
||||||
|
override {
|
||||||
|
DCHECK(execution_task_runner_->RunsTasksInCurrentSequence());
|
||||||
|
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||||
|
diff -up chromium-115.0.5790.32/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc.me chromium-115.0.5790.32/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc
|
||||||
|
--- chromium-115.0.5790.32/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc.me 2023-06-19 10:03:32.319218678 +0200
|
||||||
|
+++ chromium-115.0.5790.32/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc 2023-06-19 10:04:12.023942232 +0200
|
||||||
|
@@ -169,7 +169,7 @@ class HTMLFastPathParser {
|
||||||
|
using Span = base::span<const Char>;
|
||||||
|
using USpan = base::span<const UChar>;
|
||||||
|
// 32 matches that used by HTMLToken::Attribute.
|
||||||
|
- typedef std::conditional<std::is_same_v<Char, UChar>,
|
||||||
|
+ typedef typename std::conditional<std::is_same_v<Char, UChar>,
|
||||||
|
UCharLiteralBuffer<32>,
|
||||||
|
LCharLiteralBuffer<32>>::type LiteralBufferType;
|
||||||
|
typedef UCharLiteralBuffer<32> UCharLiteralBufferType;
|
||||||
|
diff -up chromium-116.0.5845.50/content/public/browser/web_ui_browser_interface_broker_registry.h.me chromium-116.0.5845.50/content/public/browser/web_ui_browser_interface_broker_registry.h
|
||||||
|
--- chromium-116.0.5845.50/content/public/browser/web_ui_browser_interface_broker_registry.h.me 2023-08-02 16:18:30.380108125 +0200
|
||||||
|
+++ chromium-116.0.5845.50/content/public/browser/web_ui_browser_interface_broker_registry.h 2023-08-02 16:20:59.660024578 +0200
|
||||||
|
@@ -127,10 +127,10 @@ class CONTENT_EXPORT WebUIBrowserInterfa
|
||||||
|
//
|
||||||
|
// TODO(crbug.com/1407936): Point to WebUIJsBridge documentation.
|
||||||
|
template <typename ControllerType>
|
||||||
|
- JsBridgeTraits<ControllerType>::BinderInitializer& ForWebUIWithJsBridge() {
|
||||||
|
+ typename JsBridgeTraits<ControllerType>::BinderInitializer& ForWebUIWithJsBridge() {
|
||||||
|
using Traits = JsBridgeTraits<ControllerType>;
|
||||||
|
- using Interface = Traits::Interface;
|
||||||
|
- using JsBridgeBinderInitializer = Traits::BinderInitializer;
|
||||||
|
+ using Interface = typename Traits::Interface;
|
||||||
|
+ using JsBridgeBinderInitializer = typename Traits::BinderInitializer;
|
||||||
|
|
||||||
|
// WebUIController::GetType() requires an instantiated WebUIController
|
||||||
|
// (because it's a virtual method and can't be static). Here we only have
|
||||||
|
diff -up chromium-116.0.5845.50/third_party/blink/renderer/core/paint/object_paint_properties_sparse.h.me chromium-116.0.5845.50/third_party/blink/renderer/core/paint/object_paint_properties_sparse.h
|
||||||
|
--- chromium-116.0.5845.50/third_party/blink/renderer/core/paint/object_paint_properties_sparse.h.me 2023-08-02 20:41:23.984729462 +0200
|
||||||
|
+++ chromium-116.0.5845.50/third_party/blink/renderer/core/paint/object_paint_properties_sparse.h 2023-08-02 20:41:53.737583093 +0200
|
||||||
|
@@ -270,8 +270,8 @@ class CORE_EXPORT ObjectPaintPropertiesS
|
||||||
|
NodeList& nodes,
|
||||||
|
NodeId node_id,
|
||||||
|
const ParentType& parent,
|
||||||
|
- NodeType::State&& state,
|
||||||
|
- const NodeType::AnimationState& animation_state =
|
||||||
|
+ typename NodeType::State&& state,
|
||||||
|
+ const typename NodeType::AnimationState& animation_state =
|
||||||
|
NodeType::AnimationState()) {
|
||||||
|
// First, check if we need to add a new node.
|
||||||
|
if (!nodes.HasField(node_id)) {
|
@ -0,0 +1,12 @@
|
|||||||
|
diff -up chromium-117.0.5938.48/third_party/blink/renderer/core/BUILD.gn.me chromium-117.0.5938.48/third_party/blink/renderer/core/BUILD.gn
|
||||||
|
--- chromium-117.0.5938.48/third_party/blink/renderer/core/BUILD.gn.me 2023-09-10 16:54:00.804385139 +0200
|
||||||
|
+++ chromium-117.0.5938.48/third_party/blink/renderer/core/BUILD.gn 2023-09-10 16:54:13.540625077 +0200
|
||||||
|
@@ -1694,8 +1694,6 @@ action_foreach("element_locator_test_pro
|
||||||
|
python_path_root = "${root_out_dir}/pyproto"
|
||||||
|
python_path_proto = "${python_path_root}/third_party/blink/renderer/core/lcp_critical_path_predictor"
|
||||||
|
|
||||||
|
- mnemonic = "ELOC_PROTO"
|
||||||
|
-
|
||||||
|
source_dir = "lcp_critical_path_predictor/test_proto"
|
||||||
|
sources = rebase_path([ "lcp_image_id.asciipb" ], "", source_dir)
|
||||||
|
|
@ -0,0 +1,21 @@
|
|||||||
|
diff -up chromium-117.0.5938.62/net/dns/host_resolver_cache.cc.me chromium-117.0.5938.62/net/dns/host_resolver_cache.cc
|
||||||
|
diff -up chromium-117.0.5938.62/net/dns/host_resolver_cache.h.me chromium-117.0.5938.62/net/dns/host_resolver_cache.h
|
||||||
|
--- chromium-117.0.5938.62/net/dns/host_resolver_cache.h.me 2023-09-14 15:21:24.632965004 +0200
|
||||||
|
+++ chromium-117.0.5938.62/net/dns/host_resolver_cache.h 2023-09-15 09:15:48.511300845 +0200
|
||||||
|
@@ -143,12 +143,14 @@ class NET_EXPORT HostResolverCache final
|
||||||
|
}
|
||||||
|
|
||||||
|
bool operator()(const Key& lhs, const KeyRef& rhs) const {
|
||||||
|
+ const std::string rhs_domain_name{rhs.domain_name};
|
||||||
|
return std::tie(lhs.domain_name, lhs.network_anonymization_key) <
|
||||||
|
- std::tie(rhs.domain_name, *rhs.network_anonymization_key);
|
||||||
|
+ std::tie(rhs_domain_name, *rhs.network_anonymization_key);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool operator()(const KeyRef& lhs, const Key& rhs) const {
|
||||||
|
- return std::tie(lhs.domain_name, *lhs.network_anonymization_key) <
|
||||||
|
+ const std::string lhs_domain_name{lhs.domain_name};
|
||||||
|
+ return std::tie(lhs_domain_name, *lhs.network_anonymization_key) <
|
||||||
|
std::tie(rhs.domain_name, rhs.network_anonymization_key);
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,164 @@
|
|||||||
|
diff -up chromium-115.0.5790.24/chrome/browser/download/bubble/download_bubble_update_service.cc.me chromium-115.0.5790.24/chrome/browser/download/bubble/download_bubble_update_service.cc
|
||||||
|
--- chromium-115.0.5790.24/chrome/browser/download/bubble/download_bubble_update_service.cc.me 2023-06-17 14:50:56.342591702 +0200
|
||||||
|
+++ chromium-115.0.5790.24/chrome/browser/download/bubble/download_bubble_update_service.cc 2023-06-17 14:57:48.024377375 +0200
|
||||||
|
@@ -91,7 +91,7 @@ ItemSortKey GetSortKey(const Item& item)
|
||||||
|
// Helper to get an iterator to the last element in the cache. The cache
|
||||||
|
// must not be empty.
|
||||||
|
template <typename Item>
|
||||||
|
-SortedItems<Item>::const_iterator GetLastIter(const SortedItems<Item>& cache) {
|
||||||
|
+typename SortedItems<Item>::const_iterator GetLastIter(const SortedItems<Item>& cache) {
|
||||||
|
CHECK(!cache.empty());
|
||||||
|
auto it = cache.end();
|
||||||
|
return std::prev(it);
|
||||||
|
@@ -967,9 +967,9 @@ bool DownloadBubbleUpdateService::CacheM
|
||||||
|
}
|
||||||
|
|
||||||
|
template <typename Id, typename Item>
|
||||||
|
-SortedItems<Item>::iterator
|
||||||
|
+typename SortedItems<Item>::iterator
|
||||||
|
DownloadBubbleUpdateService::CacheManager::RemoveItemFromCacheByIter(
|
||||||
|
- SortedItems<Item>::iterator iter,
|
||||||
|
+ typename SortedItems<Item>::iterator iter,
|
||||||
|
SortedItems<Item>& cache,
|
||||||
|
IterMap<Id, Item>& iter_map) {
|
||||||
|
CHECK(iter != cache.end());
|
||||||
|
diff -up chromium-115.0.5790.32/components/optimization_guide/core/tflite_model_executor.h.me chromium-115.0.5790.32/components/optimization_guide/core/tflite_model_executor.h
|
||||||
|
--- chromium-115.0.5790.32/components/optimization_guide/core/tflite_model_executor.h.me 2023-06-18 21:52:53.515625237 +0200
|
||||||
|
+++ chromium-115.0.5790.32/components/optimization_guide/core/tflite_model_executor.h 2023-06-18 21:53:06.881881293 +0200
|
||||||
|
@@ -189,7 +189,7 @@ class TFLiteModelExecutor : public Model
|
||||||
|
void SendForBatchExecution(
|
||||||
|
BatchExecutionCallback callback_on_complete,
|
||||||
|
base::TimeTicks start_time,
|
||||||
|
- ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs)
|
||||||
|
+ typename ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs)
|
||||||
|
override {
|
||||||
|
DCHECK(execution_task_runner_->RunsTasksInCurrentSequence());
|
||||||
|
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||||
|
diff -up chromium-115.0.5790.32/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc.me chromium-115.0.5790.32/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc
|
||||||
|
--- chromium-115.0.5790.32/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc.me 2023-06-19 10:03:32.319218678 +0200
|
||||||
|
+++ chromium-115.0.5790.32/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc 2023-06-19 10:04:12.023942232 +0200
|
||||||
|
@@ -169,7 +169,7 @@ class HTMLFastPathParser {
|
||||||
|
using Span = base::span<const Char>;
|
||||||
|
using USpan = base::span<const UChar>;
|
||||||
|
// 32 matches that used by HTMLToken::Attribute.
|
||||||
|
- typedef std::conditional<std::is_same_v<Char, UChar>,
|
||||||
|
+ typedef typename std::conditional<std::is_same_v<Char, UChar>,
|
||||||
|
UCharLiteralBuffer<32>,
|
||||||
|
LCharLiteralBuffer<32>>::type LiteralBufferType;
|
||||||
|
typedef UCharLiteralBuffer<32> UCharLiteralBufferType;
|
||||||
|
diff -up chromium-116.0.5845.50/content/public/browser/web_ui_browser_interface_broker_registry.h.me chromium-116.0.5845.50/content/public/browser/web_ui_browser_interface_broker_registry.h
|
||||||
|
--- chromium-116.0.5845.50/content/public/browser/web_ui_browser_interface_broker_registry.h.me 2023-08-02 16:18:30.380108125 +0200
|
||||||
|
+++ chromium-116.0.5845.50/content/public/browser/web_ui_browser_interface_broker_registry.h 2023-08-02 16:20:59.660024578 +0200
|
||||||
|
@@ -127,10 +127,10 @@ class CONTENT_EXPORT WebUIBrowserInterfa
|
||||||
|
//
|
||||||
|
// TODO(crbug.com/1407936): Point to WebUIJsBridge documentation.
|
||||||
|
template <typename ControllerType>
|
||||||
|
- JsBridgeTraits<ControllerType>::BinderInitializer& ForWebUIWithJsBridge() {
|
||||||
|
+ typename JsBridgeTraits<ControllerType>::BinderInitializer& ForWebUIWithJsBridge() {
|
||||||
|
using Traits = JsBridgeTraits<ControllerType>;
|
||||||
|
- using Interface = Traits::Interface;
|
||||||
|
- using JsBridgeBinderInitializer = Traits::BinderInitializer;
|
||||||
|
+ using Interface = typename Traits::Interface;
|
||||||
|
+ using JsBridgeBinderInitializer = typename Traits::BinderInitializer;
|
||||||
|
|
||||||
|
// WebUIController::GetType() requires an instantiated WebUIController
|
||||||
|
// (because it's a virtual method and can't be static). Here we only have
|
||||||
|
diff -up chromium-116.0.5845.50/third_party/blink/renderer/core/paint/object_paint_properties_sparse.h.me chromium-116.0.5845.50/third_party/blink/renderer/core/paint/object_paint_properties_sparse.h
|
||||||
|
--- chromium-116.0.5845.50/third_party/blink/renderer/core/paint/object_paint_properties_sparse.h.me 2023-08-02 20:41:23.984729462 +0200
|
||||||
|
+++ chromium-116.0.5845.50/third_party/blink/renderer/core/paint/object_paint_properties_sparse.h 2023-08-02 20:41:53.737583093 +0200
|
||||||
|
@@ -270,8 +270,8 @@ class CORE_EXPORT ObjectPaintPropertiesS
|
||||||
|
NodeList& nodes,
|
||||||
|
NodeId node_id,
|
||||||
|
const ParentType& parent,
|
||||||
|
- NodeType::State&& state,
|
||||||
|
- const NodeType::AnimationState& animation_state =
|
||||||
|
+ typename NodeType::State&& state,
|
||||||
|
+ const typename NodeType::AnimationState& animation_state =
|
||||||
|
NodeType::AnimationState()) {
|
||||||
|
// First, check if we need to add a new node.
|
||||||
|
if (!nodes.HasField(node_id)) {
|
||||||
|
diff -up chromium-117.0.5938.62/components/optimization_guide/core/tflite_model_executor.h.me chromium-117.0.5938.62/components/optimization_guide/core/tflite_model_executor.h
|
||||||
|
--- chromium-117.0.5938.62/components/optimization_guide/core/tflite_model_executor.h.me 2023-09-15 10:22:51.889698402 +0200
|
||||||
|
+++ chromium-117.0.5938.62/components/optimization_guide/core/tflite_model_executor.h 2023-09-15 10:28:26.702716224 +0200
|
||||||
|
@@ -234,7 +234,7 @@ class TFLiteModelExecutor : public Model
|
||||||
|
// Starts the synchronous execution of the model. Returns model outputs.
|
||||||
|
// Model needs to be loaded. Synchronous calls do not load or unload model.
|
||||||
|
std::vector<absl::optional<OutputType>> SendForBatchExecutionSync(
|
||||||
|
- ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs)
|
||||||
|
+ typename ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs)
|
||||||
|
override {
|
||||||
|
DCHECK(execution_task_runner_->RunsTasksInCurrentSequence());
|
||||||
|
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||||
|
@@ -389,7 +389,7 @@ class TFLiteModelExecutor : public Model
|
||||||
|
// executes it on the model execution thread.
|
||||||
|
void LoadModelFileAndBatchExecute(
|
||||||
|
BatchExecutionCallback callback_on_complete,
|
||||||
|
- ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs) {
|
||||||
|
+ typename ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs) {
|
||||||
|
DCHECK(execution_task_runner_->RunsTasksInCurrentSequence());
|
||||||
|
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||||
|
|
||||||
|
@@ -406,7 +406,7 @@ class TFLiteModelExecutor : public Model
|
||||||
|
|
||||||
|
// Batch executes the loaded model for inputs.
|
||||||
|
void BatchExecuteLoadedModel(
|
||||||
|
- ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs,
|
||||||
|
+ typename ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs,
|
||||||
|
std::vector<absl::optional<OutputType>>* outputs) {
|
||||||
|
DCHECK(execution_task_runner_->RunsTasksInCurrentSequence());
|
||||||
|
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||||
|
@@ -466,7 +466,7 @@ class TFLiteModelExecutor : public Model
|
||||||
|
// Unloads the model if needed.
|
||||||
|
void BatchExecuteLoadedModelAndRunCallback(
|
||||||
|
BatchExecutionCallback callback_on_complete,
|
||||||
|
- ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs,
|
||||||
|
+ typename ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs,
|
||||||
|
ExecutionStatus execution_status) {
|
||||||
|
DCHECK(execution_task_runner_->RunsTasksInCurrentSequence());
|
||||||
|
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||||
|
diff -up chromium-117.0.5938.62/components/supervised_user/core/browser/proto_fetcher.cc.me chromium-117.0.5938.62/components/supervised_user/core/browser/proto_fetcher.cc
|
||||||
|
--- chromium-117.0.5938.62/components/supervised_user/core/browser/proto_fetcher.cc.me 2023-09-15 17:20:22.550657586 +0200
|
||||||
|
+++ chromium-117.0.5938.62/components/supervised_user/core/browser/proto_fetcher.cc 2023-09-15 17:24:11.396716734 +0200
|
||||||
|
@@ -399,7 +399,7 @@ class RetryingFetcherImpl final : public
|
||||||
|
RetryingFetcherImpl(const RetryingFetcherImpl&) = delete;
|
||||||
|
RetryingFetcherImpl& operator=(const RetryingFetcherImpl&) = delete;
|
||||||
|
|
||||||
|
- void Start(ProtoFetcher<Response>::Callback callback) override {
|
||||||
|
+ void Start(typename ProtoFetcher<Response>::Callback callback) override {
|
||||||
|
callback_ = std::move(callback);
|
||||||
|
Retry();
|
||||||
|
}
|
||||||
|
@@ -435,7 +435,7 @@ class RetryingFetcherImpl final : public
|
||||||
|
}
|
||||||
|
|
||||||
|
// Client callback.
|
||||||
|
- ProtoFetcher<Response>::Callback callback_;
|
||||||
|
+ typename ProtoFetcher<Response>::Callback callback_;
|
||||||
|
|
||||||
|
// Retry controls.
|
||||||
|
base::OneShotTimer timer_;
|
||||||
|
@@ -578,7 +578,7 @@ ParallelFetchManager<Request, Response>:
|
||||||
|
template <typename Request, typename Response>
|
||||||
|
void ParallelFetchManager<Request, Response>::Fetch(
|
||||||
|
const Request& request,
|
||||||
|
- Fetcher::Callback callback) {
|
||||||
|
+ typename Fetcher::Callback callback) {
|
||||||
|
CHECK(callback) << "Use base::DoNothing() instead of empty callback.";
|
||||||
|
KeyType key = requests_in_flight_.Add(MakeFetcher(request));
|
||||||
|
requests_in_flight_.Lookup(key)->Start(
|
||||||
|
diff -up chromium-117.0.5938.62/components/supervised_user/core/browser/proto_fetcher.h.me chromium-117.0.5938.62/components/supervised_user/core/browser/proto_fetcher.h
|
||||||
|
--- chromium-117.0.5938.62/components/supervised_user/core/browser/proto_fetcher.h.me 2023-09-15 17:20:56.540460391 +0200
|
||||||
|
+++ chromium-117.0.5938.62/components/supervised_user/core/browser/proto_fetcher.h 2023-09-15 17:22:18.246237817 +0200
|
||||||
|
@@ -165,10 +165,10 @@ class ParallelFetchManager {
|
||||||
|
|
||||||
|
// Starts the fetch. Underlying fetcher is stored internally, and will be
|
||||||
|
// cleaned up after finish or when this manager is destroyed.
|
||||||
|
- void Fetch(const Request& request, Fetcher::Callback callback);
|
||||||
|
+ void Fetch(const Request& request, typename Fetcher::Callback callback);
|
||||||
|
|
||||||
|
private:
|
||||||
|
- using KeyType = base::IDMap<std::unique_ptr<Fetcher>>::KeyType;
|
||||||
|
+ using KeyType = typename base::IDMap<std::unique_ptr<Fetcher>>::KeyType;
|
||||||
|
|
||||||
|
// Remove fetcher under key from requests_in_flight_.
|
||||||
|
void Remove(KeyType key);
|
@ -0,0 +1,109 @@
|
|||||||
|
diff -up chromium-115.0.5790.24/media/base/cdm_promise_adapter.cc.workaround_clang_bug-structured_binding chromium-115.0.5790.24/media/base/cdm_promise_adapter.cc
|
||||||
|
--- chromium-115.0.5790.24/media/base/cdm_promise_adapter.cc.workaround_clang_bug-structured_binding 2023-06-07 21:48:37.000000000 +0200
|
||||||
|
+++ chromium-115.0.5790.24/media/base/cdm_promise_adapter.cc 2023-06-17 16:53:20.216628557 +0200
|
||||||
|
@@ -94,7 +94,9 @@ void CdmPromiseAdapter::RejectPromise(ui
|
||||||
|
void CdmPromiseAdapter::Clear(ClearReason reason) {
|
||||||
|
// Reject all outstanding promises.
|
||||||
|
DCHECK(thread_checker_.CalledOnValidThread());
|
||||||
|
- for (auto& [promise_id, promise] : promises_) {
|
||||||
|
+ for (auto& [p_i, p_e] : promises_) {
|
||||||
|
+ auto& promise_id = p_i;
|
||||||
|
+ auto& promise = p_e;
|
||||||
|
TRACE_EVENT_NESTABLE_ASYNC_END1(
|
||||||
|
"media", "CdmPromise", TRACE_ID_WITH_SCOPE("CdmPromise", promise_id),
|
||||||
|
"status", "cleared");
|
||||||
|
diff -up chromium-115.0.5790.24/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc.workaround_clang_bug-structured_binding chromium-115.0.5790.24/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc
|
||||||
|
--- chromium-115.0.5790.24/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc.workaround_clang_bug-structured_binding 2023-06-07 21:48:41.000000000 +0200
|
||||||
|
+++ chromium-115.0.5790.24/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc 2023-06-17 18:47:06.001403966 +0200
|
||||||
|
@@ -655,8 +658,10 @@ NGGridSizingTree NGGridLayoutAlgorithm::
|
||||||
|
NGGridSizingTree sizing_tree;
|
||||||
|
|
||||||
|
if (const auto* layout_subtree = ConstraintSpace().GridLayoutSubtree()) {
|
||||||
|
- auto& [grid_items, layout_data, subtree_size] =
|
||||||
|
- sizing_tree.CreateSizingData();
|
||||||
|
+ auto& [g_i, l_d, s_s] = sizing_tree.CreateSizingData();
|
||||||
|
+ auto& grid_items = g_i;
|
||||||
|
+ auto& layout_data = l_d;
|
||||||
|
+ auto& subtree_size = s_s;
|
||||||
|
|
||||||
|
const auto& node = Node();
|
||||||
|
grid_items =
|
||||||
|
@@ -1798,8 +1803,10 @@ void NGGridLayoutAlgorithm::CompleteTrac
|
||||||
|
bool* opt_needs_additional_pass) const {
|
||||||
|
DCHECK(sizing_subtree);
|
||||||
|
|
||||||
|
- auto& [grid_items, layout_data, subtree_size] =
|
||||||
|
- sizing_subtree.SubtreeRootData();
|
||||||
|
+ auto& [g_i, l_d, s_s] = sizing_subtree.SubtreeRootData();
|
||||||
|
+ auto& grid_items = g_i;
|
||||||
|
+ auto& layout_data = l_d;
|
||||||
|
+ auto& subtree_size = s_s;
|
||||||
|
|
||||||
|
const bool is_for_columns = track_direction == kForColumns;
|
||||||
|
const bool has_non_definite_track =
|
||||||
|
@@ -1924,8 +1931,10 @@ template <typename CallbackFunc>
|
||||||
|
void NGGridLayoutAlgorithm::ForEachSubgrid(
|
||||||
|
const NGGridSizingSubtree& sizing_subtree,
|
||||||
|
const CallbackFunc& callback_func) const {
|
||||||
|
- auto& [grid_items, layout_data, subtree_size] =
|
||||||
|
- sizing_subtree.SubtreeRootData();
|
||||||
|
+ auto& [g_i, l_d, s_s] = sizing_subtree.SubtreeRootData();
|
||||||
|
+ auto& grid_items = g_i;
|
||||||
|
+ auto& layout_data = l_d;
|
||||||
|
+ auto& subtree_size = s_s;
|
||||||
|
|
||||||
|
// If we know this subtree doesn't have nested subgrids we can exit early
|
||||||
|
// instead of iterating over every grid item looking for them.
|
||||||
|
diff -up chromium-115.0.5790.32/content/browser/service_worker/service_worker_context_wrapper.cc.me chromium-115.0.5790.32/content/browser/service_worker/service_worker_context_wrapper.cc
|
||||||
|
--- chromium-115.0.5790.32/content/browser/service_worker/service_worker_context_wrapper.cc.me 2023-06-19 08:04:02.287072722 +0200
|
||||||
|
+++ chromium-115.0.5790.32/content/browser/service_worker/service_worker_context_wrapper.cc 2023-06-19 08:18:24.576814950 +0200
|
||||||
|
@@ -1393,7 +1393,8 @@ void ServiceWorkerContextWrapper::MaybeP
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
- auto [document_url, key, callback] = std::move(*request);
|
||||||
|
+ auto [d_u, key, callback] = std::move(*request);
|
||||||
|
+ auto document_url = d_u;
|
||||||
|
|
||||||
|
DCHECK(document_url.is_valid());
|
||||||
|
TRACE_EVENT1("ServiceWorker",
|
||||||
|
diff -up chromium-117.0.5938.62/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc.me chromium-117.0.5938.62/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc
|
||||||
|
--- chromium-117.0.5938.62/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc.me 2023-09-15 13:03:00.787257048 +0200
|
||||||
|
+++ chromium-117.0.5938.62/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc 2023-09-15 13:15:05.502706522 +0200
|
||||||
|
@@ -3437,7 +3437,10 @@ void NGGridLayoutAlgorithm::PlaceGridIte
|
||||||
|
DCHECK(out_row_break_between);
|
||||||
|
|
||||||
|
const auto& container_space = ConstraintSpace();
|
||||||
|
- const auto& [grid_items, layout_data, tree_size] = sizing_tree.TreeRootData();
|
||||||
|
+ const auto& [g_i, l_d, t_s] = sizing_tree.TreeRootData();
|
||||||
|
+ const auto& grid_items = g_i;
|
||||||
|
+ const auto& layout_data = l_d;
|
||||||
|
+ const auto& tree_size = t_s;
|
||||||
|
|
||||||
|
const auto* cached_layout_subtree = container_space.GridLayoutSubtree();
|
||||||
|
const auto container_writing_direction =
|
||||||
|
@@ -3601,7 +3604,10 @@ void NGGridLayoutAlgorithm::PlaceGridIte
|
||||||
|
|
||||||
|
// TODO(ikilpatrick): Update |SetHasSeenAllChildren| and early exit if true.
|
||||||
|
const auto& constraint_space = ConstraintSpace();
|
||||||
|
- const auto& [grid_items, layout_data, tree_size] = sizing_tree.TreeRootData();
|
||||||
|
+ const auto& [g_i, l_d, t_s] = sizing_tree.TreeRootData();
|
||||||
|
+ const auto& grid_items = g_i;
|
||||||
|
+ const auto& layout_data = l_d;
|
||||||
|
+ const auto& tree_size =t_s;
|
||||||
|
|
||||||
|
const auto* cached_layout_subtree = constraint_space.GridLayoutSubtree();
|
||||||
|
const auto container_writing_direction =
|
||||||
|
diff -up chromium-117.0.5938.62/chrome/browser/ui/autofill/chrome_autofill_client.cc.me chromium-117.0.5938.62/chrome/browser/ui/autofill/chrome_autofill_client.cc
|
||||||
|
--- chromium-117.0.5938.62/chrome/browser/ui/autofill/chrome_autofill_client.cc.me 2023-09-15 18:24:18.984133783 +0200
|
||||||
|
+++ chromium-117.0.5938.62/chrome/browser/ui/autofill/chrome_autofill_client.cc 2023-09-15 18:28:50.420833595 +0200
|
||||||
|
@@ -1100,7 +1100,8 @@ void ChromeAutofillClient::PropagateAuto
|
||||||
|
&renderer_form);
|
||||||
|
}
|
||||||
|
|
||||||
|
- for (const auto& [frame_token, frame_forms] : renderer_forms_by_frame) {
|
||||||
|
+ for (const auto& [f_t, frame_forms] : renderer_forms_by_frame) {
|
||||||
|
+ auto& frame_token = f_t;
|
||||||
|
// Attempt to find the RFH with this `frame_token`.
|
||||||
|
content::RenderFrameHost* rfh = nullptr;
|
||||||
|
GetWebContents().ForEachRenderFrameHost(
|
@ -0,0 +1,15 @@
|
|||||||
|
diff -up chromium-118.0.5993.32/base/allocator/partition_allocator/partition_alloc_config.h.me chromium-118.0.5993.32/base/allocator/partition_allocator/partition_alloc_config.h
|
||||||
|
--- chromium-118.0.5993.32/base/allocator/partition_allocator/partition_alloc_config.h.me 2023-10-03 20:25:01.282782425 +0200
|
||||||
|
+++ chromium-118.0.5993.32/base/allocator/partition_allocator/partition_alloc_config.h 2023-10-03 20:25:27.151236664 +0200
|
||||||
|
@@ -152,10 +152,7 @@ static_assert(sizeof(void*) != 8, "");
|
||||||
|
(!BUILDFLAG(PUT_REF_COUNT_IN_PREVIOUS_SLOT) && \
|
||||||
|
defined(ARCH_CPU_LITTLE_ENDIAN))
|
||||||
|
|
||||||
|
-#define PA_CONFIG_HAS_MEMORY_TAGGING() \
|
||||||
|
- (defined(ARCH_CPU_ARM64) && defined(__clang__) && \
|
||||||
|
- !defined(ADDRESS_SANITIZER) && \
|
||||||
|
- (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID)))
|
||||||
|
+#define PA_CONFIG_HAS_MEMORY_TAGGING() 0
|
||||||
|
|
||||||
|
#if PA_CONFIG(HAS_MEMORY_TAGGING)
|
||||||
|
static_assert(sizeof(void*) == 8);
|
@ -0,0 +1,24 @@
|
|||||||
|
diff -up chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.cc.me chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.cc
|
||||||
|
--- chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.cc.me 2023-10-07 12:24:51.194618144 +0200
|
||||||
|
+++ chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.cc 2023-10-07 12:26:30.727448581 +0200
|
||||||
|
@@ -1219,7 +1219,7 @@ void V4L2CaptureDelegate::SetErrorState(
|
||||||
|
client_->OnError(error, from_here, reason);
|
||||||
|
}
|
||||||
|
|
||||||
|
-#if BUILDFLAG(IS_LINUX)
|
||||||
|
+#if 0 //BUILDFLAG(IS_LINUX)
|
||||||
|
gfx::ColorSpace V4L2CaptureDelegate::BuildColorSpaceFromv4l2() {
|
||||||
|
v4l2_colorspace v4l2_primary = (v4l2_colorspace)video_fmt_.fmt.pix.colorspace;
|
||||||
|
v4l2_quantization v4l2_range =
|
||||||
|
diff -up chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.h.me chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.h
|
||||||
|
--- chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.h.me 2023-10-07 12:29:35.588406023 +0200
|
||||||
|
+++ chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.h 2023-10-07 12:28:42.057036014 +0200
|
||||||
|
@@ -133,7 +133,7 @@ class CAPTURE_EXPORT V4L2CaptureDelegate
|
||||||
|
const base::Location& from_here,
|
||||||
|
const std::string& reason);
|
||||||
|
|
||||||
|
-#if BUILDFLAG(IS_LINUX)
|
||||||
|
+#if 0 //BUILDFLAG(IS_LINUX)
|
||||||
|
// Systems which describe a "color space" usually map that to one or more of
|
||||||
|
// {primary, matrix, transfer, range}. BuildColorSpaceFromv4l2() will use the
|
||||||
|
// matched value as first priority. Otherwise, if there is no best matching
|
@ -0,0 +1,138 @@
|
|||||||
|
diff -up chromium-115.0.5790.102/base/write_build_date_header.py.me chromium-115.0.5790.102/base/write_build_date_header.py
|
||||||
|
--- chromium-115.0.5790.102/base/write_build_date_header.py.me 2023-07-22 14:23:42.620679397 +0200
|
||||||
|
+++ chromium-115.0.5790.102/base/write_build_date_header.py 2023-07-22 15:24:46.833310310 +0200
|
||||||
|
@@ -17,7 +17,7 @@ def main():
|
||||||
|
args = argument_parser.parse_args()
|
||||||
|
|
||||||
|
date_val = int(args.timestamp)
|
||||||
|
- date = datetime.datetime.utcfromtimestamp(date_val)
|
||||||
|
+ date = datetime.datetime.fromtimestamp(date_val, datetime.timezone.utc)
|
||||||
|
output = ('// Generated by //base/write_build_date_header.py\n'
|
||||||
|
'#ifndef BASE_GENERATED_BUILD_DATE_TIMESTAMP \n'
|
||||||
|
f'#define BASE_GENERATED_BUILD_DATE_TIMESTAMP {date_val}'
|
||||||
|
diff -up chromium-115.0.5790.102/build/write_buildflag_header.py.me chromium-115.0.5790.102/build/write_buildflag_header.py
|
||||||
|
--- chromium-115.0.5790.102/build/write_buildflag_header.py.me 2023-07-22 14:16:14.196975451 +0200
|
||||||
|
+++ chromium-115.0.5790.102/build/write_buildflag_header.py 2023-07-22 14:20:24.977239994 +0200
|
||||||
|
@@ -44,7 +44,7 @@ def GetOptions():
|
||||||
|
header_guard = cmdline_options.output.upper()
|
||||||
|
if header_guard[0].isdigit():
|
||||||
|
header_guard = '_' + header_guard
|
||||||
|
- header_guard = re.sub('[^\w]', '_', header_guard)
|
||||||
|
+ header_guard = re.sub(r'[^\w]', '_', header_guard)
|
||||||
|
header_guard += '_'
|
||||||
|
|
||||||
|
# The actual output file is inside the gen dir.
|
||||||
|
diff -up chromium-115.0.5790.102/components/resources/protobufs/binary_proto_generator.py.me chromium-115.0.5790.102/components/resources/protobufs/binary_proto_generator.py
|
||||||
|
--- chromium-115.0.5790.102/components/resources/protobufs/binary_proto_generator.py.me 2023-07-22 14:47:34.230764210 +0200
|
||||||
|
+++ chromium-115.0.5790.102/components/resources/protobufs/binary_proto_generator.py 2023-07-22 15:11:50.360983383 +0200
|
||||||
|
@@ -9,7 +9,8 @@
|
||||||
|
"""
|
||||||
|
from __future__ import print_function
|
||||||
|
import abc
|
||||||
|
-import imp
|
||||||
|
+import types
|
||||||
|
+import importlib
|
||||||
|
import optparse
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
@@ -40,6 +41,12 @@ class GoogleProtobufModuleImporter:
|
||||||
|
return filepath
|
||||||
|
return None
|
||||||
|
|
||||||
|
+ def load_source(name: str, path: str) -> types.ModuleType:
|
||||||
|
+ spec = importlib.util.spec_from_file_location(name, path)
|
||||||
|
+ module = importlib.util.module_from_spec(spec)
|
||||||
|
+ spec.loader.exec_module(module)
|
||||||
|
+ return module
|
||||||
|
+
|
||||||
|
def _module_exists(self, fullname):
|
||||||
|
return self._fullname_to_filepath(fullname) is not None
|
||||||
|
|
||||||
|
@@ -68,7 +75,7 @@ class GoogleProtobufModuleImporter:
|
||||||
|
raise ImportError(fullname)
|
||||||
|
|
||||||
|
filepath = self._fullname_to_filepath(fullname)
|
||||||
|
- return imp.load_source(fullname, filepath)
|
||||||
|
+ return load_source(fullname, filepath)
|
||||||
|
|
||||||
|
class BinaryProtoGenerator:
|
||||||
|
|
||||||
|
diff -up chromium-115.0.5790.102/mojo/public/tools/bindings/concatenate_and_replace_closure_exports.py.me chromium-115.0.5790.102/mojo/public/tools/bindings/concatenate_and_replace_closure_exports.py
|
||||||
|
--- chromium-115.0.5790.102/mojo/public/tools/bindings/concatenate_and_replace_closure_exports.py.me 2023-07-22 15:17:19.114258801 +0200
|
||||||
|
+++ chromium-115.0.5790.102/mojo/public/tools/bindings/concatenate_and_replace_closure_exports.py 2023-07-22 15:17:43.368200491 +0200
|
||||||
|
@@ -32,7 +32,7 @@ def FilterLine(filename, line, output):
|
||||||
|
return
|
||||||
|
|
||||||
|
if line.startswith("goog.provide"):
|
||||||
|
- match = re.match("goog.provide\('([^']+)'\);", line)
|
||||||
|
+ match = re.match(r"goog.provide\('([^']+)'\);", line)
|
||||||
|
if not match:
|
||||||
|
print("Invalid goog.provide line in %s:\n%s" % (filename, line))
|
||||||
|
sys.exit(1)
|
||||||
|
diff -up chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/html_generation_controller.py.me chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/html_generation_controller.py
|
||||||
|
--- chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/html_generation_controller.py.me 2023-07-22 15:12:41.850895179 +0200
|
||||||
|
+++ chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/html_generation_controller.py 2023-07-22 15:12:55.844871207 +0200
|
||||||
|
@@ -18,7 +18,7 @@ class HTMLGenerationController(object):
|
||||||
|
|
||||||
|
def GetHTMLForInlineStylesheet(self, contents):
|
||||||
|
if self.current_module is None:
|
||||||
|
- if re.search('url\(.+\)', contents):
|
||||||
|
+ if re.search(r'url\(.+\)', contents):
|
||||||
|
raise Exception(
|
||||||
|
'Default HTMLGenerationController cannot handle inline style urls')
|
||||||
|
return contents
|
||||||
|
diff -up chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/js_utils.py.me chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/js_utils.py
|
||||||
|
--- chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/js_utils.py.me 2023-07-22 15:14:06.923717910 +0200
|
||||||
|
+++ chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/js_utils.py 2023-07-22 15:18:03.704150614 +0200
|
||||||
|
@@ -4,4 +4,4 @@
|
||||||
|
|
||||||
|
|
||||||
|
def EscapeJSIfNeeded(js):
|
||||||
|
- return js.replace('</script>', '<\/script>')
|
||||||
|
+ return js.replace(r'</script>', r'<\/script>')
|
||||||
|
diff -up chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/parse_html_deps.py.me chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/parse_html_deps.py
|
||||||
|
--- chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/parse_html_deps.py.me 2023-07-22 15:14:30.105662532 +0200
|
||||||
|
+++ chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/parse_html_deps.py 2023-07-22 15:14:57.977595950 +0200
|
||||||
|
@@ -293,6 +293,6 @@ class HTMLModuleParser():
|
||||||
|
html = ''
|
||||||
|
else:
|
||||||
|
if html.find('< /script>') != -1:
|
||||||
|
- raise Exception('Escape script tags with <\/script>')
|
||||||
|
+ raise Exception(r'Escape script tags with <\/script>')
|
||||||
|
|
||||||
|
return HTMLModuleParserResults(html)
|
||||||
|
diff -up chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/style_sheet.py.me chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/style_sheet.py
|
||||||
|
--- chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/style_sheet.py.me 2023-07-22 15:13:12.316842990 +0200
|
||||||
|
+++ chromium-115.0.5790.102/third_party/catapult/common/py_vulcanize/py_vulcanize/style_sheet.py 2023-07-22 15:13:49.684759091 +0200
|
||||||
|
@@ -60,7 +60,7 @@ class ParsedStyleSheet(object):
|
||||||
|
return 'url(data:image/%s;base64,%s)' % (ext[1:], data.decode('utf-8'))
|
||||||
|
|
||||||
|
# I'm assuming we only have url()'s associated with images
|
||||||
|
- return re.sub('url\((?P<quote>"|\'|)(?P<url>[^"\'()]*)(?P=quote)\)',
|
||||||
|
+ return re.sub(r'url\((?P<quote>"|\'|)(?P<url>[^"\'()]*)(?P=quote)\)',
|
||||||
|
InlineUrl, self.contents)
|
||||||
|
|
||||||
|
def AppendDirectlyDependentFilenamesTo(self, dependent_filenames):
|
||||||
|
@@ -72,7 +72,7 @@ class ParsedStyleSheet(object):
|
||||||
|
raise Exception('@imports are not supported')
|
||||||
|
|
||||||
|
matches = re.findall(
|
||||||
|
- 'url\((?:["|\']?)([^"\'()]*)(?:["|\']?)\)',
|
||||||
|
+ r'url\((?:["|\']?)([^"\'()]*)(?:["|\']?)\)',
|
||||||
|
self.contents)
|
||||||
|
|
||||||
|
def resolve_url(url):
|
||||||
|
diff -up chromium-115.0.5790.102/third_party/dawn/generator/generator_lib.py.me chromium-115.0.5790.102/third_party/dawn/generator/generator_lib.py
|
||||||
|
--- chromium-115.0.5790.102/third_party/dawn/generator/generator_lib.py.me 2023-07-22 15:11:56.826972306 +0200
|
||||||
|
+++ chromium-115.0.5790.102/third_party/dawn/generator/generator_lib.py 2023-07-22 15:12:37.550902545 +0200
|
||||||
|
@@ -119,8 +119,8 @@ class _PreprocessingLoader(jinja2.BaseLo
|
||||||
|
source = self.preprocess(f.read())
|
||||||
|
return source, path, lambda: mtime == os.path.getmtime(path)
|
||||||
|
|
||||||
|
- blockstart = re.compile('{%-?\s*(if|elif|else|for|block|macro)[^}]*%}')
|
||||||
|
- blockend = re.compile('{%-?\s*(end(if|for|block|macro)|elif|else)[^}]*%}')
|
||||||
|
+ blockstart = re.compile(r'{%-?\s*(if|elif|else|for|block|macro)[^}]*%}')
|
||||||
|
+ blockend = re.compile(r'{%-?\s*(end(if|for|block|macro)|elif|else)[^}]*%}')
|
||||||
|
|
||||||
|
def preprocess(self, source):
|
||||||
|
lines = source.split('\n')
|
@ -0,0 +1,96 @@
|
|||||||
|
diff -up chromium-115.0.5790.24/media/base/cdm_promise_adapter.cc.workaround_clang_bug-structured_binding chromium-115.0.5790.24/media/base/cdm_promise_adapter.cc
|
||||||
|
--- chromium-115.0.5790.24/media/base/cdm_promise_adapter.cc.workaround_clang_bug-structured_binding 2023-06-07 21:48:37.000000000 +0200
|
||||||
|
+++ chromium-115.0.5790.24/media/base/cdm_promise_adapter.cc 2023-06-17 16:53:20.216628557 +0200
|
||||||
|
@@ -94,7 +94,9 @@ void CdmPromiseAdapter::RejectPromise(ui
|
||||||
|
void CdmPromiseAdapter::Clear(ClearReason reason) {
|
||||||
|
// Reject all outstanding promises.
|
||||||
|
DCHECK(thread_checker_.CalledOnValidThread());
|
||||||
|
- for (auto& [promise_id, promise] : promises_) {
|
||||||
|
+ for (auto& [p_i, p_e] : promises_) {
|
||||||
|
+ auto& promise_id = p_i;
|
||||||
|
+ auto& promise = p_e;
|
||||||
|
TRACE_EVENT_NESTABLE_ASYNC_END1(
|
||||||
|
"media", "CdmPromise", TRACE_ID_WITH_SCOPE("CdmPromise", promise_id),
|
||||||
|
"status", "cleared");
|
||||||
|
diff -up chromium-115.0.5790.24/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc.workaround_clang_bug-structured_binding chromium-115.0.5790.24/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc
|
||||||
|
--- chromium-115.0.5790.24/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc.workaround_clang_bug-structured_binding 2023-06-07 21:48:41.000000000 +0200
|
||||||
|
+++ chromium-115.0.5790.24/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc 2023-06-17 18:47:06.001403966 +0200
|
||||||
|
@@ -655,8 +658,10 @@ NGGridSizingTree NGGridLayoutAlgorithm::
|
||||||
|
NGGridSizingTree sizing_tree;
|
||||||
|
|
||||||
|
if (const auto* layout_subtree = ConstraintSpace().GridLayoutSubtree()) {
|
||||||
|
- auto& [grid_items, layout_data, subtree_size] =
|
||||||
|
- sizing_tree.CreateSizingData();
|
||||||
|
+ auto& [g_i, l_d, s_s] = sizing_tree.CreateSizingData();
|
||||||
|
+ auto& grid_items = g_i;
|
||||||
|
+ auto& layout_data = l_d;
|
||||||
|
+ auto& subtree_size = s_s;
|
||||||
|
|
||||||
|
const auto& node = Node();
|
||||||
|
grid_items =
|
||||||
|
@@ -1798,8 +1803,10 @@ void NGGridLayoutAlgorithm::CompleteTrac
|
||||||
|
bool* opt_needs_additional_pass) const {
|
||||||
|
DCHECK(sizing_subtree);
|
||||||
|
|
||||||
|
- auto& [grid_items, layout_data, subtree_size] =
|
||||||
|
- sizing_subtree.SubtreeRootData();
|
||||||
|
+ auto& [g_i, l_d, s_s] = sizing_subtree.SubtreeRootData();
|
||||||
|
+ auto& grid_items = g_i;
|
||||||
|
+ auto& layout_data = l_d;
|
||||||
|
+ auto& subtree_size = s_s;
|
||||||
|
|
||||||
|
const bool is_for_columns = track_direction == kForColumns;
|
||||||
|
const bool has_non_definite_track =
|
||||||
|
@@ -1924,8 +1931,10 @@ template <typename CallbackFunc>
|
||||||
|
void NGGridLayoutAlgorithm::ForEachSubgrid(
|
||||||
|
const NGGridSizingSubtree& sizing_subtree,
|
||||||
|
const CallbackFunc& callback_func) const {
|
||||||
|
- auto& [grid_items, layout_data, subtree_size] =
|
||||||
|
- sizing_subtree.SubtreeRootData();
|
||||||
|
+ auto& [g_i, l_d, s_s] = sizing_subtree.SubtreeRootData();
|
||||||
|
+ auto& grid_items = g_i;
|
||||||
|
+ auto& layout_data = l_d;
|
||||||
|
+ auto& subtree_size = s_s;
|
||||||
|
|
||||||
|
// If we know this subtree doesn't have nested subgrids we can exit early
|
||||||
|
// instead of iterating over every grid item looking for them.
|
||||||
|
diff -up chromium-115.0.5790.32/content/browser/service_worker/service_worker_context_wrapper.cc.me chromium-115.0.5790.32/content/browser/service_worker/service_worker_context_wrapper.cc
|
||||||
|
--- chromium-115.0.5790.32/content/browser/service_worker/service_worker_context_wrapper.cc.me 2023-06-19 08:04:02.287072722 +0200
|
||||||
|
+++ chromium-115.0.5790.32/content/browser/service_worker/service_worker_context_wrapper.cc 2023-06-19 08:18:24.576814950 +0200
|
||||||
|
@@ -1393,7 +1393,8 @@ void ServiceWorkerContextWrapper::MaybeP
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
- auto [document_url, key, callback] = std::move(*request);
|
||||||
|
+ auto [d_u, key, callback] = std::move(*request);
|
||||||
|
+ auto document_url = d_u;
|
||||||
|
|
||||||
|
DCHECK(document_url.is_valid());
|
||||||
|
TRACE_EVENT1("ServiceWorker",
|
||||||
|
diff -up chromium-117.0.5938.62/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc.me chromium-117.0.5938.62/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc
|
||||||
|
--- chromium-117.0.5938.62/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc.me 2023-09-15 13:03:00.787257048 +0200
|
||||||
|
+++ chromium-117.0.5938.62/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc 2023-09-15 13:15:05.502706522 +0200
|
||||||
|
@@ -3437,7 +3437,10 @@ void NGGridLayoutAlgorithm::PlaceGridIte
|
||||||
|
DCHECK(out_row_break_between);
|
||||||
|
|
||||||
|
const auto& container_space = ConstraintSpace();
|
||||||
|
- const auto& [grid_items, layout_data, tree_size] = sizing_tree.TreeRootData();
|
||||||
|
+ const auto& [g_i, l_d, t_s] = sizing_tree.TreeRootData();
|
||||||
|
+ const auto& grid_items = g_i;
|
||||||
|
+ const auto& layout_data = l_d;
|
||||||
|
+ const auto& tree_size = t_s;
|
||||||
|
|
||||||
|
const auto* cached_layout_subtree = container_space.GridLayoutSubtree();
|
||||||
|
const auto container_writing_direction =
|
||||||
|
@@ -3601,7 +3604,10 @@ void NGGridLayoutAlgorithm::PlaceGridIte
|
||||||
|
|
||||||
|
// TODO(ikilpatrick): Update |SetHasSeenAllChildren| and early exit if true.
|
||||||
|
const auto& constraint_space = ConstraintSpace();
|
||||||
|
- const auto& [grid_items, layout_data, tree_size] = sizing_tree.TreeRootData();
|
||||||
|
+ const auto& [g_i, l_d, t_s] = sizing_tree.TreeRootData();
|
||||||
|
+ const auto& grid_items = g_i;
|
||||||
|
+ const auto& layout_data = l_d;
|
||||||
|
+ const auto& tree_size =t_s;
|
||||||
|
|
||||||
|
const auto* cached_layout_subtree = constraint_space.GridLayoutSubtree();
|
||||||
|
const auto container_writing_direction =
|
@ -0,0 +1,12 @@
|
|||||||
|
diff -up chromium-119.0.6045.59/v8/src/base/small-vector.h.than chromium-119.0.6045.59/v8/src/base/small-vector.h
|
||||||
|
--- chromium-119.0.6045.59/v8/src/base/small-vector.h.than 2023-11-01 16:13:12.645301345 +0100
|
||||||
|
+++ chromium-119.0.6045.59/v8/src/base/small-vector.h 2023-11-01 16:13:29.660610182 +0100
|
||||||
|
@@ -22,7 +22,7 @@ template <typename T, size_t kSize, type
|
||||||
|
class SmallVector {
|
||||||
|
// Currently only support trivially copyable and trivially destructible data
|
||||||
|
// types, as it uses memcpy to copy elements and never calls destructors.
|
||||||
|
- ASSERT_TRIVIALLY_COPYABLE(T);
|
||||||
|
+ //ASSERT_TRIVIALLY_COPYABLE(T);
|
||||||
|
static_assert(std::is_trivially_destructible<T>::value);
|
||||||
|
|
||||||
|
public:
|
@ -0,0 +1,12 @@
|
|||||||
|
diff -up chromium-119.0.6045.59/components/miracle_parameter/common/public/miracle_parameter.h.me chromium-119.0.6045.59/components/miracle_parameter/common/public/miracle_parameter.h
|
||||||
|
--- chromium-119.0.6045.59/components/miracle_parameter/common/public/miracle_parameter.h.me 2023-10-31 21:05:05.548565241 +0100
|
||||||
|
+++ chromium-119.0.6045.59/components/miracle_parameter/common/public/miracle_parameter.h 2023-10-31 21:20:53.945532094 +0100
|
||||||
|
@@ -93,7 +93,7 @@ class MiracleParameter {
|
||||||
|
template <>
|
||||||
|
class MiracleParameter<std::string> : public MiracleParameterBase<std::string> {
|
||||||
|
public:
|
||||||
|
- constexpr MiracleParameter(const base::Feature* feature,
|
||||||
|
+ MiracleParameter(const base::Feature* feature,
|
||||||
|
const char* param_name,
|
||||||
|
std::string default_value)
|
||||||
|
: MiracleParameterBase(feature, param_name, std::move(default_value)) {}
|
@ -0,0 +1,19 @@
|
|||||||
|
diff -up chromium-119.0.6045.105/chrome/browser/media/router/media_router_feature.cc.disable-GlobalMediaControlsCastStartStop chromium-119.0.6045.105/chrome/browser/media/router/media_router_feature.cc
|
||||||
|
--- chromium-119.0.6045.105/chrome/browser/media/router/media_router_feature.cc.disable-GlobalMediaControlsCastStartStop 2023-11-06 12:57:04.096696491 +0100
|
||||||
|
+++ chromium-119.0.6045.105/chrome/browser/media/router/media_router_feature.cc 2023-11-06 13:00:30.480926343 +0100
|
||||||
|
@@ -68,15 +68,9 @@ BASE_FEATURE(kCastMirroringPlayoutDelay,
|
||||||
|
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||||
|
const base::FeatureParam<int> kCastMirroringPlayoutDelayMs{
|
||||||
|
&kCastMirroringPlayoutDelay, "cast_mirroring_playout_delay_ms", -1};
|
||||||
|
-#if BUILDFLAG(IS_CHROMEOS)
|
||||||
|
BASE_FEATURE(kGlobalMediaControlsCastStartStop,
|
||||||
|
"GlobalMediaControlsCastStartStop",
|
||||||
|
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||||
|
-#else
|
||||||
|
-BASE_FEATURE(kGlobalMediaControlsCastStartStop,
|
||||||
|
- "GlobalMediaControlsCastStartStop",
|
||||||
|
- base::FEATURE_ENABLED_BY_DEFAULT);
|
||||||
|
-#endif // BUILDFLAG(IS_CHROMEOS)
|
||||||
|
#endif // !BUILDFLAG(IS_ANDROID)
|
||||||
|
|
||||||
|
namespace {
|
@ -0,0 +1,50 @@
|
|||||||
|
commit fc09363b2278893790d131c72a4ed96ec9837624
|
||||||
|
Author: Elly <ellyjones@chromium.org>
|
||||||
|
Date: Thu Sep 21 22:09:59 2023 +0000
|
||||||
|
|
||||||
|
a11y: don't redefine ATSPI version macros
|
||||||
|
|
||||||
|
As of ATSPI 2.49.90, the library itself defines these, and if we
|
||||||
|
redefine them on the compiler command line, we get a build warning.
|
||||||
|
See: https://gitlab.gnome.org/GNOME/at-spi2-core/-/issues/129
|
||||||
|
|
||||||
|
Bug: None
|
||||||
|
Change-Id: I5cc655bd32c90d7af52c9dca60724f334c4a2a65
|
||||||
|
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4883576
|
||||||
|
Auto-Submit: Elly FJ <ellyjones@chromium.org>
|
||||||
|
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
|
||||||
|
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
|
||||||
|
Cr-Commit-Position: refs/heads/main@{#1199870}
|
||||||
|
|
||||||
|
diff --git a/build/config/linux/atspi2/BUILD.gn b/build/config/linux/atspi2/BUILD.gn
|
||||||
|
index 51b6d33aab3c2..d1629205c82a3 100644
|
||||||
|
--- a/build/config/linux/atspi2/BUILD.gn
|
||||||
|
+++ b/build/config/linux/atspi2/BUILD.gn
|
||||||
|
@@ -17,13 +17,19 @@ if (use_atk) {
|
||||||
|
"--version-as-components",
|
||||||
|
],
|
||||||
|
"value")
|
||||||
|
- atspi_major_version = atspi_version[0]
|
||||||
|
- atspi_minor_version = atspi_version[1]
|
||||||
|
- atspi_micro_version = atspi_version[2]
|
||||||
|
- defines = [
|
||||||
|
- "ATSPI_MAJOR_VERSION=$atspi_major_version",
|
||||||
|
- "ATSPI_MINOR_VERSION=$atspi_minor_version",
|
||||||
|
- "ATSPI_MICRO_VERSION=$atspi_micro_version",
|
||||||
|
- ]
|
||||||
|
+ major = atspi_version[0]
|
||||||
|
+ minor = atspi_version[1]
|
||||||
|
+ micro = atspi_version[2]
|
||||||
|
+
|
||||||
|
+ # ATSPI 2.49.90 now defines these for us and it's an error for us to
|
||||||
|
+ # redefine them on the compiler command line.
|
||||||
|
+ # See ATSPI 927344a34cd5bf81fc64da4968241735ecb4f03b
|
||||||
|
+ if (minor < 49 || (minor == 49 && micro < 90)) {
|
||||||
|
+ defines = [
|
||||||
|
+ "ATSPI_MAJOR_VERSION=$major",
|
||||||
|
+ "ATSPI_MINOR_VERSION=$minor",
|
||||||
|
+ "ATSPI_MICRO_VERSION=$micro",
|
||||||
|
+ ]
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,189 @@
|
|||||||
|
commit 87fca7f1759e800bd72b5ab6511eea17d6400a76
|
||||||
|
Author: Pilar Molina Lopez <pmolinalopez@chromium.org>
|
||||||
|
Date: Tue Oct 24 19:57:55 2023 +0000
|
||||||
|
|
||||||
|
video: hide UseChromeOSDirectVideoDecoder flag on VA-API devices
|
||||||
|
|
||||||
|
We are seeing crashes causes by this CHECK statement:
|
||||||
|
https://source.chromium.org/chromium/chromium/src/+/main:content/public/browser/gpu_utils.cc;l=151;drc=0e777ba9b6c34611705d5b145c92bcd09539011c
|
||||||
|
It's triggered when the user manually disables the UseChromeOSDirectVideoDecoder
|
||||||
|
flag on VA-API devices (Intel and AMD). This flag is supported only on
|
||||||
|
non-Intel and non-AMD devices. This CL adds this information to the flag
|
||||||
|
description and hides the flag in case VA-API is used.
|
||||||
|
|
||||||
|
Bug: 1469285
|
||||||
|
Test: manual test on volteer
|
||||||
|
Change-Id: I153b9ccb3815498c91ce5eee966834060749e247
|
||||||
|
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4960919
|
||||||
|
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
|
||||||
|
Reviewed-by: Andres Calderon Jaramillo <andrescj@chromium.org>
|
||||||
|
Reviewed-by: Avi Drissman <avi@chromium.org>
|
||||||
|
Commit-Queue: Pilar Molina Lopez <pmolinalopez@chromium.org>
|
||||||
|
Cr-Commit-Position: refs/heads/main@{#1214411}
|
||||||
|
|
||||||
|
diff -up chromium-119.0.6045.105/chrome/browser/about_flags.cc.hide-UseChromeOSDirectVideoDecoder-flag-on-VA-API-devices chromium-119.0.6045.105/chrome/browser/about_flags.cc
|
||||||
|
--- chromium-119.0.6045.105/chrome/browser/about_flags.cc.hide-UseChromeOSDirectVideoDecoder-flag-on-VA-API-devices 2023-11-01 19:10:09.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/chrome/browser/about_flags.cc 2023-11-06 17:12:08.057984291 +0100
|
||||||
|
@@ -7771,11 +7771,13 @@ const FeatureEntry kFeatureEntries[] = {
|
||||||
|
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
|
||||||
|
|
||||||
|
#if BUILDFLAG(IS_CHROMEOS) && BUILDFLAG(USE_CHROMEOS_MEDIA_ACCELERATION)
|
||||||
|
+#if !BUILDFLAG(USE_VAAPI)
|
||||||
|
{"chromeos-direct-video-decoder",
|
||||||
|
flag_descriptions::kChromeOSDirectVideoDecoderName,
|
||||||
|
flag_descriptions::kChromeOSDirectVideoDecoderDescription,
|
||||||
|
kOsCrOS | kOsLacros,
|
||||||
|
FEATURE_VALUE_TYPE(media::kUseChromeOSDirectVideoDecoder)},
|
||||||
|
+#endif // !BUILDFLAG(USE_VAAPI)
|
||||||
|
|
||||||
|
{"enable-vbr-encode-acceleration",
|
||||||
|
flag_descriptions::kChromeOSHWVBREncodingName,
|
||||||
|
diff -up chromium-119.0.6045.105/chrome/browser/DEPS.hide-UseChromeOSDirectVideoDecoder-flag-on-VA-API-devices chromium-119.0.6045.105/chrome/browser/DEPS
|
||||||
|
--- chromium-119.0.6045.105/chrome/browser/DEPS.hide-UseChromeOSDirectVideoDecoder-flag-on-VA-API-devices 2023-11-01 19:10:09.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/chrome/browser/DEPS 2023-11-06 17:12:08.055984248 +0100
|
||||||
|
@@ -415,6 +415,7 @@ include_rules = [
|
||||||
|
"+media/base", # For media switches
|
||||||
|
"+media/capabilities", # For InMemoryVideoDecodeStatsDB
|
||||||
|
"+media/cdm",
|
||||||
|
+ "+media/gpu/buildflags.h",
|
||||||
|
"+media/remoting/device_capability_checker.h",
|
||||||
|
"+media/capture",
|
||||||
|
"+media/midi", # For midi switches
|
||||||
|
diff -up chromium-119.0.6045.105/chrome/browser/flag_descriptions.cc.hide-UseChromeOSDirectVideoDecoder-flag-on-VA-API-devices chromium-119.0.6045.105/chrome/browser/flag_descriptions.cc
|
||||||
|
--- chromium-119.0.6045.105/chrome/browser/flag_descriptions.cc.hide-UseChromeOSDirectVideoDecoder-flag-on-VA-API-devices 2023-11-01 19:10:12.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/chrome/browser/flag_descriptions.cc 2023-11-06 17:12:08.059984335 +0100
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
#include "build/build_config.h"
|
||||||
|
#include "build/chromeos_buildflags.h"
|
||||||
|
#include "components/supervised_user/core/common/buildflags.h"
|
||||||
|
+#include "media/gpu/buildflags.h"
|
||||||
|
#include "pdf/buildflags.h"
|
||||||
|
|
||||||
|
// Keep in identical order as the header file, see the comment at the top
|
||||||
|
@@ -7424,6 +7425,7 @@ const char kVaapiVP9kSVCEncoderDescripti
|
||||||
|
#endif // defined(ARCH_CPU_X86_FAMILY) && BUILDFLAG(IS_CHROMEOS)
|
||||||
|
|
||||||
|
#if BUILDFLAG(IS_CHROMEOS) && BUILDFLAG(USE_CHROMEOS_MEDIA_ACCELERATION)
|
||||||
|
+#if !BUILDFLAG(USE_VAAPI)
|
||||||
|
const char kChromeOSDirectVideoDecoderName[] = "ChromeOS Direct Video Decoder";
|
||||||
|
const char kChromeOSDirectVideoDecoderDescription[] =
|
||||||
|
"Enables the hardware-accelerated ChromeOS direct media::VideoDecoder "
|
||||||
|
@@ -7431,7 +7433,8 @@ const char kChromeOSDirectVideoDecoderDe
|
||||||
|
"--platform-disallows-chromeos-direct-video-decoder command line switch "
|
||||||
|
"which is added for platforms where said direct VideoDecoder does not work "
|
||||||
|
"or is not well tested (see the disable_cros_video_decoder USE flag in "
|
||||||
|
- "ChromeOS)";
|
||||||
|
+ "ChromeOS). This flag is supported only on non-Intel and non-AMD devices.";
|
||||||
|
+#endif // !BUILDFLAG(USE_VAAPI)
|
||||||
|
const char kChromeOSHWVBREncodingName[] =
|
||||||
|
"ChromeOS Hardware Variable Bitrate Encoding";
|
||||||
|
const char kChromeOSHWVBREncodingDescription[] =
|
||||||
|
diff -up chromium-119.0.6045.105/content/public/browser/gpu_utils.cc.hide-UseChromeOSDirectVideoDecoder-flag-on-VA-API-devices chromium-119.0.6045.105/content/public/browser/gpu_utils.cc
|
||||||
|
--- chromium-119.0.6045.105/content/public/browser/gpu_utils.cc.hide-UseChromeOSDirectVideoDecoder-flag-on-VA-API-devices 2023-11-01 19:10:26.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/content/public/browser/gpu_utils.cc 2023-11-06 17:12:08.059984335 +0100
|
||||||
|
@@ -133,20 +133,26 @@ const gpu::GpuPreferences GetGpuPreferen
|
||||||
|
#if BUILDFLAG(USE_CHROMEOS_MEDIA_ACCELERATION)
|
||||||
|
// The direct VideoDecoder is disallowed on some particular SoC/platforms.
|
||||||
|
const bool should_use_direct_video_decoder =
|
||||||
|
+#if BUILDFLAG(USE_VAAPI)
|
||||||
|
+ true;
|
||||||
|
+#else
|
||||||
|
!command_line->HasSwitch(
|
||||||
|
switches::kPlatformDisallowsChromeOSDirectVideoDecoder) &&
|
||||||
|
base::FeatureList::IsEnabled(media::kUseChromeOSDirectVideoDecoder);
|
||||||
|
+#endif // BUILDFLAG(USE_VAAPI)
|
||||||
|
+
|
||||||
|
+ gpu_preferences.enable_chromeos_direct_video_decoder =
|
||||||
|
+#if BUILDFLAG(USE_VAAPI)
|
||||||
|
+ should_use_direct_video_decoder;
|
||||||
|
+#else
|
||||||
|
+ // For testing purposes, the following flag allows using the "other" video
|
||||||
|
+ // decoder implementation.
|
||||||
|
+ base::FeatureList::IsEnabled(
|
||||||
|
+ media::kUseAlternateVideoDecoderImplementation)
|
||||||
|
+ ? !should_use_direct_video_decoder
|
||||||
|
+ : should_use_direct_video_decoder;
|
||||||
|
+#endif // BUILDFLAG(USE_VAAPI)
|
||||||
|
|
||||||
|
- // For testing purposes, the following flag allows using the "other" video
|
||||||
|
- // decoder implementation.
|
||||||
|
- if (base::FeatureList::IsEnabled(
|
||||||
|
- media::kUseAlternateVideoDecoderImplementation)) {
|
||||||
|
- gpu_preferences.enable_chromeos_direct_video_decoder =
|
||||||
|
- !should_use_direct_video_decoder;
|
||||||
|
- } else {
|
||||||
|
- gpu_preferences.enable_chromeos_direct_video_decoder =
|
||||||
|
- should_use_direct_video_decoder;
|
||||||
|
- }
|
||||||
|
#if BUILDFLAG(USE_VAAPI)
|
||||||
|
CHECK(gpu_preferences.enable_chromeos_direct_video_decoder);
|
||||||
|
#endif // BUILDFLAG(USE_VAAPI)
|
||||||
|
diff -up chromium-119.0.6045.105/media/base/media_switches.cc.hide-UseChromeOSDirectVideoDecoder-flag-on-VA-API-devices chromium-119.0.6045.105/media/base/media_switches.cc
|
||||||
|
--- chromium-119.0.6045.105/media/base/media_switches.cc.hide-UseChromeOSDirectVideoDecoder-flag-on-VA-API-devices 2023-11-01 19:10:31.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/media/base/media_switches.cc 2023-11-06 17:12:08.060984356 +0100
|
||||||
|
@@ -1202,6 +1202,7 @@ BASE_FEATURE(kChromeOSHWVBREncoding,
|
||||||
|
"ChromeOSHWVBREncoding",
|
||||||
|
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||||
|
|
||||||
|
+#if !BUILDFLAG(USE_VAAPI)
|
||||||
|
// Enable the hardware-accelerated direct video decoder instead of the one
|
||||||
|
// needing the VdaVideoDecoder adapter. This flag is used mainly as a
|
||||||
|
// chrome:flag for developers debugging issues as well as to be able to
|
||||||
|
@@ -1210,6 +1211,7 @@ BASE_FEATURE(kChromeOSHWVBREncoding,
|
||||||
|
BASE_FEATURE(kUseChromeOSDirectVideoDecoder,
|
||||||
|
"UseChromeOSDirectVideoDecoder",
|
||||||
|
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||||
|
+#endif // !BUILDFLAG(USE_VAAPI)
|
||||||
|
|
||||||
|
// Limit the number of concurrent hardware decoder instances on ChromeOS.
|
||||||
|
BASE_FEATURE(kLimitConcurrentDecoderInstances,
|
||||||
|
@@ -1238,7 +1240,7 @@ BASE_FEATURE(kPreferSoftwareMT21,
|
||||||
|
"PreferSoftwareMT21",
|
||||||
|
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||||
|
#endif // defined(ARCH_CPU_ARM_FAMILY)
|
||||||
|
-#if BUILDFLAG(IS_CHROMEOS)
|
||||||
|
+#if BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(USE_VAAPI)
|
||||||
|
// ChromeOS has one of two VideoDecoder implementations active based on
|
||||||
|
// SoC/board specific configurations that are sent via command line flags. This
|
||||||
|
// switch allows using the non default implementation for testing.
|
||||||
|
@@ -1246,7 +1248,7 @@ BASE_FEATURE(kPreferSoftwareMT21,
|
||||||
|
BASE_FEATURE(kUseAlternateVideoDecoderImplementation,
|
||||||
|
"UseAlternateVideoDecoderImplementation",
|
||||||
|
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||||
|
-#endif // BUILDFLAG(IS_CHROMEOS)
|
||||||
|
+#endif // BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(USE_VAAPI)
|
||||||
|
#endif // BUILDFLAG(USE_CHROMEOS_MEDIA_ACCELERATION)
|
||||||
|
|
||||||
|
#if BUILDFLAG(IS_WIN)
|
||||||
|
diff -up chromium-119.0.6045.105/media/base/media_switches.h.hide-UseChromeOSDirectVideoDecoder-flag-on-VA-API-devices chromium-119.0.6045.105/media/base/media_switches.h
|
||||||
|
--- chromium-119.0.6045.105/media/base/media_switches.h.hide-UseChromeOSDirectVideoDecoder-flag-on-VA-API-devices 2023-11-01 19:10:31.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/media/base/media_switches.h 2023-11-06 17:12:08.060984356 +0100
|
||||||
|
@@ -14,6 +14,7 @@
|
||||||
|
#include "build/build_config.h"
|
||||||
|
#include "build/chromeos_buildflags.h"
|
||||||
|
#include "media/base/media_export.h"
|
||||||
|
+#include "media/gpu/buildflags.h"
|
||||||
|
#include "media/media_buildflags.h"
|
||||||
|
|
||||||
|
namespace base {
|
||||||
|
@@ -382,16 +383,18 @@ MEDIA_EXPORT BASE_DECLARE_FEATURE(kBuilt
|
||||||
|
#if BUILDFLAG(USE_CHROMEOS_MEDIA_ACCELERATION)
|
||||||
|
MEDIA_EXPORT BASE_DECLARE_FEATURE(kChromeOSHWAV1Decoder);
|
||||||
|
MEDIA_EXPORT BASE_DECLARE_FEATURE(kChromeOSHWVBREncoding);
|
||||||
|
+#if !BUILDFLAG(USE_VAAPI)
|
||||||
|
MEDIA_EXPORT BASE_DECLARE_FEATURE(kUseChromeOSDirectVideoDecoder);
|
||||||
|
+#endif // !BUILDFLAG(USE_VAAPI)
|
||||||
|
MEDIA_EXPORT BASE_DECLARE_FEATURE(kLimitConcurrentDecoderInstances);
|
||||||
|
MEDIA_EXPORT BASE_DECLARE_FEATURE(kUSeSequencedTaskRunnerForVEA);
|
||||||
|
#if defined(ARCH_CPU_ARM_FAMILY)
|
||||||
|
MEDIA_EXPORT BASE_DECLARE_FEATURE(kPreferGLImageProcessor);
|
||||||
|
MEDIA_EXPORT BASE_DECLARE_FEATURE(kPreferSoftwareMT21);
|
||||||
|
#endif // defined(ARCH_CPU_ARM_FAMILY)
|
||||||
|
-#if BUILDFLAG(IS_CHROMEOS)
|
||||||
|
+#if BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(USE_VAAPI)
|
||||||
|
MEDIA_EXPORT BASE_DECLARE_FEATURE(kUseAlternateVideoDecoderImplementation);
|
||||||
|
-#endif // BUILDFLAG(IS_CHROMEOS)
|
||||||
|
+#endif // BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(USE_VAAPI)
|
||||||
|
#endif // BUILDFLAG(USE_CHROMEOS_MEDIA_ACCELERATION)
|
||||||
|
|
||||||
|
#if BUILDFLAG(IS_WIN)
|
@ -0,0 +1,470 @@
|
|||||||
|
diff -up chromium-119.0.6045.105/base/check_op.h.missing-header-files chromium-119.0.6045.105/base/check_op.h
|
||||||
|
--- chromium-119.0.6045.105/base/check_op.h.missing-header-files 2023-11-01 19:10:05.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/base/check_op.h 2023-11-06 14:34:01.808868982 +0100
|
||||||
|
@@ -5,6 +5,7 @@
|
||||||
|
#ifndef BASE_CHECK_OP_H_
|
||||||
|
#define BASE_CHECK_OP_H_
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <string>
|
||||||
|
#include <string_view>
|
||||||
|
diff -up chromium-119.0.6045.105/base/containers/flat_map.h.missing-header-files chromium-119.0.6045.105/base/containers/flat_map.h
|
||||||
|
--- chromium-119.0.6045.105/base/containers/flat_map.h.missing-header-files 2023-11-01 19:10:05.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/base/containers/flat_map.h 2023-11-06 14:34:01.813869089 +0100
|
||||||
|
@@ -5,6 +5,7 @@
|
||||||
|
#ifndef BASE_CONTAINERS_FLAT_MAP_H_
|
||||||
|
#define BASE_CONTAINERS_FLAT_MAP_H_
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <functional>
|
||||||
|
#include <tuple>
|
||||||
|
#include <type_traits>
|
||||||
|
diff -up chromium-119.0.6045.105/base/debug/profiler.h.missing-header-files chromium-119.0.6045.105/base/debug/profiler.h
|
||||||
|
--- chromium-119.0.6045.105/base/debug/profiler.h.missing-header-files 2023-11-01 19:10:05.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/base/debug/profiler.h 2023-11-06 14:34:01.809869004 +0100
|
||||||
|
@@ -8,6 +8,7 @@
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include "base/base_export.h"
|
||||||
|
diff -up chromium-119.0.6045.105/base/memory/ref_counted.h.missing-header-files chromium-119.0.6045.105/base/memory/ref_counted.h
|
||||||
|
--- chromium-119.0.6045.105/base/memory/ref_counted.h.missing-header-files 2023-11-01 19:10:05.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/base/memory/ref_counted.h 2023-11-06 14:34:01.808868982 +0100
|
||||||
|
@@ -6,6 +6,7 @@
|
||||||
|
#define BASE_MEMORY_REF_COUNTED_H_
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
+#include <limits>
|
||||||
|
|
||||||
|
#include <limits>
|
||||||
|
#include <utility>
|
||||||
|
diff -up chromium-119.0.6045.105/chrome/browser/privacy_budget/encountered_surface_tracker.h.missing-header-files chromium-119.0.6045.105/chrome/browser/privacy_budget/encountered_surface_tracker.h
|
||||||
|
--- chromium-119.0.6045.105/chrome/browser/privacy_budget/encountered_surface_tracker.h.missing-header-files 2023-11-01 19:10:13.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/chrome/browser/privacy_budget/encountered_surface_tracker.h 2023-11-06 14:34:01.814869110 +0100
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
#include "base/containers/flat_set.h"
|
||||||
|
diff -up chromium-119.0.6045.105/chrome/browser/webauthn/authenticator_request_dialog_model.h.missing-header-files chromium-119.0.6045.105/chrome/browser/webauthn/authenticator_request_dialog_model.h
|
||||||
|
--- chromium-119.0.6045.105/chrome/browser/webauthn/authenticator_request_dialog_model.h.missing-header-files 2023-11-01 19:10:16.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/chrome/browser/webauthn/authenticator_request_dialog_model.h 2023-11-06 14:34:01.817869174 +0100
|
||||||
|
@@ -8,6 +8,7 @@
|
||||||
|
#include <memory>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
+#include <variant>
|
||||||
|
|
||||||
|
#include "base/containers/span.h"
|
||||||
|
#include "base/functional/callback_forward.h"
|
||||||
|
diff -up chromium-119.0.6045.105/chrome/test/chromedriver/chrome/web_view_impl.cc.missing-header-files chromium-119.0.6045.105/chrome/test/chromedriver/chrome/web_view_impl.cc
|
||||||
|
--- chromium-119.0.6045.105/chrome/test/chromedriver/chrome/web_view_impl.cc.missing-header-files 2023-11-01 19:10:16.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/chrome/test/chromedriver/chrome/web_view_impl.cc 2023-11-06 14:34:01.818869196 +0100
|
||||||
|
@@ -11,6 +11,7 @@
|
||||||
|
#include <queue>
|
||||||
|
#include <utility>
|
||||||
|
#include <vector>
|
||||||
|
+#include <cstring>
|
||||||
|
|
||||||
|
#include "base/check.h"
|
||||||
|
#include "base/files/file_path.h"
|
||||||
|
diff -up chromium-119.0.6045.105/components/autofill/core/browser/autofill_ablation_study.h.missing-header-files chromium-119.0.6045.105/components/autofill/core/browser/autofill_ablation_study.h
|
||||||
|
--- chromium-119.0.6045.105/components/autofill/core/browser/autofill_ablation_study.h.missing-header-files 2023-11-01 19:10:19.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/components/autofill/core/browser/autofill_ablation_study.h 2023-11-06 14:34:01.815869132 +0100
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
class GURL;
|
||||||
|
diff -up chromium-119.0.6045.105/components/crash/core/app/crash_reporter_client.h.missing-header-files chromium-119.0.6045.105/components/crash/core/app/crash_reporter_client.h
|
||||||
|
--- chromium-119.0.6045.105/components/crash/core/app/crash_reporter_client.h.missing-header-files 2023-11-01 19:10:20.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/components/crash/core/app/crash_reporter_client.h 2023-11-06 14:34:01.813869089 +0100
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include "build/build_config.h"
|
||||||
|
diff -up chromium-119.0.6045.105/components/feature_engagement/internal/event_storage_validator.h.missing-header-files chromium-119.0.6045.105/components/feature_engagement/internal/event_storage_validator.h
|
||||||
|
--- chromium-119.0.6045.105/components/feature_engagement/internal/event_storage_validator.h.missing-header-files 2023-11-01 19:10:21.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/components/feature_engagement/internal/event_storage_validator.h 2023-11-06 14:34:01.814869110 +0100
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
namespace feature_engagement {
|
||||||
|
diff -up chromium-119.0.6045.105/components/feature_engagement/internal/never_event_storage_validator.h.missing-header-files chromium-119.0.6045.105/components/feature_engagement/internal/never_event_storage_validator.h
|
||||||
|
--- chromium-119.0.6045.105/components/feature_engagement/internal/never_event_storage_validator.h.missing-header-files 2023-11-01 19:10:21.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/components/feature_engagement/internal/never_event_storage_validator.h 2023-11-06 14:34:01.814869110 +0100
|
||||||
|
@@ -5,6 +5,7 @@
|
||||||
|
#ifndef COMPONENTS_FEATURE_ENGAGEMENT_INTERNAL_NEVER_EVENT_STORAGE_VALIDATOR_H_
|
||||||
|
#define COMPONENTS_FEATURE_ENGAGEMENT_INTERNAL_NEVER_EVENT_STORAGE_VALIDATOR_H_
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include "components/feature_engagement/internal/event_storage_validator.h"
|
||||||
|
diff -up chromium-119.0.6045.105/components/omnibox/browser/on_device_head_model.h.missing-header-files chromium-119.0.6045.105/components/omnibox/browser/on_device_head_model.h
|
||||||
|
--- chromium-119.0.6045.105/components/omnibox/browser/on_device_head_model.h.missing-header-files 2023-11-01 19:10:21.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/components/omnibox/browser/on_device_head_model.h 2023-11-06 14:34:01.815869132 +0100
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <string>
|
||||||
|
#include <utility>
|
||||||
|
#include <vector>
|
||||||
|
diff -up chromium-119.0.6045.105/components/password_manager/core/browser/generation/password_generator.h.missing-header-files chromium-119.0.6045.105/components/password_manager/core/browser/generation/password_generator.h
|
||||||
|
--- chromium-119.0.6045.105/components/password_manager/core/browser/generation/password_generator.h.missing-header-files 2023-11-01 19:10:21.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/components/password_manager/core/browser/generation/password_generator.h 2023-11-06 14:34:01.814869110 +0100
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
|
||||||
|
diff -up chromium-119.0.6045.105/components/payments/content/utility/fingerprint_parser.h.missing-header-files chromium-119.0.6045.105/components/payments/content/utility/fingerprint_parser.h
|
||||||
|
--- chromium-119.0.6045.105/components/payments/content/utility/fingerprint_parser.h.missing-header-files 2023-11-01 19:10:21.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/components/payments/content/utility/fingerprint_parser.h 2023-11-06 14:34:01.815869132 +0100
|
||||||
|
@@ -5,6 +5,7 @@
|
||||||
|
#ifndef COMPONENTS_PAYMENTS_CONTENT_UTILITY_FINGERPRINT_PARSER_H_
|
||||||
|
#define COMPONENTS_PAYMENTS_CONTENT_UTILITY_FINGERPRINT_PARSER_H_
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
diff -up chromium-119.0.6045.105/gin/time_clamper.h.missing-header-files chromium-119.0.6045.105/gin/time_clamper.h
|
||||||
|
--- chromium-119.0.6045.105/gin/time_clamper.h.missing-header-files 2023-11-01 19:10:28.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/gin/time_clamper.h 2023-11-06 14:34:01.818869196 +0100
|
||||||
|
@@ -48,7 +48,7 @@ class GIN_EXPORT TimeClamper {
|
||||||
|
const int64_t micros = now_micros % 1000;
|
||||||
|
// abs() is necessary for devices with times before unix-epoch (most likely
|
||||||
|
// configured incorrectly).
|
||||||
|
- if (abs(micros) + kResolutionMicros < 1000) {
|
||||||
|
+ if (std::abs(micros) + kResolutionMicros < 1000) {
|
||||||
|
return now_micros / 1000;
|
||||||
|
}
|
||||||
|
return ClampTimeResolution(now_micros) / 1000;
|
||||||
|
diff -up chromium-119.0.6045.105/gpu/config/gpu_feature_info.h.missing-header-files chromium-119.0.6045.105/gpu/config/gpu_feature_info.h
|
||||||
|
--- chromium-119.0.6045.105/gpu/config/gpu_feature_info.h.missing-header-files 2023-11-01 19:10:28.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/gpu/config/gpu_feature_info.h 2023-11-06 14:34:01.809869004 +0100
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
diff -up chromium-119.0.6045.105/net/base/net_export.h.missing-header-files chromium-119.0.6045.105/net/base/net_export.h
|
||||||
|
--- chromium-119.0.6045.105/net/base/net_export.h.missing-header-files 2023-11-01 19:10:32.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/net/base/net_export.h 2023-11-06 14:34:01.809869004 +0100
|
||||||
|
@@ -5,6 +5,8 @@
|
||||||
|
#ifndef NET_BASE_NET_EXPORT_H_
|
||||||
|
#define NET_BASE_NET_EXPORT_H_
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
+
|
||||||
|
// Defines NET_EXPORT so that functionality implemented by the net module can
|
||||||
|
// be exported to consumers, and NET_EXPORT_PRIVATE that allows unit tests to
|
||||||
|
// access features not intended to be used directly by real consumers.
|
||||||
|
diff -up chromium-119.0.6045.105/pdf/document_attachment_info.h.missing-header-files chromium-119.0.6045.105/pdf/document_attachment_info.h
|
||||||
|
--- chromium-119.0.6045.105/pdf/document_attachment_info.h.missing-header-files 2023-11-01 19:10:34.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/pdf/document_attachment_info.h 2023-11-06 14:34:01.815869132 +0100
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
|
||||||
|
diff -up chromium-119.0.6045.105/sandbox/linux/syscall_broker/broker_file_permission.h.missing-header-files chromium-119.0.6045.105/sandbox/linux/syscall_broker/broker_file_permission.h
|
||||||
|
--- chromium-119.0.6045.105/sandbox/linux/syscall_broker/broker_file_permission.h.missing-header-files 2023-11-01 19:10:34.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/sandbox/linux/syscall_broker/broker_file_permission.h 2023-11-06 14:34:01.809869004 +0100
|
||||||
|
@@ -5,6 +5,7 @@
|
||||||
|
#ifndef SANDBOX_LINUX_SYSCALL_BROKER_BROKER_FILE_PERMISSION_H_
|
||||||
|
#define SANDBOX_LINUX_SYSCALL_BROKER_BROKER_FILE_PERMISSION_H_
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <bitset>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <string>
|
||||||
|
diff -up chromium-119.0.6045.105/services/device/public/cpp/generic_sensor/sensor_reading.h.missing-header-files chromium-119.0.6045.105/services/device/public/cpp/generic_sensor/sensor_reading.h
|
||||||
|
--- chromium-119.0.6045.105/services/device/public/cpp/generic_sensor/sensor_reading.h.missing-header-files 2023-11-01 19:10:35.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/services/device/public/cpp/generic_sensor/sensor_reading.h 2023-11-06 14:34:01.820869238 +0100
|
||||||
|
@@ -8,6 +8,9 @@
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
+#include <cstddef>
|
||||||
|
+#include <cstdint>
|
||||||
|
+
|
||||||
|
#include <type_traits>
|
||||||
|
|
||||||
|
namespace device {
|
||||||
|
diff -up chromium-119.0.6045.105/skia/ext/skcolorspace_trfn.cc.missing-header-files chromium-119.0.6045.105/skia/ext/skcolorspace_trfn.cc
|
||||||
|
--- chromium-119.0.6045.105/skia/ext/skcolorspace_trfn.cc.missing-header-files 2023-11-01 19:10:35.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/skia/ext/skcolorspace_trfn.cc 2023-11-06 14:34:01.818869196 +0100
|
||||||
|
@@ -3,6 +3,7 @@
|
||||||
|
// found in the LICENSE file.
|
||||||
|
|
||||||
|
#include "skia/ext/skcolorspace_trfn.h"
|
||||||
|
+#include <cmath>
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/abseil-cpp/absl/strings/string_view.h.missing-header-files chromium-119.0.6045.105/third_party/abseil-cpp/absl/strings/string_view.h
|
||||||
|
--- chromium-119.0.6045.105/third_party/abseil-cpp/absl/strings/string_view.h.missing-header-files 2023-11-01 19:10:36.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/abseil-cpp/absl/strings/string_view.h 2023-11-06 14:34:01.809869004 +0100
|
||||||
|
@@ -27,6 +27,7 @@
|
||||||
|
#ifndef ABSL_STRINGS_STRING_VIEW_H_
|
||||||
|
#define ABSL_STRINGS_STRING_VIEW_H_
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <algorithm>
|
||||||
|
#include <cassert>
|
||||||
|
#include <cstddef>
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/angle/include/GLSLANG/ShaderVars.h.missing-header-files chromium-119.0.6045.105/third_party/angle/include/GLSLANG/ShaderVars.h
|
||||||
|
--- chromium-119.0.6045.105/third_party/angle/include/GLSLANG/ShaderVars.h.missing-header-files 2023-11-01 19:11:59.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/angle/include/GLSLANG/ShaderVars.h 2023-11-06 14:34:01.810869025 +0100
|
||||||
|
@@ -10,6 +10,7 @@
|
||||||
|
#ifndef GLSLANG_SHADERVARS_H_
|
||||||
|
#define GLSLANG_SHADERVARS_H_
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <algorithm>
|
||||||
|
#include <array>
|
||||||
|
#include <cstdint>
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/blink/public/common/bluetooth/web_bluetooth_device_id.h.missing-header-files chromium-119.0.6045.105/third_party/blink/public/common/bluetooth/web_bluetooth_device_id.h
|
||||||
|
--- chromium-119.0.6045.105/third_party/blink/public/common/bluetooth/web_bluetooth_device_id.h.missing-header-files 2023-11-01 19:10:37.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/blink/public/common/bluetooth/web_bluetooth_device_id.h 2023-11-06 14:34:01.810869025 +0100
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <array>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <functional>
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/dawn/src/tint/lang/spirv/reader/ast_parser/namer.h.missing-header-files chromium-119.0.6045.105/third_party/dawn/src/tint/lang/spirv/reader/ast_parser/namer.h
|
||||||
|
--- chromium-119.0.6045.105/third_party/dawn/src/tint/lang/spirv/reader/ast_parser/namer.h.missing-header-files 2023-11-01 19:13:50.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/dawn/src/tint/lang/spirv/reader/ast_parser/namer.h 2023-11-06 14:34:01.810869025 +0100
|
||||||
|
@@ -15,6 +15,7 @@
|
||||||
|
#ifndef SRC_TINT_LANG_SPIRV_READER_AST_PARSER_NAMER_H_
|
||||||
|
#define SRC_TINT_LANG_SPIRV_READER_AST_PARSER_NAMER_H_
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <string>
|
||||||
|
#include <unordered_map>
|
||||||
|
#include <vector>
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/ipcz/src/ipcz/router_link.h.missing-header-files chromium-119.0.6045.105/third_party/ipcz/src/ipcz/router_link.h
|
||||||
|
--- chromium-119.0.6045.105/third_party/ipcz/src/ipcz/router_link.h.missing-header-files 2023-11-01 19:11:20.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/ipcz/src/ipcz/router_link.h 2023-11-06 14:34:01.819869217 +0100
|
||||||
|
@@ -5,6 +5,7 @@
|
||||||
|
#ifndef IPCZ_SRC_IPCZ_ROUTER_LINK_H_
|
||||||
|
#define IPCZ_SRC_IPCZ_ROUTER_LINK_H_
|
||||||
|
|
||||||
|
+#include <memory>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <functional>
|
||||||
|
#include <memory>
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/material_color_utilities/src/cpp/palettes/tones.cc.missing-header-files chromium-119.0.6045.105/third_party/material_color_utilities/src/cpp/palettes/tones.cc
|
||||||
|
--- chromium-119.0.6045.105/third_party/material_color_utilities/src/cpp/palettes/tones.cc.missing-header-files 2023-11-01 19:11:53.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/material_color_utilities/src/cpp/palettes/tones.cc 2023-11-06 14:34:01.819869217 +0100
|
||||||
|
@@ -14,6 +14,7 @@
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
+#include <cmath>
|
||||||
|
#include "cpp/palettes/tones.h"
|
||||||
|
|
||||||
|
#include "cpp/cam/cam.h"
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/openscreen/src/discovery/dnssd/public/dns_sd_txt_record.h.missing-header-files chromium-119.0.6045.105/third_party/openscreen/src/discovery/dnssd/public/dns_sd_txt_record.h
|
||||||
|
--- chromium-119.0.6045.105/third_party/openscreen/src/discovery/dnssd/public/dns_sd_txt_record.h.missing-header-files 2023-11-01 19:11:59.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/openscreen/src/discovery/dnssd/public/dns_sd_txt_record.h 2023-11-06 14:34:01.810869025 +0100
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <functional>
|
||||||
|
#include <map>
|
||||||
|
#include <set>
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/pdfium/constants/annotation_flags.h.missing-header-files chromium-119.0.6045.105/third_party/pdfium/constants/annotation_flags.h
|
||||||
|
--- chromium-119.0.6045.105/third_party/pdfium/constants/annotation_flags.h.missing-header-files 2023-11-01 19:14:48.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/pdfium/constants/annotation_flags.h 2023-11-06 14:34:01.815869132 +0100
|
||||||
|
@@ -7,6 +7,8 @@
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
+
|
||||||
|
namespace pdfium {
|
||||||
|
namespace annotation_flags {
|
||||||
|
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/ruy/src/ruy/profiler/instrumentation.h.missing-header-files chromium-119.0.6045.105/third_party/ruy/src/ruy/profiler/instrumentation.h
|
||||||
|
--- chromium-119.0.6045.105/third_party/ruy/src/ruy/profiler/instrumentation.h.missing-header-files 2023-11-01 19:12:02.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/ruy/src/ruy/profiler/instrumentation.h 2023-11-06 14:34:01.813869089 +0100
|
||||||
|
@@ -17,6 +17,7 @@ limitations under the License.
|
||||||
|
#define RUY_RUY_PROFILER_INSTRUMENTATION_H_
|
||||||
|
|
||||||
|
#ifdef RUY_PROFILER
|
||||||
|
+#include <string>
|
||||||
|
#include <cstdio>
|
||||||
|
#include <mutex>
|
||||||
|
#include <vector>
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/swiftshader/src/System/LRUCache.hpp.missing-header-files chromium-119.0.6045.105/third_party/swiftshader/src/System/LRUCache.hpp
|
||||||
|
--- chromium-119.0.6045.105/third_party/swiftshader/src/System/LRUCache.hpp.missing-header-files 2023-11-01 19:12:15.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/swiftshader/src/System/LRUCache.hpp 2023-11-06 14:34:01.810869025 +0100
|
||||||
|
@@ -17,6 +17,7 @@
|
||||||
|
|
||||||
|
#include "System/Debug.hpp"
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <functional>
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/Signals.inc.missing-header-files chromium-119.0.6045.105/third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/Signals.inc
|
||||||
|
--- chromium-119.0.6045.105/third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/Signals.inc.missing-header-files 2023-11-01 19:12:42.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/Signals.inc 2023-11-06 14:34:01.814869110 +0100
|
||||||
|
@@ -45,6 +45,7 @@
|
||||||
|
#include "llvm/Support/SaveAndRestore.h"
|
||||||
|
#include "llvm/Support/raw_ostream.h"
|
||||||
|
#include <algorithm>
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <string>
|
||||||
|
#include <sysexits.h>
|
||||||
|
#ifdef HAVE_BACKTRACE
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/tflite/src/tensorflow/lite/kernels/internal/spectrogram.h.missing-header-files chromium-119.0.6045.105/third_party/tflite/src/tensorflow/lite/kernels/internal/spectrogram.h
|
||||||
|
--- chromium-119.0.6045.105/third_party/tflite/src/tensorflow/lite/kernels/internal/spectrogram.h.missing-header-files 2023-11-01 19:13:20.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/tflite/src/tensorflow/lite/kernels/internal/spectrogram.h 2023-11-06 14:34:01.813869089 +0100
|
||||||
|
@@ -31,6 +31,7 @@ limitations under the License.
|
||||||
|
#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_SPECTROGRAM_H_
|
||||||
|
#define TENSORFLOW_LITE_KERNELS_INTERNAL_SPECTROGRAM_H_
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <complex>
|
||||||
|
#include <deque>
|
||||||
|
#include <vector>
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/vulkan-deps/vulkan-validation-layers/src/layers/external/vma/vk_mem_alloc.h.missing-header-files chromium-119.0.6045.105/third_party/vulkan-deps/vulkan-validation-layers/src/layers/external/vma/vk_mem_alloc.h
|
||||||
|
--- chromium-119.0.6045.105/third_party/vulkan-deps/vulkan-validation-layers/src/layers/external/vma/vk_mem_alloc.h.missing-header-files 2023-11-01 19:12:45.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/vulkan-deps/vulkan-validation-layers/src/layers/external/vma/vk_mem_alloc.h 2023-11-06 14:34:01.817869174 +0100
|
||||||
|
@@ -2884,6 +2884,7 @@ static void vma_aligned_free(void* VMA_N
|
||||||
|
|
||||||
|
// Define this macro to 1 to enable functions: vmaBuildStatsString, vmaFreeStatsString.
|
||||||
|
#if VMA_STATS_STRING_ENABLED
|
||||||
|
+#include <stdio.h>
|
||||||
|
static inline void VmaUint32ToStr(char* VMA_NOT_NULL outStr, size_t strLen, uint32_t num)
|
||||||
|
{
|
||||||
|
snprintf(outStr, strLen, "%u", static_cast<unsigned int>(num));
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h.missing-header-files chromium-119.0.6045.105/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h
|
||||||
|
--- chromium-119.0.6045.105/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h.missing-header-files 2023-11-01 19:12:13.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h 2023-11-06 14:34:01.812869068 +0100
|
||||||
|
@@ -2388,6 +2388,7 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeV
|
||||||
|
#ifdef VMA_IMPLEMENTATION
|
||||||
|
#undef VMA_IMPLEMENTATION
|
||||||
|
|
||||||
|
+#include <cstdio>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <cstring>
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/webrtc/audio/utility/channel_mixer.cc.missing-header-files chromium-119.0.6045.105/third_party/webrtc/audio/utility/channel_mixer.cc
|
||||||
|
--- chromium-119.0.6045.105/third_party/webrtc/audio/utility/channel_mixer.cc.missing-header-files 2023-11-01 19:14:05.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/webrtc/audio/utility/channel_mixer.cc 2023-11-06 14:34:01.819869217 +0100
|
||||||
|
@@ -8,6 +8,8 @@
|
||||||
|
* be found in the AUTHORS file in the root of the source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
+#include <cstring>
|
||||||
|
+
|
||||||
|
#include "audio/utility/channel_mixer.h"
|
||||||
|
|
||||||
|
#include "audio/utility/channel_mixing_matrix.h"
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/webrtc/common_video/h264/sps_parser.h.missing-header-files chromium-119.0.6045.105/third_party/webrtc/common_video/h264/sps_parser.h
|
||||||
|
--- chromium-119.0.6045.105/third_party/webrtc/common_video/h264/sps_parser.h.missing-header-files 2023-11-01 19:14:06.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/webrtc/common_video/h264/sps_parser.h 2023-11-06 14:34:01.819869217 +0100
|
||||||
|
@@ -11,6 +11,7 @@
|
||||||
|
#ifndef COMMON_VIDEO_H264_SPS_PARSER_H_
|
||||||
|
#define COMMON_VIDEO_H264_SPS_PARSER_H_
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include "absl/types/optional.h"
|
||||||
|
#include "rtc_base/bitstream_reader.h"
|
||||||
|
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/webrtc/modules/include/module_common_types_public.h.missing-header-files chromium-119.0.6045.105/third_party/webrtc/modules/include/module_common_types_public.h
|
||||||
|
--- chromium-119.0.6045.105/third_party/webrtc/modules/include/module_common_types_public.h.missing-header-files 2023-11-01 19:14:11.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/webrtc/modules/include/module_common_types_public.h 2023-11-06 14:34:01.819869217 +0100
|
||||||
|
@@ -11,6 +11,7 @@
|
||||||
|
#ifndef MODULES_INCLUDE_MODULE_COMMON_TYPES_PUBLIC_H_
|
||||||
|
#define MODULES_INCLUDE_MODULE_COMMON_TYPES_PUBLIC_H_
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <limits>
|
||||||
|
|
||||||
|
#include "absl/types/optional.h"
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/webrtc/modules/video_coding/utility/ivf_file_reader.cc.missing-header-files chromium-119.0.6045.105/third_party/webrtc/modules/video_coding/utility/ivf_file_reader.cc
|
||||||
|
--- chromium-119.0.6045.105/third_party/webrtc/modules/video_coding/utility/ivf_file_reader.cc.missing-header-files 2023-11-01 19:14:12.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/webrtc/modules/video_coding/utility/ivf_file_reader.cc 2023-11-06 14:34:01.819869217 +0100
|
||||||
|
@@ -10,6 +10,7 @@
|
||||||
|
|
||||||
|
#include "modules/video_coding/utility/ivf_file_reader.h"
|
||||||
|
|
||||||
|
+#include <cstring>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
diff -up chromium-119.0.6045.105/ui/base/prediction/kalman_filter.h.missing-header-files chromium-119.0.6045.105/ui/base/prediction/kalman_filter.h
|
||||||
|
--- chromium-119.0.6045.105/ui/base/prediction/kalman_filter.h.missing-header-files 2023-11-01 19:11:28.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/ui/base/prediction/kalman_filter.h 2023-11-06 14:34:01.814869110 +0100
|
||||||
|
@@ -7,6 +7,8 @@
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
+
|
||||||
|
#include "base/component_export.h"
|
||||||
|
#include "ui/gfx/geometry/matrix3_f.h"
|
||||||
|
|
||||||
|
diff -up chromium-119.0.6045.105/ui/gfx/geometry/linear_gradient.h.missing-header-files chromium-119.0.6045.105/ui/gfx/geometry/linear_gradient.h
|
||||||
|
--- chromium-119.0.6045.105/ui/gfx/geometry/linear_gradient.h.missing-header-files 2023-11-01 19:11:28.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/ui/gfx/geometry/linear_gradient.h 2023-11-06 14:34:01.812869068 +0100
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <array>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <cstdint>
|
||||||
|
diff -up chromium-119.0.6045.105/ui/gfx/linux/drm_util_linux.h.missing-header-files chromium-119.0.6045.105/ui/gfx/linux/drm_util_linux.h
|
||||||
|
--- chromium-119.0.6045.105/ui/gfx/linux/drm_util_linux.h.missing-header-files 2023-11-01 19:11:28.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/ui/gfx/linux/drm_util_linux.h 2023-11-06 14:34:01.819869217 +0100
|
||||||
|
@@ -9,6 +9,8 @@
|
||||||
|
|
||||||
|
#include "ui/gfx/buffer_types.h"
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
+
|
||||||
|
namespace ui {
|
||||||
|
|
||||||
|
int GetFourCCFormatFromBufferFormat(gfx::BufferFormat format);
|
@ -0,0 +1,703 @@
|
|||||||
|
diff -up chromium-119.0.6045.59/base/trace_event/trace_log.cc.no_matching_constructor chromium-119.0.6045.59/base/trace_event/trace_log.cc
|
||||||
|
--- chromium-119.0.6045.59/base/trace_event/trace_log.cc.no_matching_constructor 2023-10-26 18:16:51.000000000 +0200
|
||||||
|
+++ chromium-119.0.6045.59/base/trace_event/trace_log.cc 2023-10-30 16:51:02.270151487 +0100
|
||||||
|
@@ -2191,8 +2191,8 @@ void TraceLog::SetTraceBufferForTesting(
|
||||||
|
#if BUILDFLAG(USE_PERFETTO_CLIENT_LIBRARY)
|
||||||
|
void TraceLog::OnSetup(const perfetto::DataSourceBase::SetupArgs& args) {
|
||||||
|
AutoLock lock(track_event_lock_);
|
||||||
|
- track_event_sessions_.emplace_back(args.internal_instance_index, *args.config,
|
||||||
|
- args.backend_type);
|
||||||
|
+ track_event_sessions_.emplace_back() = {args.internal_instance_index, *args.config,
|
||||||
|
+ args.backend_type};
|
||||||
|
}
|
||||||
|
|
||||||
|
void TraceLog::OnStart(const perfetto::DataSourceBase::StartArgs&) {
|
||||||
|
diff -up chromium-119.0.6045.59/chrome/browser/content_settings/one_time_permission_provider.cc.no_matching_constructor chromium-119.0.6045.59/chrome/browser/content_settings/one_time_permission_provider.cc
|
||||||
|
--- chromium-119.0.6045.59/chrome/browser/content_settings/one_time_permission_provider.cc.no_matching_constructor 2023-10-26 18:16:57.000000000 +0200
|
||||||
|
+++ chromium-119.0.6045.59/chrome/browser/content_settings/one_time_permission_provider.cc 2023-10-30 16:51:02.269151462 +0100
|
||||||
|
@@ -226,8 +226,8 @@ void OneTimePermissionProvider::OnSuspen
|
||||||
|
|
||||||
|
while (rule_iterator && rule_iterator->HasNext()) {
|
||||||
|
auto rule = rule_iterator->Next();
|
||||||
|
- patterns_to_delete.emplace_back(setting_type, rule->primary_pattern,
|
||||||
|
- rule->secondary_pattern);
|
||||||
|
+ patterns_to_delete.emplace_back() = {setting_type, rule->primary_pattern,
|
||||||
|
+ rule->secondary_pattern};
|
||||||
|
permissions::PermissionUmaUtil::RecordOneTimePermissionEvent(
|
||||||
|
setting_type,
|
||||||
|
permissions::OneTimePermissionEvent::EXPIRED_ON_SUSPEND);
|
||||||
|
@@ -329,8 +329,8 @@ void OneTimePermissionProvider::DeleteEn
|
||||||
|
auto rule = rule_iterator->Next();
|
||||||
|
if (rule->primary_pattern.Matches(origin_gurl) &&
|
||||||
|
rule->secondary_pattern.Matches(origin_gurl)) {
|
||||||
|
- patterns_to_delete.emplace_back(
|
||||||
|
- content_setting_type, rule->primary_pattern, rule->secondary_pattern);
|
||||||
|
+ patterns_to_delete.emplace_back() = {
|
||||||
|
+ content_setting_type, rule->primary_pattern, rule->secondary_pattern};
|
||||||
|
permissions::PermissionUmaUtil::RecordOneTimePermissionEvent(
|
||||||
|
content_setting_type, trigger_event);
|
||||||
|
}
|
||||||
|
diff -up chromium-119.0.6045.59/chrome/browser/enterprise/profile_management/profile_management_navigation_throttle.cc.no_matching_constructor chromium-119.0.6045.59/chrome/browser/enterprise/profile_management/profile_management_navigation_throttle.cc
|
||||||
|
--- chromium-119.0.6045.59/chrome/browser/enterprise/profile_management/profile_management_navigation_throttle.cc.no_matching_constructor 2023-10-26 18:16:57.000000000 +0200
|
||||||
|
+++ chromium-119.0.6045.59/chrome/browser/enterprise/profile_management/profile_management_navigation_throttle.cc 2023-10-30 16:51:02.267151412 +0100
|
||||||
|
@@ -67,8 +67,8 @@ base::flat_map<std::string, SAMLProfileA
|
||||||
|
// TODO(crbug.com/1445072): Add actual domains with attribute names.
|
||||||
|
profile_attributes->insert(std::make_pair(
|
||||||
|
"supported.test",
|
||||||
|
- SAMLProfileAttributes("placeholderName", "placeholderDomain",
|
||||||
|
- "placeholderToken")));
|
||||||
|
+ SAMLProfileAttributes{"placeholderName", "placeholderDomain",
|
||||||
|
+ "placeholderToken"}));
|
||||||
|
|
||||||
|
// Extract domains and attributes from the command line switch.
|
||||||
|
const base::CommandLine& command_line =
|
||||||
|
diff -up chromium-119.0.6045.59/chrome/browser/ui/omnibox/chrome_omnibox_client.cc.no_matching_constructor chromium-119.0.6045.59/chrome/browser/ui/omnibox/chrome_omnibox_client.cc
|
||||||
|
--- chromium-119.0.6045.59/chrome/browser/ui/omnibox/chrome_omnibox_client.cc.no_matching_constructor 2023-10-26 18:17:00.000000000 +0200
|
||||||
|
+++ chromium-119.0.6045.59/chrome/browser/ui/omnibox/chrome_omnibox_client.cc 2023-10-30 16:51:02.262151288 +0100
|
||||||
|
@@ -474,10 +474,10 @@ void ChromeOmniboxClient::OnAutocomplete
|
||||||
|
alternative_nav_match);
|
||||||
|
|
||||||
|
// Store the details necessary to open the omnibox match via browser commands.
|
||||||
|
- location_bar_->set_navigation_params(LocationBar::NavigationParams(
|
||||||
|
+ location_bar_->set_navigation_params(LocationBar::NavigationParams{
|
||||||
|
destination_url, disposition, transition, match_selection_timestamp,
|
||||||
|
destination_url_entered_without_scheme,
|
||||||
|
- destination_url_entered_with_http_scheme));
|
||||||
|
+ destination_url_entered_with_http_scheme});
|
||||||
|
|
||||||
|
if (browser_) {
|
||||||
|
auto navigation = chrome::OpenCurrentURL(browser_);
|
||||||
|
diff -up chromium-119.0.6045.59/chrome/test/chromedriver/capabilities.cc.no_matching_constructor chromium-119.0.6045.59/chrome/test/chromedriver/capabilities.cc
|
||||||
|
--- chromium-119.0.6045.59/chrome/test/chromedriver/capabilities.cc.no_matching_constructor 2023-10-26 18:17:01.000000000 +0200
|
||||||
|
+++ chromium-119.0.6045.59/chrome/test/chromedriver/capabilities.cc 2023-10-30 16:51:02.268151437 +0100
|
||||||
|
@@ -346,7 +346,7 @@ Status ParseMobileEmulation(const base::
|
||||||
|
"'version' field of type string");
|
||||||
|
}
|
||||||
|
|
||||||
|
- brands.emplace_back(*brand, *version);
|
||||||
|
+ brands.emplace_back() = {*brand, *version};
|
||||||
|
}
|
||||||
|
|
||||||
|
client_hints.brands = std::move(brands);
|
||||||
|
@@ -384,7 +384,7 @@ Status ParseMobileEmulation(const base::
|
||||||
|
"a 'version' field of type string");
|
||||||
|
}
|
||||||
|
|
||||||
|
- full_version_list.emplace_back(*brand, *version);
|
||||||
|
+ full_version_list.emplace_back() = {*brand, *version};
|
||||||
|
}
|
||||||
|
|
||||||
|
client_hints.full_version_list = std::move(full_version_list);
|
||||||
|
diff -up chromium-119.0.6045.59/components/autofill/core/browser/contact_info_sync_util.cc.no_matching_constructor chromium-119.0.6045.59/components/autofill/core/browser/contact_info_sync_util.cc
|
||||||
|
--- chromium-119.0.6045.59/components/autofill/core/browser/contact_info_sync_util.cc.no_matching_constructor 2023-10-30 16:51:02.273151562 +0100
|
||||||
|
+++ chromium-119.0.6045.59/components/autofill/core/browser/contact_info_sync_util.cc 2023-10-30 17:41:12.685887538 +0100
|
||||||
|
@@ -195,9 +195,9 @@ class ContactInfoProfileSetter {
|
||||||
|
CHECK(observations.empty());
|
||||||
|
for (const sync_pb::ContactInfoSpecifics::Observation& proto_observation :
|
||||||
|
metadata.observations()) {
|
||||||
|
- observations.emplace_back(proto_observation.type(),
|
||||||
|
+ observations.emplace_back() = {static_cast<unsigned char>(proto_observation.type()),
|
||||||
|
ProfileTokenQuality::FormSignatureHash(
|
||||||
|
- proto_observation.form_hash()));
|
||||||
|
+ proto_observation.form_hash())};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
diff -up chromium-119.0.6045.59/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc.no_matching_constructor chromium-119.0.6045.59/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc
|
||||||
|
--- chromium-119.0.6045.59/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc.no_matching_constructor 2023-10-26 18:17:12.000000000 +0200
|
||||||
|
+++ chromium-119.0.6045.59/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc 2023-10-30 16:51:02.260151238 +0100
|
||||||
|
@@ -1530,7 +1530,7 @@ void SkiaOutputSurfaceImplOnGpu::CopyOut
|
||||||
|
|
||||||
|
// Issue readbacks from the surfaces:
|
||||||
|
for (size_t i = 0; i < CopyOutputResult::kNV12MaxPlanes; ++i) {
|
||||||
|
- SkISize size(plane_surfaces[i]->width(), plane_surfaces[i]->height());
|
||||||
|
+ SkISize size{plane_surfaces[i]->width(), plane_surfaces[i]->height()};
|
||||||
|
SkImageInfo dst_info = SkImageInfo::Make(
|
||||||
|
size, (i == 0) ? kAlpha_8_SkColorType : kR8G8_unorm_SkColorType,
|
||||||
|
kUnpremul_SkAlphaType);
|
||||||
|
diff -up chromium-119.0.6045.59/content/browser/download/save_package.cc.no_matching_constructor chromium-119.0.6045.59/content/browser/download/save_package.cc
|
||||||
|
--- chromium-119.0.6045.59/content/browser/download/save_package.cc.no_matching_constructor 2023-10-26 18:17:12.000000000 +0200
|
||||||
|
+++ chromium-119.0.6045.59/content/browser/download/save_package.cc 2023-10-30 16:51:02.271151512 +0100
|
||||||
|
@@ -769,8 +769,8 @@ void SavePackage::Finish() {
|
||||||
|
if (download_) {
|
||||||
|
std::vector<download::DownloadSaveItemData::ItemInfo> files;
|
||||||
|
for (auto& item : saved_success_items_) {
|
||||||
|
- files.emplace_back(item.second->full_path(), item.second->url(),
|
||||||
|
- item.second->referrer().url);
|
||||||
|
+ files.emplace_back() = {item.second->full_path(), item.second->url(),
|
||||||
|
+ item.second->referrer().url};
|
||||||
|
}
|
||||||
|
download::DownloadSaveItemData::AttachItemData(download_, std::move(files));
|
||||||
|
}
|
||||||
|
diff -up chromium-119.0.6045.59/content/browser/renderer_host/render_frame_host_impl.cc.no_matching_constructor chromium-119.0.6045.59/content/browser/renderer_host/render_frame_host_impl.cc
|
||||||
|
--- chromium-119.0.6045.59/content/browser/renderer_host/render_frame_host_impl.cc.no_matching_constructor 2023-10-26 18:17:12.000000000 +0200
|
||||||
|
+++ chromium-119.0.6045.59/content/browser/renderer_host/render_frame_host_impl.cc 2023-10-30 17:38:09.351389984 +0100
|
||||||
|
@@ -8567,7 +8567,7 @@ void RenderFrameHostImpl::SendFencedFram
|
||||||
|
for (const blink::FencedFrame::ReportingDestination& destination :
|
||||||
|
destinations) {
|
||||||
|
SendFencedFrameReportingBeaconInternal(
|
||||||
|
- DestinationEnumEvent(event_type, event_data), destination,
|
||||||
|
+ DestinationEnumEvent{event_type, event_data}, destination,
|
||||||
|
/*from_renderer=*/true, attribution_reporting_runtime_features,
|
||||||
|
GetFrameTreeNodeId());
|
||||||
|
}
|
||||||
|
@@ -8603,7 +8603,7 @@ void RenderFrameHostImpl::SendFencedFram
|
||||||
|
}
|
||||||
|
|
||||||
|
SendFencedFrameReportingBeaconInternal(
|
||||||
|
- DestinationURLEvent(destination_url),
|
||||||
|
+ DestinationURLEvent{destination_url},
|
||||||
|
blink::FencedFrame::ReportingDestination::kBuyer,
|
||||||
|
/*from_renderer=*/true, attribution_reporting_runtime_features,
|
||||||
|
GetFrameTreeNodeId());
|
||||||
|
@@ -8703,8 +8703,8 @@ void RenderFrameHostImpl::MaybeSendFence
|
||||||
|
data = info->data;
|
||||||
|
}
|
||||||
|
initiator_rfh->SendFencedFrameReportingBeaconInternal(
|
||||||
|
- DestinationEnumEvent(blink::kFencedFrameTopNavigationBeaconType,
|
||||||
|
- data),
|
||||||
|
+ DestinationEnumEvent{blink::kFencedFrameTopNavigationBeaconType,
|
||||||
|
+ data},
|
||||||
|
destination,
|
||||||
|
/*from_renderer=*/false, attribution_reporting_features,
|
||||||
|
GetFrameTreeNodeId(), navigation_request.GetNavigationId());
|
||||||
|
@@ -8717,8 +8717,8 @@ void RenderFrameHostImpl::MaybeSendFence
|
||||||
|
for (blink::FencedFrame::ReportingDestination destination :
|
||||||
|
info->destinations) {
|
||||||
|
initiator_rfh->SendFencedFrameReportingBeaconInternal(
|
||||||
|
- DestinationEnumEvent(blink::kFencedFrameTopNavigationBeaconType,
|
||||||
|
- info->data),
|
||||||
|
+ DestinationEnumEvent{blink::kFencedFrameTopNavigationBeaconType,
|
||||||
|
+ info->data},
|
||||||
|
destination,
|
||||||
|
/*from_renderer=*/false, info->attribution_reporting_runtime_features,
|
||||||
|
GetFrameTreeNodeId(), navigation_request.GetNavigationId());
|
||||||
|
diff -up chromium-119.0.6045.59/third_party/blink/renderer/platform/fonts/font_palette.h.no_matching_constructor chromium-119.0.6045.59/third_party/blink/renderer/platform/fonts/font_palette.h
|
||||||
|
--- chromium-119.0.6045.59/third_party/blink/renderer/platform/fonts/font_palette.h.no_matching_constructor 2023-10-26 18:17:24.000000000 +0200
|
||||||
|
+++ chromium-119.0.6045.59/third_party/blink/renderer/platform/fonts/font_palette.h 2023-10-30 16:51:02.262151288 +0100
|
||||||
|
@@ -96,7 +96,7 @@ class PLATFORM_EXPORT FontPalette : publ
|
||||||
|
Color::ColorSpace color_interpolation_space,
|
||||||
|
absl::optional<Color::HueInterpolationMethod> hue_interpolation_method) {
|
||||||
|
return base::AdoptRef(new FontPalette(
|
||||||
|
- start, end, NonNormalizedPercentages(start_percentage, end_percentage),
|
||||||
|
+ start, end, NonNormalizedPercentages{start_percentage, end_percentage},
|
||||||
|
normalized_percentage, alpha_multiplier, color_interpolation_space,
|
||||||
|
hue_interpolation_method));
|
||||||
|
}
|
||||||
|
@@ -170,7 +170,7 @@ class PLATFORM_EXPORT FontPalette : publ
|
||||||
|
double normalized_percentage) {
|
||||||
|
double end_percentage = normalized_percentage * 100.0;
|
||||||
|
double start_percentage = 100.0 - end_percentage;
|
||||||
|
- return NonNormalizedPercentages(start_percentage, end_percentage);
|
||||||
|
+ return NonNormalizedPercentages{start_percentage, end_percentage};
|
||||||
|
}
|
||||||
|
|
||||||
|
double GetAlphaMultiplier() const {
|
||||||
|
diff -up chromium-119.0.6045.59/third_party/blink/renderer/platform/fonts/palette_interpolation.cc.no_matching_constructor chromium-119.0.6045.59/third_party/blink/renderer/platform/fonts/palette_interpolation.cc
|
||||||
|
--- chromium-119.0.6045.59/third_party/blink/renderer/platform/fonts/palette_interpolation.cc.no_matching_constructor 2023-10-26 18:17:24.000000000 +0200
|
||||||
|
+++ chromium-119.0.6045.59/third_party/blink/renderer/platform/fonts/palette_interpolation.cc 2023-10-30 16:51:02.261151263 +0100
|
||||||
|
@@ -31,7 +31,7 @@ Vector<FontPalette::FontPaletteOverride>
|
||||||
|
color_interpolation_space, hue_interpolation_method, start_color,
|
||||||
|
end_color, percentage, alpha_multiplier);
|
||||||
|
|
||||||
|
- FontPalette::FontPaletteOverride result_color_record(i, result_color);
|
||||||
|
+ FontPalette::FontPaletteOverride result_color_record{static_cast<int>(i), result_color};
|
||||||
|
result_color_records.push_back(result_color_record);
|
||||||
|
}
|
||||||
|
return result_color_records;
|
||||||
|
diff -up chromium-119.0.6045.59/ui/gtk/gtk_ui.cc.no_matching_constructor chromium-119.0.6045.59/ui/gtk/gtk_ui.cc
|
||||||
|
--- chromium-119.0.6045.59/ui/gtk/gtk_ui.cc.no_matching_constructor 2023-10-26 18:18:14.000000000 +0200
|
||||||
|
+++ chromium-119.0.6045.59/ui/gtk/gtk_ui.cc 2023-10-30 16:51:02.272151537 +0100
|
||||||
|
@@ -993,11 +993,11 @@ ui::DisplayConfig GtkUi::GetDisplayConfi
|
||||||
|
GdkRectangle geometry;
|
||||||
|
gdk_monitor_get_geometry(monitor, &geometry);
|
||||||
|
int monitor_scale = std::max(1, gdk_monitor_get_scale_factor(monitor));
|
||||||
|
- config.display_geometries.emplace_back(
|
||||||
|
+ config.display_geometries.emplace_back() = {
|
||||||
|
gfx::Rect(monitor_scale * geometry.x, monitor_scale * geometry.y,
|
||||||
|
monitor_scale * geometry.width,
|
||||||
|
monitor_scale * geometry.height),
|
||||||
|
- monitor_scale * font_scale);
|
||||||
|
+ static_cast<float>(monitor_scale * font_scale)};
|
||||||
|
}
|
||||||
|
return config;
|
||||||
|
}
|
||||||
|
diff -up chromium-119.0.6045.59/base/metrics/persistent_histogram_allocator.cc.me chromium-119.0.6045.59/base/metrics/persistent_histogram_allocator.cc
|
||||||
|
--- chromium-119.0.6045.59/base/metrics/persistent_histogram_allocator.cc.me 2023-10-31 18:14:49.275728099 +0100
|
||||||
|
+++ chromium-119.0.6045.59/base/metrics/persistent_histogram_allocator.cc 2023-10-31 18:19:54.599223239 +0100
|
||||||
|
@@ -221,13 +221,13 @@ PersistentSparseHistogramDataManager::Lo
|
||||||
|
// The sample-record could be for any sparse histogram. Add the reference
|
||||||
|
// to the appropriate collection for later use.
|
||||||
|
if (found_id == match_id) {
|
||||||
|
- found_records.emplace_back(ref, value);
|
||||||
|
+ found_records.emplace_back() = {ref, value};
|
||||||
|
found = true;
|
||||||
|
} else {
|
||||||
|
std::vector<ReferenceAndSample>* samples =
|
||||||
|
GetSampleMapRecordsWhileLocked(found_id);
|
||||||
|
CHECK(samples);
|
||||||
|
- samples->emplace_back(ref, value);
|
||||||
|
+ samples->emplace_back() = {ref, value};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
diff -up chromium-119.0.6045.59/net/dns/host_resolver_cache.cc.me chromium-119.0.6045.59/net/dns/host_resolver_cache.cc
|
||||||
|
--- chromium-119.0.6045.59/net/dns/host_resolver_cache.cc.me 2023-10-31 20:48:19.153868338 +0100
|
||||||
|
+++ chromium-119.0.6045.59/net/dns/host_resolver_cache.cc 2023-10-31 20:51:37.634526549 +0100
|
||||||
|
@@ -368,7 +368,7 @@ void HostResolverCache::Set(
|
||||||
|
|
||||||
|
std::string domain_name = result->domain_name();
|
||||||
|
entries_.emplace(
|
||||||
|
- Key(std::move(domain_name), network_anonymization_key),
|
||||||
|
+ Key{std::move(domain_name), network_anonymization_key},
|
||||||
|
Entry(std::move(result), source, secure, staleness_generation));
|
||||||
|
|
||||||
|
if (entries_.size() > max_entries_) {
|
||||||
|
diff -up chromium-119.0.6045.59/components/autofill/core/browser/webdata/autofill_table.cc.me chromium-119.0.6045.59/components/autofill/core/browser/webdata/autofill_table.cc
|
||||||
|
--- chromium-119.0.6045.59/components/autofill/core/browser/webdata/autofill_table.cc.me 2023-10-31 22:32:58.995997897 +0100
|
||||||
|
+++ chromium-119.0.6045.59/components/autofill/core/browser/webdata/autofill_table.cc 2023-10-31 22:33:28.290520601 +0100
|
||||||
|
@@ -1733,10 +1733,10 @@ std::unique_ptr<AutofillProfile> Autofil
|
||||||
|
}
|
||||||
|
|
||||||
|
base::span<const uint8_t> observations_data = s.ColumnBlob(3);
|
||||||
|
- field_type_values.emplace_back(
|
||||||
|
+ field_type_values.emplace_back() = {
|
||||||
|
type, s.ColumnString16(1), s.ColumnInt(2),
|
||||||
|
std::vector<uint8_t>(observations_data.begin(),
|
||||||
|
- observations_data.end()));
|
||||||
|
+ observations_data.end())};
|
||||||
|
|
||||||
|
if (type == ADDRESS_HOME_COUNTRY) {
|
||||||
|
country_code = base::UTF16ToUTF8(s.ColumnString16(1));
|
||||||
|
diff -up chromium-119.0.6045.59/components/password_manager/core/browser/password_manager.cc.than chromium-119.0.6045.59/components/password_manager/core/browser/password_manager.cc
|
||||||
|
--- chromium-119.0.6045.59/components/password_manager/core/browser/password_manager.cc.than 2023-10-31 22:41:22.850233005 +0100
|
||||||
|
+++ chromium-119.0.6045.59/components/password_manager/core/browser/password_manager.cc 2023-10-31 22:42:37.276931933 +0100
|
||||||
|
@@ -625,7 +625,7 @@ void PasswordManager::OnUserModifiedNonP
|
||||||
|
// |driver| might be empty on iOS or in tests.
|
||||||
|
int driver_id = driver ? driver->GetId() : 0;
|
||||||
|
possible_usernames_.Put(
|
||||||
|
- PossibleUsernameFieldIdentifier(driver_id, renderer_id),
|
||||||
|
+ PossibleUsernameFieldIdentifier{driver_id, renderer_id},
|
||||||
|
PossibleUsernameData(GetSignonRealm(driver->GetLastCommittedURL()),
|
||||||
|
renderer_id, value, base::Time::Now(), driver_id,
|
||||||
|
autocomplete_attribute_has_username, is_likely_otp));
|
||||||
|
diff -up chromium-119.0.6045.59/content/browser/interest_group/interest_group_storage.cc.than chromium-119.0.6045.59/content/browser/interest_group/interest_group_storage.cc
|
||||||
|
--- chromium-119.0.6045.59/content/browser/interest_group/interest_group_storage.cc.than 2023-10-31 23:31:08.438267908 +0100
|
||||||
|
+++ chromium-119.0.6045.59/content/browser/interest_group/interest_group_storage.cc 2023-10-31 23:32:08.979358711 +0100
|
||||||
|
@@ -2854,10 +2854,10 @@ DoGetKAnonymityData(sql::Database& db,
|
||||||
|
|
||||||
|
std::vector<StorageInterestGroup::KAnonymityData> k_anon_data;
|
||||||
|
while (interest_group_kanon_query.Step()) {
|
||||||
|
- k_anon_data.emplace_back(
|
||||||
|
+ k_anon_data.emplace_back() = {
|
||||||
|
/*key=*/interest_group_kanon_query.ColumnString(0),
|
||||||
|
/*is_k_anonymous=*/interest_group_kanon_query.ColumnBool(1),
|
||||||
|
- /*last_updated=*/interest_group_kanon_query.ColumnTime(2));
|
||||||
|
+ /*last_updated=*/interest_group_kanon_query.ColumnTime(2)};
|
||||||
|
}
|
||||||
|
if (!interest_group_kanon_query.Succeeded()) {
|
||||||
|
return absl::nullopt;
|
||||||
|
diff -up chromium-119.0.6045.59/content/browser/webid/federated_auth_request_impl.cc.than chromium-119.0.6045.59/content/browser/webid/federated_auth_request_impl.cc
|
||||||
|
--- chromium-119.0.6045.59/content/browser/webid/federated_auth_request_impl.cc.than 2023-11-01 11:19:42.745395797 +0100
|
||||||
|
+++ chromium-119.0.6045.59/content/browser/webid/federated_auth_request_impl.cc 2023-11-01 11:22:16.670920679 +0100
|
||||||
|
@@ -1881,7 +1881,7 @@ void FederatedAuthRequestImpl::ShowError
|
||||||
|
base::BindOnce(&FederatedAuthRequestImpl::CompleteRequestWithError,
|
||||||
|
weak_ptr_factory_.GetWeakPtr()));
|
||||||
|
absl::optional<TokenError> token_error =
|
||||||
|
- error ? absl::make_optional<TokenError>(error->code, error->url)
|
||||||
|
+ error ? absl::make_optional<TokenError>({error->code, error->url})
|
||||||
|
: absl::nullopt;
|
||||||
|
|
||||||
|
// TODO(crbug.com/1485710): Refactor IdentityCredentialTokenError
|
||||||
|
--- chromium-119.0.6045.59/ui/base/wayland/color_manager_util.h.no_matching_constructor 2023-10-26 18:18:14.000000000 +0200
|
||||||
|
+++ chromium-119.0.6045.59/ui/base/wayland/color_manager_util.h 2023-11-01 17:29:54.269820415 +0100
|
||||||
|
@@ -52,53 +52,53 @@
|
||||||
|
zcr_color_manager_v1_chromaticity_names,
|
||||||
|
PrimaryVersion>(
|
||||||
|
{{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT601_525_LINE,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::SMPTE170M,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::SMPTE170M,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT601_625_LINE,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::BT470BG,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::BT470BG,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTE170M,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::SMPTE170M,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::SMPTE170M,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT709,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::BT709, kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::BT709, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT2020,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::BT2020, kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::BT2020, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SRGB,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::BT709, kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::BT709, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_DISPLAYP3,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::P3, kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::P3, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_ADOBERGB,
|
||||||
|
- PrimaryVersion(gfx::ColorSpace::PrimaryID::ADOBE_RGB,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ PrimaryVersion{gfx::ColorSpace::PrimaryID::ADOBE_RGB,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_WIDE_GAMUT_COLOR_SPIN,
|
||||||
|
- PrimaryVersion(
|
||||||
|
+ PrimaryVersion{
|
||||||
|
gfx::ColorSpace::PrimaryID::WIDE_GAMUT_COLOR_SPIN,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_WIDE_GAMUT_COLOR_SPIN_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_WIDE_GAMUT_COLOR_SPIN_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT470M,
|
||||||
|
- PrimaryVersion(
|
||||||
|
+ PrimaryVersion{
|
||||||
|
gfx::ColorSpace::PrimaryID::BT470M,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT470M_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT470M_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTE240M,
|
||||||
|
- PrimaryVersion(
|
||||||
|
+ PrimaryVersion{
|
||||||
|
gfx::ColorSpace::PrimaryID::SMPTE240M,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTE240M_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTE240M_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_XYZ_D50,
|
||||||
|
- PrimaryVersion(
|
||||||
|
+ PrimaryVersion{
|
||||||
|
gfx::ColorSpace::PrimaryID::XYZ_D50,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_XYZ_D50_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_XYZ_D50_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST428_1,
|
||||||
|
- PrimaryVersion(
|
||||||
|
+ PrimaryVersion{
|
||||||
|
gfx::ColorSpace::PrimaryID::SMPTEST428_1,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST428_1_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST428_1_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST431_2,
|
||||||
|
- PrimaryVersion(
|
||||||
|
+ PrimaryVersion{
|
||||||
|
gfx::ColorSpace::PrimaryID::SMPTEST431_2,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST431_2_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST431_2_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_FILM,
|
||||||
|
- PrimaryVersion(
|
||||||
|
+ PrimaryVersion{
|
||||||
|
gfx::ColorSpace::PrimaryID::FILM,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_FILM_SINCE_VERSION)}});
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_FILM_SINCE_VERSION}}});
|
||||||
|
|
||||||
|
// A map from the zcr_color_manager_v1 eotf_names enum values
|
||||||
|
// representing well-known EOTFs, to their equivalent TransferIDs.
|
||||||
|
@@ -107,68 +107,68 @@
|
||||||
|
zcr_color_manager_v1_eotf_names,
|
||||||
|
TransferVersion>({
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LINEAR,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::LINEAR,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::LINEAR,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::SRGB, kDefaultSinceVersion)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::SRGB, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB_HDR,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::SRGB_HDR,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB_HDR_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::SRGB_HDR,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB_HDR_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::BT709,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::BT709,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2087,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::GAMMA24,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::GAMMA24,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_ADOBERGB,
|
||||||
|
// This is ever so slightly inaccurate. The number ought to be
|
||||||
|
// 2.19921875f, not 2.2
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::GAMMA22,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::GAMMA22,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_PQ,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::PQ, kDefaultSinceVersion)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::PQ, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::HLG,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::HLG,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE170M,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::SMPTE170M,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE170M_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::SMPTE170M,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE170M_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE240M,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::SMPTE240M,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE240M_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::SMPTE240M,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE240M_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTEST428_1,
|
||||||
|
- TransferVersion(
|
||||||
|
+ TransferVersion{
|
||||||
|
gfx::ColorSpace::TransferID::SMPTEST428_1,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTEST428_1_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTEST428_1_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::LOG,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::LOG,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG_SQRT,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::LOG_SQRT,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG_SQRT_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::LOG_SQRT,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG_SQRT_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_IEC61966_2_4,
|
||||||
|
- TransferVersion(
|
||||||
|
+ TransferVersion{
|
||||||
|
gfx::ColorSpace::TransferID::IEC61966_2_4,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_IEC61966_2_4_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_IEC61966_2_4_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT1361_ECG,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::BT1361_ECG,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT1361_ECG_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::BT1361_ECG,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT1361_ECG_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_10,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::BT2020_10,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_10_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::BT2020_10,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_10_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_12,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::BT2020_12,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_12_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::BT2020_12,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_12_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SCRGB_LINEAR_80_NITS,
|
||||||
|
- TransferVersion(
|
||||||
|
+ TransferVersion{
|
||||||
|
gfx::ColorSpace::TransferID::SCRGB_LINEAR_80_NITS,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SCRGB_LINEAR_80_NITS_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SCRGB_LINEAR_80_NITS_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA18,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::GAMMA18,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA18_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::GAMMA18,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA18_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA28,
|
||||||
|
- TransferVersion(gfx::ColorSpace::TransferID::GAMMA28,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA28_SINCE_VERSION)},
|
||||||
|
+ TransferVersion{gfx::ColorSpace::TransferID::GAMMA28,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA28_SINCE_VERSION}},
|
||||||
|
});
|
||||||
|
|
||||||
|
// A map from the SDR zcr_color_manager_v1 eotf_names enum values
|
||||||
|
@@ -177,18 +177,18 @@
|
||||||
|
constexpr auto kTransferMap =
|
||||||
|
base::MakeFixedFlatMap<zcr_color_manager_v1_eotf_names, TransferFnVersion>({
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LINEAR,
|
||||||
|
- TransferFnVersion(SkNamedTransferFn::kLinear, kDefaultSinceVersion)},
|
||||||
|
+ TransferFnVersion{SkNamedTransferFn::kLinear, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB,
|
||||||
|
- TransferFnVersion(SkNamedTransferFnExt::kSRGB, kDefaultSinceVersion)},
|
||||||
|
+ TransferFnVersion{SkNamedTransferFnExt::kSRGB, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709,
|
||||||
|
- TransferFnVersion(
|
||||||
|
+ TransferFnVersion{
|
||||||
|
SkNamedTransferFnExt::kRec709,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2087,
|
||||||
|
- TransferFnVersion(gamma24, kDefaultSinceVersion)},
|
||||||
|
+ TransferFnVersion{gamma24, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_ADOBERGB,
|
||||||
|
- TransferFnVersion(SkNamedTransferFnExt::kA98RGB,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ TransferFnVersion{SkNamedTransferFnExt::kA98RGB,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
});
|
||||||
|
|
||||||
|
// A map from the HDR zcr_color_manager_v1 eotf_names enum values
|
||||||
|
@@ -197,70 +197,70 @@
|
||||||
|
constexpr auto kHDRTransferMap =
|
||||||
|
base::MakeFixedFlatMap<zcr_color_manager_v1_eotf_names, TransferFnVersion>(
|
||||||
|
{{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LINEAR,
|
||||||
|
- TransferFnVersion(SkNamedTransferFn::kLinear, kDefaultSinceVersion)},
|
||||||
|
+ TransferFnVersion{SkNamedTransferFn::kLinear, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB_HDR,
|
||||||
|
- TransferFnVersion(
|
||||||
|
+ TransferFnVersion{
|
||||||
|
SkNamedTransferFnExt::kSRGB,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB_HDR_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB_HDR_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_PQ,
|
||||||
|
- TransferFnVersion(SkNamedTransferFn::kPQ, kDefaultSinceVersion)},
|
||||||
|
+ TransferFnVersion{SkNamedTransferFn::kPQ, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG,
|
||||||
|
- TransferFnVersion(SkNamedTransferFn::kHLG,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG_SINCE_VERSION)},
|
||||||
|
+ TransferFnVersion{SkNamedTransferFn::kHLG,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_EXTENDEDSRGB10,
|
||||||
|
- TransferFnVersion(
|
||||||
|
+ TransferFnVersion{
|
||||||
|
SkNamedTransferFnExt::kSRGBExtended1023Over510,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_EXTENDEDSRGB10_SINCE_VERSION)}});
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_EXTENDEDSRGB10_SINCE_VERSION}}});
|
||||||
|
|
||||||
|
// A map from zcr_color_manager_v1 matrix_names enum values to
|
||||||
|
// gfx::ColorSpace::MatrixIDs.
|
||||||
|
constexpr auto kMatrixMap =
|
||||||
|
base::MakeFixedFlatMap<zcr_color_manager_v1_matrix_names, MatrixVersion>(
|
||||||
|
{{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_RGB,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::RGB, kDefaultSinceVersion)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::RGB, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT709,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::BT709,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::BT709,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT470BG,
|
||||||
|
- MatrixVersion(
|
||||||
|
+ MatrixVersion{
|
||||||
|
gfx::ColorSpace::MatrixID::BT470BG,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT470BG_SINCE_VERSION)},
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT470BG_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT2020_NCL,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::BT2020_NCL,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::BT2020_NCL,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT2020_CL,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::BT2020_CL,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::BT2020_CL,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_FCC,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::FCC, kDefaultSinceVersion)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::FCC, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YCOCG,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::YCOCG,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YCOCG_SINCE_VERSION)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::YCOCG,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YCOCG_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YDZDX,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::YDZDX,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YDZDX_SINCE_VERSION)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::YDZDX,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YDZDX_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_GBR,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::GBR,
|
||||||
|
- ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_GBR_SINCE_VERSION)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::GBR,
|
||||||
|
+ ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_GBR_SINCE_VERSION}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_SMPTE170M,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::SMPTE170M,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::SMPTE170M,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_SMPTE240M,
|
||||||
|
- MatrixVersion(gfx::ColorSpace::MatrixID::SMPTE240M,
|
||||||
|
- kDefaultSinceVersion)}});
|
||||||
|
+ MatrixVersion{gfx::ColorSpace::MatrixID::SMPTE240M,
|
||||||
|
+ kDefaultSinceVersion}}});
|
||||||
|
|
||||||
|
// A map from zcr_color_manager_v1 range_names enum values to
|
||||||
|
// gfx::ColorSpace::RangeIDs.
|
||||||
|
constexpr auto kRangeMap =
|
||||||
|
base::MakeFixedFlatMap<zcr_color_manager_v1_range_names, RangeVersion>(
|
||||||
|
{{ZCR_COLOR_MANAGER_V1_RANGE_NAMES_LIMITED,
|
||||||
|
- RangeVersion(gfx::ColorSpace::RangeID::LIMITED,
|
||||||
|
- kDefaultSinceVersion)},
|
||||||
|
+ RangeVersion{gfx::ColorSpace::RangeID::LIMITED,
|
||||||
|
+ kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_RANGE_NAMES_FULL,
|
||||||
|
- RangeVersion(gfx::ColorSpace::RangeID::FULL, kDefaultSinceVersion)},
|
||||||
|
+ RangeVersion{gfx::ColorSpace::RangeID::FULL, kDefaultSinceVersion}},
|
||||||
|
{ZCR_COLOR_MANAGER_V1_RANGE_NAMES_DERIVED,
|
||||||
|
- RangeVersion(gfx::ColorSpace::RangeID::DERIVED,
|
||||||
|
- kDefaultSinceVersion)}});
|
||||||
|
+ RangeVersion{gfx::ColorSpace::RangeID::DERIVED,
|
||||||
|
+ kDefaultSinceVersion}}});
|
||||||
|
|
||||||
|
zcr_color_manager_v1_chromaticity_names ToColorManagerChromaticity(
|
||||||
|
gfx::ColorSpace::PrimaryID primaryID,
|
||||||
|
@@ -283,4 +283,4 @@
|
||||||
|
|
||||||
|
} // namespace ui::wayland
|
||||||
|
|
||||||
|
-#endif // UI_BASE_WAYLAND_COLOR_MANAGER_UTIL_H_
|
||||||
|
\ Kein Zeilenumbruch am Dateiende.
|
||||||
|
+#endif // UI_BASE_WAYLAND_COLOR_MANAGER_UTIL_H_
|
||||||
|
diff -up chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_previously_granted_view.cc.me chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_previously_granted_view.cc
|
||||||
|
--- chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_previously_granted_view.cc.me 2023-11-01 20:46:15.997861278 +0100
|
||||||
|
+++ chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_previously_granted_view.cc 2023-11-01 20:49:33.603371680 +0100
|
||||||
|
@@ -58,13 +58,13 @@ EmbeddedPermissionPromptPreviouslyGrante
|
||||||
|
std::vector<EmbeddedPermissionPromptPreviouslyGrantedView::ButtonConfiguration>
|
||||||
|
EmbeddedPermissionPromptPreviouslyGrantedView::GetButtonsConfiguration() {
|
||||||
|
std::vector<ButtonConfiguration> buttons;
|
||||||
|
- buttons.emplace_back(
|
||||||
|
+ buttons.emplace_back() = {
|
||||||
|
l10n_util::GetStringUTF16(IDS_EMBEDDED_PROMPT_CONTINUE_ALLOWING),
|
||||||
|
- ButtonType::kContinueAllowing, ui::ButtonStyle::kTonal);
|
||||||
|
+ ButtonType::kContinueAllowing, ui::ButtonStyle::kTonal};
|
||||||
|
|
||||||
|
- buttons.emplace_back(
|
||||||
|
+ buttons.emplace_back() = {
|
||||||
|
l10n_util::GetStringUTF16(IDS_EMBEDDED_PROMPT_STOP_ALLOWING),
|
||||||
|
- ButtonType::kStopAllowing, ui::ButtonStyle::kTonal);
|
||||||
|
+ ButtonType::kStopAllowing, ui::ButtonStyle::kTonal};
|
||||||
|
return buttons;
|
||||||
|
}
|
||||||
|
|
||||||
|
diff -up chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_ask_view.cc.than chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_ask_view.cc
|
||||||
|
--- chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_ask_view.cc.than 2023-11-01 20:52:29.005464494 +0100
|
||||||
|
+++ chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_ask_view.cc 2023-11-01 21:14:12.741859604 +0100
|
||||||
|
@@ -56,12 +56,12 @@ std::vector<EmbeddedPermissionPromptAskV
|
||||||
|
EmbeddedPermissionPromptAskView::GetButtonsConfiguration() {
|
||||||
|
std::vector<ButtonConfiguration> buttons;
|
||||||
|
if (base::FeatureList::IsEnabled(permissions::features::kOneTimePermission)) {
|
||||||
|
- buttons.emplace_back(
|
||||||
|
+ buttons.emplace_back() = {
|
||||||
|
l10n_util::GetStringUTF16(IDS_PERMISSION_ALLOW_THIS_TIME),
|
||||||
|
- ButtonType::kAllowThisTime, ui::ButtonStyle::kTonal);
|
||||||
|
+ ButtonType::kAllowThisTime, ui::ButtonStyle::kTonal};
|
||||||
|
}
|
||||||
|
- buttons.emplace_back(l10n_util::GetStringUTF16(IDS_PERMISSION_ALLOW),
|
||||||
|
- ButtonType::kAllow, ui::ButtonStyle::kTonal);
|
||||||
|
+ buttons.emplace_back() = {l10n_util::GetStringUTF16(IDS_PERMISSION_ALLOW),
|
||||||
|
+ ButtonType::kAllow, ui::ButtonStyle::kTonal};
|
||||||
|
return buttons;
|
||||||
|
}
|
||||||
|
|
||||||
|
diff -up chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_base_view.h.me chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_base_view.h
|
||||||
|
--- chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_base_view.h.me 2023-11-01 21:22:02.222646903 +0100
|
||||||
|
+++ chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_base_view.h 2023-11-01 21:19:58.769619393 +0100
|
||||||
|
@@ -72,6 +72,7 @@ class EmbeddedPermissionPromptBaseView :
|
||||||
|
struct RequestLineConfiguration {
|
||||||
|
const raw_ptr<const gfx::VectorIcon> icon;
|
||||||
|
std::u16string message;
|
||||||
|
+ RequestLineConfiguration(auto i, auto m) : icon(i), message(m) { }
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ButtonConfiguration {
|
||||||
|
diff -up chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_policy_view.cc.than chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_policy_view.cc
|
||||||
|
--- chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_policy_view.cc.than 2023-11-01 21:25:31.118626473 +0100
|
||||||
|
+++ chromium-119.0.6045.59/chrome/browser/ui/views/permissions/embedded_permission_prompt_policy_view.cc 2023-11-01 21:30:06.383340274 +0100
|
||||||
|
@@ -48,8 +48,8 @@ EmbeddedPermissionPromptPolicyView::GetR
|
||||||
|
std::vector<EmbeddedPermissionPromptPolicyView::ButtonConfiguration>
|
||||||
|
EmbeddedPermissionPromptPolicyView::GetButtonsConfiguration() {
|
||||||
|
std::vector<ButtonConfiguration> buttons;
|
||||||
|
- buttons.emplace_back(l10n_util::GetStringUTF16(IDS_EMBEDDED_PROMPT_OK_LABEL),
|
||||||
|
- ButtonType::kPolicyOK, ui::ButtonStyle::kTonal);
|
||||||
|
+ buttons.emplace_back() = {l10n_util::GetStringUTF16(IDS_EMBEDDED_PROMPT_OK_LABEL),
|
||||||
|
+ ButtonType::kPolicyOK, ui::ButtonStyle::kTonal};
|
||||||
|
return buttons;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,63 @@
|
|||||||
|
diff -up chromium-119.0.6045.105/chrome/browser/safe_browsing/download_protection/file_analyzer.cc.nounrar chromium-119.0.6045.105/chrome/browser/safe_browsing/download_protection/file_analyzer.cc
|
||||||
|
--- chromium-119.0.6045.105/chrome/browser/safe_browsing/download_protection/file_analyzer.cc.nounrar 2023-11-01 19:10:13.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/chrome/browser/safe_browsing/download_protection/file_analyzer.cc 2023-11-06 17:16:55.630255973 +0100
|
||||||
|
@@ -77,8 +77,6 @@ void FileAnalyzer::Start(const base::Fil
|
||||||
|
|
||||||
|
if (inspection_type == DownloadFileType::ZIP) {
|
||||||
|
StartExtractZipFeatures();
|
||||||
|
- } else if (inspection_type == DownloadFileType::RAR) {
|
||||||
|
- StartExtractRarFeatures();
|
||||||
|
#if BUILDFLAG(IS_MAC)
|
||||||
|
} else if (inspection_type == DownloadFileType::DMG) {
|
||||||
|
StartExtractDmgFeatures();
|
||||||
|
diff -up chromium-119.0.6045.105/chrome/common/safe_browsing/BUILD.gn.nounrar chromium-119.0.6045.105/chrome/common/safe_browsing/BUILD.gn
|
||||||
|
--- chromium-119.0.6045.105/chrome/common/safe_browsing/BUILD.gn.nounrar 2023-11-01 19:10:16.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/chrome/common/safe_browsing/BUILD.gn 2023-11-06 17:16:55.630255973 +0100
|
||||||
|
@@ -143,7 +143,6 @@ source_set("safe_browsing") {
|
||||||
|
"//components/safe_browsing/content/common:file_type_policies",
|
||||||
|
"//components/safe_browsing/core/common",
|
||||||
|
"//third_party/lzma_sdk/google:seven_zip_reader",
|
||||||
|
- "//third_party/unrar:unrar",
|
||||||
|
]
|
||||||
|
|
||||||
|
public_deps = [
|
||||||
|
diff -up chromium-119.0.6045.105/chrome/services/file_util/safe_archive_analyzer.cc.nounrar chromium-119.0.6045.105/chrome/services/file_util/safe_archive_analyzer.cc
|
||||||
|
--- chromium-119.0.6045.105/chrome/services/file_util/safe_archive_analyzer.cc.nounrar 2023-11-06 18:07:30.549291823 +0100
|
||||||
|
+++ chromium-119.0.6045.105/chrome/services/file_util/safe_archive_analyzer.cc 2023-11-06 18:08:00.510076945 +0100
|
||||||
|
@@ -74,6 +74,7 @@ void SafeArchiveAnalyzer::AnalyzeRarFile
|
||||||
|
const absl::optional<std::string>& password,
|
||||||
|
mojo::PendingRemote<chrome::mojom::TemporaryFileGetter> temp_file_getter,
|
||||||
|
AnalyzeRarFileCallback callback) {
|
||||||
|
+#if 0
|
||||||
|
DCHECK(rar_file.IsValid());
|
||||||
|
temp_file_getter_.Bind(std::move(temp_file_getter));
|
||||||
|
callback_ = std::move(callback);
|
||||||
|
@@ -90,6 +91,9 @@ void SafeArchiveAnalyzer::AnalyzeRarFile
|
||||||
|
/*password=*/password,
|
||||||
|
std::move(analysis_finished_callback),
|
||||||
|
std::move(temp_file_getter_callback), &results_);
|
||||||
|
+#else
|
||||||
|
+ NOTREACHED();
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void SafeArchiveAnalyzer::AnalyzeSevenZipFile(
|
||||||
|
diff -up chromium-119.0.6045.105/chrome/services/file_util/safe_archive_analyzer.h.nounrar chromium-119.0.6045.105/chrome/services/file_util/safe_archive_analyzer.h
|
||||||
|
--- chromium-119.0.6045.105/chrome/services/file_util/safe_archive_analyzer.h.nounrar 2023-11-01 19:10:16.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/chrome/services/file_util/safe_archive_analyzer.h 2023-11-06 17:16:55.630255973 +0100
|
||||||
|
@@ -7,7 +7,6 @@
|
||||||
|
|
||||||
|
#include "chrome/common/safe_browsing/archive_analyzer_results.h"
|
||||||
|
#include "chrome/services/file_util/public/mojom/safe_archive_analyzer.mojom.h"
|
||||||
|
-#include "chrome/utility/safe_browsing/rar_analyzer.h"
|
||||||
|
#include "chrome/utility/safe_browsing/seven_zip_analyzer.h"
|
||||||
|
#include "chrome/utility/safe_browsing/zip_analyzer.h"
|
||||||
|
#include "mojo/public/cpp/bindings/remote.h"
|
||||||
|
@@ -66,7 +65,6 @@ class SafeArchiveAnalyzer : public chrom
|
||||||
|
void Timeout();
|
||||||
|
|
||||||
|
safe_browsing::ZipAnalyzer zip_analyzer_;
|
||||||
|
- safe_browsing::RarAnalyzer rar_analyzer_;
|
||||||
|
safe_browsing::SevenZipAnalyzer seven_zip_analyzer_;
|
||||||
|
#if BUILDFLAG(IS_MAC)
|
||||||
|
safe_browsing::dmg::DMGAnalyzer dmg_analyzer_;
|
@ -0,0 +1,21 @@
|
|||||||
|
diff -up chromium-119.0.6045.59/third_party/blink/renderer/core/paint/fragment_data_iterator.h.me chromium-119.0.6045.59/third_party/blink/renderer/core/paint/fragment_data_iterator.h
|
||||||
|
--- chromium-119.0.6045.59/third_party/blink/renderer/core/paint/fragment_data_iterator.h.me 2023-10-27 20:07:16.421230815 +0200
|
||||||
|
+++ chromium-119.0.6045.59/third_party/blink/renderer/core/paint/fragment_data_iterator.h 2023-10-27 20:07:36.883600085 +0200
|
||||||
|
@@ -52,7 +52,7 @@ class FragmentDataIterator
|
||||||
|
public:
|
||||||
|
explicit FragmentDataIterator(const LayoutObject& object)
|
||||||
|
: FragmentDataIteratorBase(&object.FirstFragment()) {}
|
||||||
|
- explicit FragmentDataIterator(nullptr_t)
|
||||||
|
+ explicit FragmentDataIterator(std::nullptr_t)
|
||||||
|
: FragmentDataIteratorBase(nullptr) {}
|
||||||
|
};
|
||||||
|
|
||||||
|
@@ -63,7 +63,7 @@ class MutableFragmentDataIterator
|
||||||
|
explicit MutableFragmentDataIterator(const LayoutObject& object)
|
||||||
|
: FragmentDataIteratorBase(
|
||||||
|
&object.GetMutableForPainting().FirstFragment()) {}
|
||||||
|
- explicit MutableFragmentDataIterator(nullptr_t)
|
||||||
|
+ explicit MutableFragmentDataIterator(std::nullptr_t)
|
||||||
|
: FragmentDataIteratorBase(nullptr) {}
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,164 @@
|
|||||||
|
commit bdcc23e0a5e7e220660d3f54c97262f9a4c31606
|
||||||
|
Author: Nick Diego Yamane <nickdiego@igalia.com>
|
||||||
|
Date: Thu Nov 2 17:26:25 2023 +0000
|
||||||
|
|
||||||
|
gbm: nvidia: use separate bo to verify modifiers
|
||||||
|
|
||||||
|
Buggy Nvidia drivers fail to return FDs for planes of a BO which had
|
||||||
|
already an imported BO destroyed before. This is a workaround for that
|
||||||
|
issue, which consists of creating/destroying a separate 1x1 BO for
|
||||||
|
validating the modifiers before actually creating the final requested
|
||||||
|
BO, which for now is limited to IS_LINUX builds.
|
||||||
|
|
||||||
|
The Nvidia driver bug is being tracked under internal bug 4315529. There
|
||||||
|
seems to be other issues when running under Wayland with Nvidia, which
|
||||||
|
will be tracked and addressed in separate patches.
|
||||||
|
|
||||||
|
R=dcastagna, msisov@igalia.com
|
||||||
|
|
||||||
|
with ozone/wayland backend and verify GPU acceleration is not broken.
|
||||||
|
|
||||||
|
Test: In a single Nvidia GPU setup, with proprietary driver, run Chrome
|
||||||
|
Bug: 1273758, 1478684, 1463851
|
||||||
|
Change-Id: I9f322bcf40b460bcd4ead02f05dd2e9a8d271cea
|
||||||
|
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4989782
|
||||||
|
Reviewed-by: Maksim Sisov <msisov@igalia.com>
|
||||||
|
Commit-Queue: Nick Yamane <nickdiego@igalia.com>
|
||||||
|
Cr-Commit-Position: refs/heads/main@{#1218924}
|
||||||
|
|
||||||
|
diff --git a/ui/gfx/linux/gbm_wrapper.cc b/ui/gfx/linux/gbm_wrapper.cc
|
||||||
|
index bf90b76605f68..14918c19c0ab0 100644
|
||||||
|
--- a/ui/gfx/linux/gbm_wrapper.cc
|
||||||
|
+++ b/ui/gfx/linux/gbm_wrapper.cc
|
||||||
|
@@ -11,6 +11,7 @@
|
||||||
|
#include "base/logging.h"
|
||||||
|
#include "base/memory/raw_ptr.h"
|
||||||
|
#include "base/memory/raw_ptr_exclusion.h"
|
||||||
|
+#include "base/numerics/safe_conversions.h"
|
||||||
|
#include "base/posix/eintr_wrapper.h"
|
||||||
|
#include "skia/ext/legacy_display_globals.h"
|
||||||
|
#include "third_party/skia/include/core/SkSurface.h"
|
||||||
|
@@ -71,6 +72,7 @@ base::ScopedFD GetPlaneFdForBo(gbm_bo* bo, size_t plane) {
|
||||||
|
int ret;
|
||||||
|
// Use DRM_RDWR to allow the fd to be mappable in another process.
|
||||||
|
ret = drmPrimeHandleToFD(dev_fd, plane_handle, DRM_CLOEXEC | DRM_RDWR, &fd);
|
||||||
|
+ PLOG_IF(ERROR, ret != 0) << "Failed to get fd for plane.";
|
||||||
|
|
||||||
|
// Older DRM implementations blocked DRM_RDWR, but gave a read/write mapping
|
||||||
|
// anyways
|
||||||
|
@@ -301,58 +303,82 @@ class Device final : public ui::GbmDevice {
|
||||||
|
|
||||||
|
std::unique_ptr<ui::GbmBuffer> CreateBufferWithModifiers(
|
||||||
|
uint32_t format,
|
||||||
|
- const gfx::Size& size,
|
||||||
|
+ const gfx::Size& requested_size,
|
||||||
|
uint32_t flags,
|
||||||
|
const std::vector<uint64_t>& modifiers) override {
|
||||||
|
- if (modifiers.empty())
|
||||||
|
- return CreateBuffer(format, size, flags);
|
||||||
|
-
|
||||||
|
- std::vector<uint64_t> filtered_modifiers =
|
||||||
|
- GetFilteredModifiers(format, flags, modifiers);
|
||||||
|
- struct gbm_bo* bo = nullptr;
|
||||||
|
- while (filtered_modifiers.size() > 0) {
|
||||||
|
- bo = gbm_bo_create_with_modifiers(device_, size.width(), size.height(),
|
||||||
|
- format, filtered_modifiers.data(),
|
||||||
|
- filtered_modifiers.size());
|
||||||
|
- if (!bo) {
|
||||||
|
+ if (modifiers.empty()) {
|
||||||
|
+ return CreateBuffer(format, requested_size, flags);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ // Buggy drivers prevent us from getting plane FDs from a BO which had its
|
||||||
|
+ // previously imported BO destroyed. E.g: Nvidia. Thus, on Linux Desktop, we
|
||||||
|
+ // do the create/import modifiers validation loop below using a separate set
|
||||||
|
+ // of 1x1 BOs which are destroyed before creating the final BO creation used
|
||||||
|
+ // to instantiate the returned GbmBuffer.
|
||||||
|
+ gfx::Size size =
|
||||||
|
+#if BUILDFLAG(IS_LINUX)
|
||||||
|
+ gfx::Size(1, 1);
|
||||||
|
+#else
|
||||||
|
+ requested_size;
|
||||||
|
+#endif
|
||||||
|
+ auto filtered_modifiers = GetFilteredModifiers(format, flags, modifiers);
|
||||||
|
+ struct gbm_bo* created_bo = nullptr;
|
||||||
|
+ bool valid_modifiers = false;
|
||||||
|
+
|
||||||
|
+ while (!valid_modifiers && !filtered_modifiers.empty()) {
|
||||||
|
+ created_bo = gbm_bo_create_with_modifiers(
|
||||||
|
+ device_, size.width(), size.height(), format,
|
||||||
|
+ filtered_modifiers.data(), filtered_modifiers.size());
|
||||||
|
+ if (!created_bo) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
- struct gbm_import_fd_modifier_data fd_data;
|
||||||
|
- fd_data.width = size.width();
|
||||||
|
- fd_data.height = size.height();
|
||||||
|
- fd_data.format = format;
|
||||||
|
- fd_data.num_fds = gbm_bo_get_plane_count(bo);
|
||||||
|
- fd_data.modifier = gbm_bo_get_modifier(bo);
|
||||||
|
-
|
||||||
|
- // Store fds in the vector of base::ScopedFDs. Will be released
|
||||||
|
- // automatically.
|
||||||
|
+ const int planes_count = gbm_bo_get_plane_count(created_bo);
|
||||||
|
+ struct gbm_import_fd_modifier_data fd_data = {
|
||||||
|
+ .width = base::checked_cast<uint32_t>(size.width()),
|
||||||
|
+ .height = base::checked_cast<uint32_t>(size.height()),
|
||||||
|
+ .format = format,
|
||||||
|
+ .num_fds = base::checked_cast<uint32_t>(planes_count),
|
||||||
|
+ .modifier = gbm_bo_get_modifier(created_bo)};
|
||||||
|
+ // Store fds in a base::ScopedFDs vector. Will be released automatically.
|
||||||
|
std::vector<base::ScopedFD> fds;
|
||||||
|
for (size_t i = 0; i < static_cast<size_t>(fd_data.num_fds); ++i) {
|
||||||
|
- fds.emplace_back(GetPlaneFdForBo(bo, i));
|
||||||
|
+ fds.emplace_back(GetPlaneFdForBo(created_bo, i));
|
||||||
|
fd_data.fds[i] = fds.back().get();
|
||||||
|
- fd_data.strides[i] = gbm_bo_get_stride_for_plane(bo, i);
|
||||||
|
- fd_data.offsets[i] = gbm_bo_get_offset(bo, i);
|
||||||
|
+ fd_data.strides[i] = gbm_bo_get_stride_for_plane(created_bo, i);
|
||||||
|
+ fd_data.offsets[i] = gbm_bo_get_offset(created_bo, i);
|
||||||
|
}
|
||||||
|
|
||||||
|
- struct gbm_bo* bo_import =
|
||||||
|
+ struct gbm_bo* imported_bo =
|
||||||
|
gbm_bo_import(device_, GBM_BO_IMPORT_FD_MODIFIER, &fd_data, flags);
|
||||||
|
- if (bo_import) {
|
||||||
|
- gbm_bo_destroy(bo_import);
|
||||||
|
- break;
|
||||||
|
+
|
||||||
|
+ if (imported_bo) {
|
||||||
|
+ valid_modifiers = true;
|
||||||
|
+ gbm_bo_destroy(imported_bo);
|
||||||
|
} else {
|
||||||
|
- gbm_bo_destroy(bo);
|
||||||
|
- bo = nullptr;
|
||||||
|
AddModifierToBlocklist(format, flags, fd_data.modifier);
|
||||||
|
filtered_modifiers =
|
||||||
|
GetFilteredModifiers(format, flags, filtered_modifiers);
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+ if (!valid_modifiers || size != requested_size) {
|
||||||
|
+ gbm_bo_destroy(created_bo);
|
||||||
|
+ created_bo = nullptr;
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
- if (!bo) {
|
||||||
|
- return nullptr;
|
||||||
|
+
|
||||||
|
+ // If modifiers were successfully verified though `created_bo` is null here,
|
||||||
|
+ // it it means that the buffer created for verification could not be reused,
|
||||||
|
+ // ie: different size, so create it now with the `requested_size`.
|
||||||
|
+ if (valid_modifiers && !created_bo) {
|
||||||
|
+ created_bo = gbm_bo_create_with_modifiers(
|
||||||
|
+ device_, requested_size.width(), requested_size.height(), format,
|
||||||
|
+ filtered_modifiers.data(), filtered_modifiers.size());
|
||||||
|
+ PLOG_IF(ERROR, !created_bo) << "Failed to create BO with modifiers.";
|
||||||
|
}
|
||||||
|
|
||||||
|
- return CreateBufferForBO(bo, format, size, flags);
|
||||||
|
+ return created_bo ? CreateBufferForBO(created_bo, format, size, flags)
|
||||||
|
+ : nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::unique_ptr<ui::GbmBuffer> CreateBufferFromHandle(
|
@ -0,0 +1,121 @@
|
|||||||
|
diff -up chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc.me chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc
|
||||||
|
--- chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc.me 2023-05-21 10:05:00.357860329 +0200
|
||||||
|
+++ chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc 2023-05-21 10:18:09.665432735 +0200
|
||||||
|
@@ -41,7 +41,6 @@
|
||||||
|
#include "media/gpu/gpu_video_encode_accelerator_helpers.h"
|
||||||
|
#include "media/gpu/h264_dpb.h"
|
||||||
|
#include "media/gpu/macros.h"
|
||||||
|
-#include "media/gpu/vaapi/av1_vaapi_video_encoder_delegate.h"
|
||||||
|
#include "media/gpu/vaapi/h264_vaapi_video_encoder_delegate.h"
|
||||||
|
#include "media/gpu/vaapi/va_surface.h"
|
||||||
|
#include "media/gpu/vaapi/vaapi_common.h"
|
||||||
|
@@ -200,7 +199,7 @@ bool VaapiVideoEncodeAccelerator::Initia
|
||||||
|
|
||||||
|
const VideoCodec codec = VideoCodecProfileToVideoCodec(config.output_profile);
|
||||||
|
if (codec != VideoCodec::kH264 && codec != VideoCodec::kVP8 &&
|
||||||
|
- codec != VideoCodec::kVP9 && codec != VideoCodec::kAV1) {
|
||||||
|
+ codec != VideoCodec::kVP9) {
|
||||||
|
MEDIA_LOG(ERROR, media_log.get())
|
||||||
|
<< "Unsupported profile: " << GetProfileName(config.output_profile);
|
||||||
|
return false;
|
||||||
|
@@ -293,7 +292,6 @@ void VaapiVideoEncodeAccelerator::Initia
|
||||||
|
break;
|
||||||
|
case VideoCodec::kVP8:
|
||||||
|
case VideoCodec::kVP9:
|
||||||
|
- case VideoCodec::kAV1:
|
||||||
|
mode = VaapiWrapper::kEncodeConstantQuantizationParameter;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
@@ -356,12 +354,6 @@ void VaapiVideoEncodeAccelerator::Initia
|
||||||
|
vaapi_wrapper_, error_cb);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
- case VideoCodec::kAV1:
|
||||||
|
- if (!IsConfiguredForTesting()) {
|
||||||
|
- encoder_ = std::make_unique<AV1VaapiVideoEncoderDelegate>(
|
||||||
|
- vaapi_wrapper_, error_cb);
|
||||||
|
- }
|
||||||
|
- break;
|
||||||
|
default:
|
||||||
|
NOTREACHED() << "Unsupported codec type " << GetCodecName(output_codec_);
|
||||||
|
return;
|
||||||
|
@@ -835,10 +827,6 @@ VaapiVideoEncodeAccelerator::CreateEncod
|
||||||
|
case VideoCodec::kVP9:
|
||||||
|
picture = new VaapiVP9Picture(std::move(reconstructed_surface));
|
||||||
|
break;
|
||||||
|
- case VideoCodec::kAV1:
|
||||||
|
- picture = new VaapiAV1Picture(/*display_va_surface=*/nullptr,
|
||||||
|
- std::move(reconstructed_surface));
|
||||||
|
- break;
|
||||||
|
default:
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
diff -up chromium-114.0.5735.35/media/gpu/BUILD.gn.revert-av1enc chromium-114.0.5735.35/media/gpu/BUILD.gn
|
||||||
|
--- chromium-114.0.5735.35/media/gpu/BUILD.gn.revert-av1enc 2023-05-18 00:37:57.000000000 +0200
|
||||||
|
+++ chromium-114.0.5735.35/media/gpu/BUILD.gn 2023-05-20 13:14:10.755183630 +0200
|
||||||
|
@@ -373,10 +373,7 @@ source_set("common") {
|
||||||
|
"vp9_svc_layers.h",
|
||||||
|
]
|
||||||
|
configs += [ "//third_party/libvpx:libvpx_config" ]
|
||||||
|
- deps += [
|
||||||
|
- "//third_party/libaom:libaomrc",
|
||||||
|
- "//third_party/libvpx:libvpxrc",
|
||||||
|
- ]
|
||||||
|
+ deps += [ "//third_party/libvpx:libvpxrc" ]
|
||||||
|
}
|
||||||
|
if (use_libgav1_parser) {
|
||||||
|
sources += [
|
||||||
|
diff -up chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn.revert-av1enc chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn
|
||||||
|
--- chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn.revert-av1enc 2023-05-18 00:37:57.000000000 +0200
|
||||||
|
+++ chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn 2023-05-20 13:14:10.756183626 +0200
|
||||||
|
@@ -38,8 +38,6 @@ source_set("vaapi") {
|
||||||
|
sources = [
|
||||||
|
"av1_vaapi_video_decoder_delegate.cc",
|
||||||
|
"av1_vaapi_video_decoder_delegate.h",
|
||||||
|
- "av1_vaapi_video_encoder_delegate.cc",
|
||||||
|
- "av1_vaapi_video_encoder_delegate.h",
|
||||||
|
"h264_vaapi_video_decoder_delegate.cc",
|
||||||
|
"h264_vaapi_video_decoder_delegate.h",
|
||||||
|
"h264_vaapi_video_encoder_delegate.cc",
|
||||||
|
@@ -107,7 +105,6 @@ source_set("vaapi") {
|
||||||
|
"//media/gpu/chromeos:common",
|
||||||
|
"//media/parsers",
|
||||||
|
"//mojo/public/cpp/bindings",
|
||||||
|
- "//third_party/libaom:libaomrc",
|
||||||
|
"//third_party/libvpx:libvpxrc",
|
||||||
|
"//third_party/libyuv",
|
||||||
|
"//ui/gfx",
|
||||||
|
diff -up chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.cc.me chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.cc
|
||||||
|
--- chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.cc.me 2023-11-02 15:08:30.921325747 +0100
|
||||||
|
+++ chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.cc 2023-11-02 15:09:46.123692602 +0100
|
||||||
|
@@ -3124,6 +3124,7 @@ bool VaapiWrapper::GetSupportedPackedHea
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
+#if 0 //disable AV1 due to old libva on epel9
|
||||||
|
bool VaapiWrapper::GetMinAV1SegmentSize(VideoCodecProfile profile,
|
||||||
|
uint32_t& min_seg_size) {
|
||||||
|
CHECK(!enforce_sequence_affinity_ ||
|
||||||
|
@@ -3141,6 +3142,7 @@ bool VaapiWrapper::GetMinAV1SegmentSize(
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
bool VaapiWrapper::BlitSurface(const VASurface& va_surface_src,
|
||||||
|
const VASurface& va_surface_dest,
|
||||||
|
diff -up chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.h.me chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.h
|
||||||
|
--- chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.h.me 2023-11-02 15:09:58.973928395 +0100
|
||||||
|
+++ chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.h 2023-11-02 15:10:45.990791114 +0100
|
||||||
|
@@ -553,9 +553,11 @@ class MEDIA_GPU_EXPORT VaapiWrapper
|
||||||
|
bool& packed_pps,
|
||||||
|
bool& packed_slice);
|
||||||
|
|
||||||
|
+#if 0 //disable AV1 due to old libva on epel9
|
||||||
|
// Gets the minimum segment block size supported for AV1 encoding.
|
||||||
|
[[nodiscard]] bool GetMinAV1SegmentSize(VideoCodecProfile profile,
|
||||||
|
uint32_t& min_seg_size);
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
// Blits a VASurface |va_surface_src| into another VASurface
|
||||||
|
// |va_surface_dest| applying pixel format conversion, cropping
|
@ -0,0 +1,39 @@
|
|||||||
|
diff -up chromium-119.0.6045.105/build/linux/unbundle/libusb.gn.gnsystem chromium-119.0.6045.105/build/linux/unbundle/libusb.gn
|
||||||
|
--- chromium-119.0.6045.105/build/linux/unbundle/libusb.gn.gnsystem 2023-11-06 12:22:08.550625387 +0100
|
||||||
|
+++ chromium-119.0.6045.105/build/linux/unbundle/libusb.gn 2023-11-06 12:22:08.550625387 +0100
|
||||||
|
@@ -0,0 +1,24 @@
|
||||||
|
+# Copyright 2016 The Chromium Authors. All rights reserved.
|
||||||
|
+# Use of this source code is governed by a BSD-style license that can be
|
||||||
|
+# found in the LICENSE file.
|
||||||
|
+
|
||||||
|
+import("//build/config/linux/pkg_config.gni")
|
||||||
|
+import("//build/shim_headers.gni")
|
||||||
|
+
|
||||||
|
+pkg_config("system_libusb") {
|
||||||
|
+ packages = [ "libusb-1.0" ]
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+shim_headers("libusb_shim") {
|
||||||
|
+ root_path = "src/libusb"
|
||||||
|
+ headers = [
|
||||||
|
+ "libusb.h",
|
||||||
|
+ ]
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+source_set("libusb") {
|
||||||
|
+ deps = [
|
||||||
|
+ ":libusb_shim",
|
||||||
|
+ ]
|
||||||
|
+ public_configs = [ ":system_libusb" ]
|
||||||
|
+}
|
||||||
|
diff -up chromium-119.0.6045.105/build/linux/unbundle/replace_gn_files.py.gnsystem chromium-119.0.6045.105/build/linux/unbundle/replace_gn_files.py
|
||||||
|
--- chromium-119.0.6045.105/build/linux/unbundle/replace_gn_files.py.gnsystem 2023-11-06 12:22:08.550625387 +0100
|
||||||
|
+++ chromium-119.0.6045.105/build/linux/unbundle/replace_gn_files.py 2023-11-06 12:28:28.295776501 +0100
|
||||||
|
@@ -54,6 +54,7 @@ REPLACEMENTS = {
|
||||||
|
'libevent': 'third_party/libevent/BUILD.gn',
|
||||||
|
'libjpeg': 'third_party/libjpeg.gni',
|
||||||
|
'libpng': 'third_party/libpng/BUILD.gn',
|
||||||
|
+ 'libusb': 'third_party/libusb/BUILD.gn',
|
||||||
|
'libvpx': 'third_party/libvpx/BUILD.gn',
|
||||||
|
'libwebp': 'third_party/libwebp/BUILD.gn',
|
||||||
|
'libxml': 'third_party/libxml/BUILD.gn',
|
@ -0,0 +1,65 @@
|
|||||||
|
diff -up chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_extractor.cc.system-minizip chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_extractor.cc
|
||||||
|
--- chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_extractor.cc.system-minizip 2023-11-06 12:42:34.928657960 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_extractor.cc 2023-11-06 12:51:12.547834851 +0100
|
||||||
|
@@ -28,9 +28,8 @@ limitations under the License.
|
||||||
|
#include "tensorflow_lite_support/cc/port/status_macros.h"
|
||||||
|
#include "tensorflow_lite_support/metadata/cc/utils/zip_readonly_mem_file.h"
|
||||||
|
#include "tensorflow_lite_support/metadata/metadata_schema_generated.h"
|
||||||
|
-#include "third_party/zlib/contrib/minizip/ioapi.h"
|
||||||
|
-#include "third_party/zlib/contrib/minizip/unzip.h"
|
||||||
|
-
|
||||||
|
+#include <minizip/ioapi.h>
|
||||||
|
+#include <minizip/unzip.h>
|
||||||
|
|
||||||
|
namespace tflite {
|
||||||
|
namespace metadata {
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_populator.cc.system-minizip chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_populator.cc
|
||||||
|
--- chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_populator.cc.system-minizip 2023-11-01 19:11:24.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_populator.cc 2023-11-06 12:42:34.928657960 +0100
|
||||||
|
@@ -26,8 +26,8 @@ limitations under the License.
|
||||||
|
#include "tensorflow_lite_support/cc/port/statusor.h"
|
||||||
|
#include "tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.h"
|
||||||
|
#include "tensorflow_lite_support/metadata/metadata_schema_generated.h"
|
||||||
|
-#include "third_party/zlib/contrib/minizip/ioapi.h"
|
||||||
|
-#include "third_party/zlib/contrib/minizip/unzip.h"
|
||||||
|
+#include <minizip/ioapi.h>
|
||||||
|
+#include <minizip/zip.h>
|
||||||
|
|
||||||
|
namespace tflite {
|
||||||
|
namespace metadata {
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_readonly_mem_file.cc.system-minizip chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_readonly_mem_file.cc
|
||||||
|
--- chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_readonly_mem_file.cc.system-minizip 2023-11-01 19:11:24.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_readonly_mem_file.cc 2023-11-06 12:42:34.929657982 +0100
|
||||||
|
@@ -19,7 +19,7 @@ limitations under the License.
|
||||||
|
#include <cstdio>
|
||||||
|
|
||||||
|
#include "absl/strings/string_view.h" // from @com_google_absl
|
||||||
|
-#include "third_party/zlib/contrib/minizip/ioapi.h"
|
||||||
|
+#include <minizip/ioapi.h>
|
||||||
|
|
||||||
|
namespace tflite {
|
||||||
|
namespace metadata {
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.cc.system-minizip chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.cc
|
||||||
|
--- chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.cc.system-minizip 2023-11-01 19:11:24.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.cc 2023-11-06 12:42:34.929657982 +0100
|
||||||
|
@@ -19,7 +19,7 @@ limitations under the License.
|
||||||
|
#include <cstdio>
|
||||||
|
|
||||||
|
#include "absl/strings/string_view.h" // from @com_google_absl
|
||||||
|
-#include "third_party/zlib/contrib/minizip/ioapi.h"
|
||||||
|
+#include <minizip/ioapi.h>
|
||||||
|
|
||||||
|
namespace tflite {
|
||||||
|
namespace metadata {
|
||||||
|
diff -up chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.h.system-minizip chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.h
|
||||||
|
--- chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.h.system-minizip 2023-11-01 19:11:24.000000000 +0100
|
||||||
|
+++ chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.h 2023-11-06 12:42:34.929657982 +0100
|
||||||
|
@@ -19,7 +19,7 @@ limitations under the License.
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
|
#include "absl/strings/string_view.h" // from @com_google_absl
|
||||||
|
-#include "third_party/zlib/contrib/minizip/ioapi.h"
|
||||||
|
+#include <minizip/ioapi.h>
|
||||||
|
|
||||||
|
namespace tflite {
|
||||||
|
namespace metadata {
|
@ -0,0 +1,20 @@
|
|||||||
|
diff -up chromium-70.0.3538.67/sandbox/linux/BUILD.gn.sandboxpie chromium-70.0.3538.67/sandbox/linux/BUILD.gn
|
||||||
|
--- chromium-70.0.3538.67/sandbox/linux/BUILD.gn.sandboxpie 2018-10-18 12:14:05.766939769 -0400
|
||||||
|
+++ chromium-70.0.3538.67/sandbox/linux/BUILD.gn 2018-10-18 12:16:37.820027182 -0400
|
||||||
|
@@ -315,10 +315,16 @@ if (is_linux) {
|
||||||
|
# For ULLONG_MAX
|
||||||
|
"-std=gnu99",
|
||||||
|
|
||||||
|
+ "-fPIE",
|
||||||
|
+
|
||||||
|
# These files have a suspicious comparison.
|
||||||
|
# TODO fix this and re-enable this warning.
|
||||||
|
"-Wno-sign-compare",
|
||||||
|
]
|
||||||
|
+
|
||||||
|
+ ldflags = [
|
||||||
|
+ "-pie",
|
||||||
|
+ ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
diff -up chromium-77.0.3865.75/third_party/zlib/zconf.h.nozmangle chromium-77.0.3865.75/third_party/zlib/zconf.h
|
||||||
|
--- chromium-77.0.3865.75/third_party/zlib/zconf.h.nozmangle 2019-09-12 09:36:37.924086850 +0200
|
||||||
|
+++ chromium-77.0.3865.75/third_party/zlib/zconf.h 2019-09-12 09:53:01.623958551 +0200
|
||||||
|
@@ -9,18 +9,6 @@
|
||||||
|
#define ZCONF_H
|
||||||
|
|
||||||
|
/*
|
||||||
|
- * This library is also built as a part of AOSP, which does not need to include
|
||||||
|
- * chromeconf.h. This config does not want chromeconf.h, so it can set this
|
||||||
|
- * macro to opt out. While this works today, there's no guarantee that building
|
||||||
|
- * zlib outside of Chromium keeps working in the future.
|
||||||
|
- */
|
||||||
|
-#if !defined(CHROMIUM_ZLIB_NO_CHROMECONF)
|
||||||
|
-/* This include does prefixing as below, but with an updated set of names. Also
|
||||||
|
- * sets up export macros in component builds. */
|
||||||
|
-#include "chromeconf.h"
|
||||||
|
-#endif
|
||||||
|
-
|
||||||
|
-/*
|
||||||
|
* If you *really* need a unique prefix for all types and library functions,
|
||||||
|
* compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
|
||||||
|
* Even better than compiling with -DZ_PREFIX would be to use configure to set
|
@ -0,0 +1,12 @@
|
|||||||
|
diff -up chromium-81.0.4044.92/third_party/perfetto/gn/BUILD.gn.unbundle-zlib chromium-81.0.4044.92/third_party/perfetto/gn/BUILD.gn
|
||||||
|
--- chromium-81.0.4044.92/third_party/perfetto/gn/BUILD.gn.unbundle-zlib 2020-04-13 12:25:09.001172601 -0400
|
||||||
|
+++ chromium-81.0.4044.92/third_party/perfetto/gn/BUILD.gn 2020-04-13 12:25:23.688921586 -0400
|
||||||
|
@@ -294,7 +294,7 @@ if (enable_perfetto_zlib) {
|
||||||
|
public_configs = [ "//buildtools:zlib_config" ]
|
||||||
|
public_deps = [ "//buildtools:zlib" ]
|
||||||
|
} else {
|
||||||
|
- public_configs = [ "//third_party/zlib:zlib_config" ]
|
||||||
|
+ public_configs = [ "//third_party/zlib:system_zlib" ]
|
||||||
|
public_deps = [ "//third_party/zlib" ]
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
diff -up chromium-85.0.4183.83/ui/gfx/linux/drm_util_linux.cc.el7-old-libdrm chromium-85.0.4183.83/ui/gfx/linux/drm_util_linux.cc
|
||||||
|
--- chromium-85.0.4183.83/ui/gfx/linux/drm_util_linux.cc.el7-old-libdrm 2020-08-31 09:38:46.043993882 -0400
|
||||||
|
+++ chromium-85.0.4183.83/ui/gfx/linux/drm_util_linux.cc 2020-08-31 09:39:21.599906318 -0400
|
||||||
|
@@ -6,6 +6,11 @@
|
||||||
|
|
||||||
|
#include <drm_fourcc.h>
|
||||||
|
|
||||||
|
+// the libdrm in EL-7 is too old to have this define
|
||||||
|
+#ifndef DRM_FORMAT_P010
|
||||||
|
+#define DRM_FORMAT_P010 DRM_FORMAT_INVALID
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#include "base/notreached.h"
|
||||||
|
|
||||||
|
namespace ui {
|
@ -0,0 +1,13 @@
|
|||||||
|
diff -up chromium-91.0.4472.77/third_party/closure_compiler/compiler.py.java-allowed chromium-91.0.4472.77/third_party/closure_compiler/compiler.py
|
||||||
|
--- chromium-91.0.4472.77/third_party/closure_compiler/compiler.py.java-allowed 2021-06-02 17:14:48.445064647 +0000
|
||||||
|
+++ chromium-91.0.4472.77/third_party/closure_compiler/compiler.py 2021-06-02 17:15:12.994836949 +0000
|
||||||
|
@@ -13,8 +13,7 @@ import subprocess
|
||||||
|
|
||||||
|
|
||||||
|
_CURRENT_DIR = os.path.join(os.path.dirname(__file__))
|
||||||
|
-_JAVA_PATH = os.path.join(_CURRENT_DIR, "..", "jdk", "current", "bin", "java")
|
||||||
|
-assert os.path.isfile(_JAVA_PATH), "java only allowed in android builds"
|
||||||
|
+_JAVA_PATH = "java"
|
||||||
|
|
||||||
|
class Compiler(object):
|
||||||
|
"""Runs the Closure compiler on given source files to typecheck them
|
@ -0,0 +1,12 @@
|
|||||||
|
diff -up chromium-93.0.4577.63/tools/gn/bootstrap/bootstrap.py.py3 chromium-93.0.4577.63/tools/gn/bootstrap/bootstrap.py
|
||||||
|
--- chromium-93.0.4577.63/tools/gn/bootstrap/bootstrap.py.py3 2021-08-31 21:40:34.000000000 -0400
|
||||||
|
+++ chromium-93.0.4577.63/tools/gn/bootstrap/bootstrap.py 2021-09-02 08:26:04.415846917 -0400
|
||||||
|
@@ -130,7 +130,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/python3',
|
||||||
|
'--args=%s' % gn_gen_args, "--root=" + SRC_ROOT
|
||||||
|
])
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
diff -up chromium-98.0.4758.80/components/ui_devtools/views/ui_element_with_metadata.cc.erase-fix chromium-98.0.4758.80/components/ui_devtools/views/ui_element_with_metadata.cc
|
||||||
|
--- chromium-98.0.4758.80/components/ui_devtools/views/ui_element_with_metadata.cc.erase-fix 2022-02-03 19:16:57.784979831 +0000
|
||||||
|
+++ chromium-98.0.4758.80/components/ui_devtools/views/ui_element_with_metadata.cc 2022-02-03 19:17:12.983633352 +0000
|
||||||
|
@@ -19,14 +19,14 @@ namespace {
|
||||||
|
// Remove any custom editor "prefixes" from the property name. The prefixes must
|
||||||
|
// not be valid identifier characters.
|
||||||
|
void StripPrefix(std::string& property_name) {
|
||||||
|
- auto cur = property_name.cbegin();
|
||||||
|
+ auto cur = property_name.begin();
|
||||||
|
for (; cur < property_name.cend(); ++cur) {
|
||||||
|
if ((*cur >= 'A' && *cur <= 'Z') || (*cur >= 'a' && *cur <= 'z') ||
|
||||||
|
*cur == '_') {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- property_name.erase(property_name.cbegin(), cur);
|
||||||
|
+ property_name.erase(property_name.begin(), cur);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace
|
@ -0,0 +1,26 @@
|
|||||||
|
diff -up chromium-99.0.4844.51/base/allocator/partition_allocator/starscan/metadata_allocator.h.el7-extra-operator-equalequal chromium-99.0.4844.51/base/allocator/partition_allocator/starscan/metadata_allocator.h
|
||||||
|
--- chromium-99.0.4844.51/base/allocator/partition_allocator/starscan/metadata_allocator.h.el7-extra-operator-equalequal 2022-03-05 18:37:25.979241754 -0500
|
||||||
|
+++ chromium-99.0.4844.51/base/allocator/partition_allocator/starscan/metadata_allocator.h 2022-03-05 18:37:25.979241754 -0500
|
||||||
|
@@ -39,6 +39,11 @@ class MetadataAllocator {
|
||||||
|
}
|
||||||
|
|
||||||
|
template <typename U>
|
||||||
|
+ bool operator==(const MetadataAllocator<U>&) const {
|
||||||
|
+ return true;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ template <typename U>
|
||||||
|
bool operator!=(const MetadataAllocator<U>& o) {
|
||||||
|
return !operator==(o);
|
||||||
|
}
|
||||||
|
diff -up chromium-99.0.4844.51/third_party/pdfium/core/fxcrt/fx_memory_wrappers.h.el7-extra-operator-equalequal chromium-99.0.4844.51/third_party/pdfium/core/fxcrt/fx_memory_wrappers.h
|
||||||
|
--- chromium-99.0.4844.51/third_party/pdfium/core/fxcrt/fx_memory_wrappers.h.el7-extra-operator-equalequal 2022-03-06 19:14:20.892513442 -0500
|
||||||
|
+++ chromium-99.0.4844.51/third_party/pdfium/core/fxcrt/fx_memory_wrappers.h 2022-03-06 19:15:40.412060574 -0500
|
||||||
|
@@ -70,6 +70,7 @@ struct FxPartitionAllocAllocator {
|
||||||
|
}
|
||||||
|
|
||||||
|
// There's no state, so they are all the same,
|
||||||
|
+ bool operator==(const FxPartitionAllocAllocator&) const { return true; }
|
||||||
|
bool operator==(const FxPartitionAllocAllocator& that) { return true; }
|
||||||
|
bool operator!=(const FxPartitionAllocAllocator& that) { return false; }
|
||||||
|
};
|
@ -0,0 +1,142 @@
|
|||||||
|
diff -up chromium-99.0.4844.51/printing/backend/cups_helper.cc.el7cups chromium-99.0.4844.51/printing/backend/cups_helper.cc
|
||||||
|
--- chromium-99.0.4844.51/printing/backend/cups_helper.cc.el7cups 2022-02-28 19:05:55.000000000 -0500
|
||||||
|
+++ chromium-99.0.4844.51/printing/backend/cups_helper.cc 2022-03-05 15:17:45.516887985 -0500
|
||||||
|
@@ -34,18 +34,6 @@ namespace printing {
|
||||||
|
// This section contains helper code for PPD parsing for semantic capabilities.
|
||||||
|
namespace {
|
||||||
|
|
||||||
|
-// Function availability can be tested by checking whether its address is not
|
||||||
|
-// nullptr. Weak symbols remove the need for platform specific build flags and
|
||||||
|
-// allow for appropriate CUPS usage on platforms with non-uniform version
|
||||||
|
-// support, namely Linux.
|
||||||
|
-#define WEAK_CUPS_FN(x) extern "C" __attribute__((weak)) decltype(x) x
|
||||||
|
-
|
||||||
|
-WEAK_CUPS_FN(httpConnect2);
|
||||||
|
-
|
||||||
|
-// Timeout for establishing a CUPS connection. It is expected that cupsd is
|
||||||
|
-// able to start and respond on all systems within this duration.
|
||||||
|
-constexpr base::TimeDelta kCupsTimeout = base::Seconds(5);
|
||||||
|
-
|
||||||
|
// CUPS default max copies value (parsed from kCupsMaxCopies PPD attribute).
|
||||||
|
constexpr int32_t kDefaultMaxCopies = 9999;
|
||||||
|
constexpr char kCupsMaxCopies[] = "cupsMaxCopies";
|
||||||
|
@@ -527,8 +515,7 @@ const int kDefaultIPPServerPort = 631;
|
||||||
|
// Helper wrapper around http_t structure, with connection and cleanup
|
||||||
|
// functionality.
|
||||||
|
HttpConnectionCUPS::HttpConnectionCUPS(const GURL& print_server_url,
|
||||||
|
- http_encryption_t encryption,
|
||||||
|
- bool blocking)
|
||||||
|
+ http_encryption_t encryption)
|
||||||
|
: http_(nullptr) {
|
||||||
|
// If we have an empty url, use default print server.
|
||||||
|
if (print_server_url.is_empty())
|
||||||
|
@@ -538,17 +525,10 @@ HttpConnectionCUPS::HttpConnectionCUPS(c
|
||||||
|
if (port == url::PORT_UNSPECIFIED)
|
||||||
|
port = kDefaultIPPServerPort;
|
||||||
|
|
||||||
|
- if (httpConnect2) {
|
||||||
|
- http_ = httpConnect2(print_server_url.host().c_str(), port,
|
||||||
|
- /*addrlist=*/nullptr, AF_UNSPEC, encryption,
|
||||||
|
- blocking ? 1 : 0, kCupsTimeout.InMilliseconds(),
|
||||||
|
- /*cancel=*/nullptr);
|
||||||
|
- } else {
|
||||||
|
- // Continue to use deprecated CUPS calls because because older Linux
|
||||||
|
- // distribution such as RHEL/CentOS 7 are shipped with CUPS 1.6.
|
||||||
|
- http_ =
|
||||||
|
- httpConnectEncrypt(print_server_url.host().c_str(), port, encryption);
|
||||||
|
- }
|
||||||
|
+ // Continue to use deprecated CUPS calls because because older Linux
|
||||||
|
+ // distribution such as RHEL/CentOS 7 are shipped with CUPS 1.6.
|
||||||
|
+ http_ =
|
||||||
|
+ httpConnectEncrypt(print_server_url.host().c_str(), port, encryption);
|
||||||
|
|
||||||
|
if (!http_) {
|
||||||
|
LOG(ERROR) << "CP_CUPS: Failed connecting to print server: "
|
||||||
|
@@ -556,8 +536,6 @@ HttpConnectionCUPS::HttpConnectionCUPS(c
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (!httpConnect2)
|
||||||
|
- httpBlocking(http_, blocking ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
HttpConnectionCUPS::~HttpConnectionCUPS() {
|
||||||
|
@@ -565,6 +543,10 @@ HttpConnectionCUPS::~HttpConnectionCUPS(
|
||||||
|
httpClose(http_);
|
||||||
|
}
|
||||||
|
|
||||||
|
+void HttpConnectionCUPS::SetBlocking(bool blocking) {
|
||||||
|
+ httpBlocking(http_, blocking ? 1 : 0);
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
http_t* HttpConnectionCUPS::http() {
|
||||||
|
return http_;
|
||||||
|
}
|
||||||
|
diff -up chromium-99.0.4844.51/printing/backend/cups_helper.h.el7cups chromium-99.0.4844.51/printing/backend/cups_helper.h
|
||||||
|
--- chromium-99.0.4844.51/printing/backend/cups_helper.h.el7cups 2022-02-28 19:05:55.000000000 -0500
|
||||||
|
+++ chromium-99.0.4844.51/printing/backend/cups_helper.h 2022-03-05 15:17:45.517887991 -0500
|
||||||
|
@@ -34,10 +34,11 @@ constexpr cups_ptype_t kDestinationsFilt
|
||||||
|
class COMPONENT_EXPORT(PRINT_BACKEND) HttpConnectionCUPS {
|
||||||
|
public:
|
||||||
|
HttpConnectionCUPS(const GURL& print_server_url,
|
||||||
|
- http_encryption_t encryption,
|
||||||
|
- bool blocking);
|
||||||
|
+ http_encryption_t encryption);
|
||||||
|
~HttpConnectionCUPS();
|
||||||
|
|
||||||
|
+ void SetBlocking(bool blocking);
|
||||||
|
+
|
||||||
|
http_t* http();
|
||||||
|
|
||||||
|
private:
|
||||||
|
diff -up chromium-99.0.4844.51/printing/backend/print_backend_cups.cc.el7cups chromium-99.0.4844.51/printing/backend/print_backend_cups.cc
|
||||||
|
--- chromium-99.0.4844.51/printing/backend/print_backend_cups.cc.el7cups 2022-02-28 19:05:55.000000000 -0500
|
||||||
|
+++ chromium-99.0.4844.51/printing/backend/print_backend_cups.cc 2022-03-05 15:17:45.517887991 -0500
|
||||||
|
@@ -146,7 +146,7 @@ mojom::ResultCode PrintBackendCUPS::Enum
|
||||||
|
// not showing as available. Using cupsEnumDests() allows us to do our own
|
||||||
|
// filtering should any duplicates occur.
|
||||||
|
CupsDestsData dests_data = {0, nullptr};
|
||||||
|
- ipp_status_t last_error = IPP_STATUS_OK;
|
||||||
|
+ ipp_status_t last_error = IPP_OK;
|
||||||
|
if (print_server_url_.is_empty()) {
|
||||||
|
VLOG(1) << "CUPS: using cupsEnumDests to enumerate printers";
|
||||||
|
if (!cupsEnumDests(CUPS_DEST_FLAGS_NONE, kCupsTimeoutMs,
|
||||||
|
@@ -173,7 +173,7 @@ mojom::ResultCode PrintBackendCUPS::Enum
|
||||||
|
// no printer drivers installed. Rely upon CUPS error code to distinguish
|
||||||
|
// between these.
|
||||||
|
DCHECK(!dests_data.dests);
|
||||||
|
- if (last_error != IPP_STATUS_ERROR_NOT_FOUND) {
|
||||||
|
+ if (last_error != IPP_NOT_FOUND) {
|
||||||
|
VLOG(1) << "CUPS: Error getting printers from CUPS server"
|
||||||
|
<< ", server: " << print_server_url_
|
||||||
|
<< ", error: " << static_cast<int>(last_error) << " - "
|
||||||
|
@@ -336,7 +336,8 @@ int PrintBackendCUPS::GetDests(cups_dest
|
||||||
|
if (print_server_url_.is_empty())
|
||||||
|
return cupsGetDests2(CUPS_HTTP_DEFAULT, dests);
|
||||||
|
|
||||||
|
- HttpConnectionCUPS http(print_server_url_, cups_encryption_, blocking_);
|
||||||
|
+ HttpConnectionCUPS http(print_server_url_, cups_encryption_);
|
||||||
|
+ http.SetBlocking(blocking_);
|
||||||
|
|
||||||
|
// This call must be made in the same scope as `http` because its destructor
|
||||||
|
// closes the connection.
|
||||||
|
@@ -362,7 +363,8 @@ base::FilePath PrintBackendCUPS::GetPPD(
|
||||||
|
// connection will timeout after 10 seconds of no data period. And it will
|
||||||
|
// return the same way as if data was completely and successfully
|
||||||
|
// downloaded.
|
||||||
|
- HttpConnectionCUPS http(print_server_url_, cups_encryption_, blocking_);
|
||||||
|
+ HttpConnectionCUPS http(print_server_url_, cups_encryption_);
|
||||||
|
+ http.SetBlocking(blocking_);
|
||||||
|
ppd_file_path = cupsGetPPD2(http.http(), name);
|
||||||
|
// Check if the get full PPD, since non-blocking call may simply return
|
||||||
|
// normally after timeout expired.
|
||||||
|
@@ -398,7 +400,8 @@ PrintBackendCUPS::ScopedDestination Prin
|
||||||
|
// Use default (local) print server.
|
||||||
|
dest = cupsGetNamedDest(CUPS_HTTP_DEFAULT, printer_name.c_str(), nullptr);
|
||||||
|
} else {
|
||||||
|
- HttpConnectionCUPS http(print_server_url_, cups_encryption_, blocking_);
|
||||||
|
+ HttpConnectionCUPS http(print_server_url_, cups_encryption_);
|
||||||
|
+ http.SetBlocking(blocking_);
|
||||||
|
dest = cupsGetNamedDest(http.http(), printer_name.c_str(), nullptr);
|
||||||
|
}
|
||||||
|
return ScopedDestination(dest);
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue