From 372d02b3416c8ac8d8ab70d74c6d497a93f56380 Mon Sep 17 00:00:00 2001 From: Alexander Frick Date: Tue, 28 Feb 2023 22:13:31 -0600 Subject: [PATCH] add stuff --- VERSION.sh | 2 +- setup.sh | 17 +++++------------ src/chrome/browser/thorium_flag_entries.h | 6 +++++- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/VERSION.sh b/VERSION.sh index a067e85a..f609f7b5 100755 --- a/VERSION.sh +++ b/VERSION.sh @@ -44,7 +44,7 @@ git checkout -f tags/$THOR_VER && git clean -ffd && -cp thorium-libjxl/DEPS ~/chromium/src/ +cp -v thorium-libjxl/DEPS ~/chromium/src/ gclient sync --with_branch_heads --with_tags -f -R -D && diff --git a/setup.sh b/setup.sh index f2a25def..a5c9f60b 100755 --- a/setup.sh +++ b/setup.sh @@ -44,10 +44,15 @@ printf "\n" && printf "${YEL}Copying Thorium source files over the Chromium tree...\n" && tput sgr0 && +# Copy libjxl src +cp -r -v thorium-libjxl/src/. $HOME/chromium/src/ && + +# Copy Thorium sources cp -r -v src/BUILD.gn $HOME/chromium/src/ && cp -r -v src/ash/. $HOME/chromium/src/ash/ && cp -r -v src/build/. $HOME/chromium/src/build/ && cp -r -v src/chrome/. $HOME/chromium/src/chrome/ && +cp -r -v src/chromeos/. $HOME/chromium/src/chromeos/ && cp -r -v src/components/. $HOME/chromium/src/components/ && cp -r -v src/extensions/. $HOME/chromium/src/extensions/ && cp -r -v src/content/. $HOME/chromium/src/content/ && @@ -62,9 +67,6 @@ cp -r -v thorium_shell/. $HOME/chromium/src/out/thorium/ && cp -r -v pak_src/bin/pak $HOME/chromium/src/out/thorium/ && cp -r -v pak_src/bin/pak-win/. $HOME/chromium/src/out/thorium/ && -# Copy libjxl src -cp -r -v thorium-libjxl/src/. $HOME/chromium/src/ && - # Add default_apps dir for Google Docs Offline extension. mkdir -v -p $HOME/chromium/src/out/thorium/default_apps && cp -r -v infra/default_apps/. $HOME/chromium/src/out/thorium/default_apps/ && @@ -73,15 +75,6 @@ echo " # Workaround for DevTools" && mkdir -v -p $HOME/chromium/src/out/thorium/gen/third_party/devtools-frontend/src/front_end/Images/ && cp -r -v src/third_party/devtools-frontend/src/front_end/Images/src/chromeSelectDark.svg $HOME/chromium/src/out/thorium/gen/third_party/devtools-frontend/src/front_end/Images/ && -printf "\n" && -printf "${YEL}Making some scripts executable...\n" && -tput sgr0 && -chmod -v +x $HOME/chromium/src/tools/clang/scripts/build.py && - -chmod -v +x $HOME/chromium/src/tools/gn/bootstrap/bootstrap.py && - -chmod -v +x $HOME/chromium/src/chrome/installer/linux/debian/build.sh && - # MacOS Widevine Workaround copyMacOS () { printf "\n" && diff --git a/src/chrome/browser/thorium_flag_entries.h b/src/chrome/browser/thorium_flag_entries.h index 91ec8a9a..0920a4f9 100644 --- a/src/chrome/browser/thorium_flag_entries.h +++ b/src/chrome/browser/thorium_flag_entries.h @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Alex313031. All rights reserved. +// Copyright (c) 2023 Alex313031. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -81,6 +81,10 @@ "GTK Auto Dark Mode", "Enables Thorium to automatically change to Dark Mode according to the system GTK Theme.", kOsLinux, SINGLE_VALUE_TYPE("auto-dark-mode")}, + {"enable-native-gpu-memory-buffers", + "Enable Native GPU Memory Buffers", + "Enables native CPU-mappable GPU memory buffer support on Linux.", + kOsLinux, SINGLE_VALUE_TYPE("enable-native-gpu-memory-buffers")}, #endif // BUILDFLAG(IS_LINUX) #if BUILDFLAG(IS_WIN)