automatic version update by autodist [release 123.0.6312.105-1mamba;Sun Apr 07 2024]
This commit is contained in:
parent
eaf3964901
commit
35a9a3f030
@ -1,49 +0,0 @@
|
|||||||
From 54969766fd2029c506befc46e9ce14d67c7ed02a Mon Sep 17 00:00:00 2001
|
|
||||||
From: Arthur Eubanks <aeubanks@google.com>
|
|
||||||
Date: Tue, 25 Apr 2023 03:05:19 +0000
|
|
||||||
Subject: [PATCH] Reland [clang] Disable autoupgrading debug info in ThinLTO
|
|
||||||
builds
|
|
||||||
|
|
||||||
ThinLTO reads bitcode many times and attempts to upgrade the debug info every time. This is expensive since it calls the verifier. We don't need this given all LLVM bitcode producers are from the same version of LLVM.
|
|
||||||
|
|
||||||
For just the build step that runs ThinLTO and links official Chrome, measured 34T -> 32T instructions via perf stat.
|
|
||||||
|
|
||||||
Reland disables adding flag for ChromeOS since that toolchain is too old to have this flag.
|
|
||||||
|
|
||||||
Bug: 972449
|
|
||||||
Change-Id: I44552dd6c9dc71683c002d0c885e78b2a4341659
|
|
||||||
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4470209
|
|
||||||
Reviewed-by: Nico Weber <thakis@chromium.org>
|
|
||||||
Commit-Queue: Arthur Eubanks <aeubanks@google.com>
|
|
||||||
Cr-Commit-Position: refs/heads/main@{#1135007}
|
|
||||||
---
|
|
||||||
build/config/compiler/BUILD.gn | 9 +++++++++
|
|
||||||
1 file changed, 9 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
|
||||||
index 1c13bc80f0f..53db095c1b1 100644
|
|
||||||
--- a/build/config/compiler/BUILD.gn
|
|
||||||
+++ b/build/config/compiler/BUILD.gn
|
|
||||||
@@ -685,6 +685,7 @@ config("compiler") {
|
|
||||||
"/lldltocache:" +
|
|
||||||
rebase_path("$root_out_dir/thinlto-cache", root_build_dir),
|
|
||||||
"/lldltocachepolicy:$cache_policy",
|
|
||||||
+ "-mllvm:-disable-auto-upgrade-debug-info",
|
|
||||||
]
|
|
||||||
} else {
|
|
||||||
ldflags += [ "-flto=thin" ]
|
|
||||||
@@ -725,6 +726,14 @@ config("compiler") {
|
|
||||||
}
|
|
||||||
|
|
||||||
ldflags += [ "-Wl,-mllvm,-import-instr-limit=$import_instr_limit" ]
|
|
||||||
+
|
|
||||||
+ if (!is_chromeos) {
|
|
||||||
+ # TODO(https://crbug.com/972449): turn on for ChromeOS when that
|
|
||||||
+ # toolchain has this flag.
|
|
||||||
+ # We only use one version of LLVM within a build so there's no need to
|
|
||||||
+ # upgrade debug info, which can be expensive since it runs the verifier.
|
|
||||||
+ ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
# TODO(https://crbug.com/1211155): investigate why this isn't effective on
|
|
@ -1,516 +0,0 @@
|
|||||||
diff --git a/chrome/browser/download/bubble/download_bubble_update_service.cc b/chrome/browser/download/bubble/download_bubble_update_service.cc
|
|
||||||
index 93ec91e38b9..acd25f25d15 100644
|
|
||||||
--- a/chrome/browser/download/bubble/download_bubble_update_service.cc
|
|
||||||
+++ b/chrome/browser/download/bubble/download_bubble_update_service.cc
|
|
||||||
@@ -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::CacheManager::RemoveItemFromCacheImpl(
|
|
||||||
}
|
|
||||||
|
|
||||||
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 --git a/chrome/browser/ui/omnibox/chrome_omnibox_client.cc b/chrome/browser/ui/omnibox/chrome_omnibox_client.cc
|
|
||||||
index d923cdfa322..36ac59ca7ac 100644
|
|
||||||
--- a/chrome/browser/ui/omnibox/chrome_omnibox_client.cc
|
|
||||||
+++ b/chrome/browser/ui/omnibox/chrome_omnibox_client.cc
|
|
||||||
@@ -470,10 +470,10 @@ void ChromeOmniboxClient::OnAutocompleteAccept(
|
|
||||||
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 --git a/chrome/test/chromedriver/capabilities.cc b/chrome/test/chromedriver/capabilities.cc
|
|
||||||
index a29dc8e4818..00aaf9b4067 100644
|
|
||||||
--- a/chrome/test/chromedriver/capabilities.cc
|
|
||||||
+++ b/chrome/test/chromedriver/capabilities.cc
|
|
||||||
@@ -355,7 +355,7 @@ Status ParseMobileEmulation(const base::Value& option,
|
|
||||||
"'version' field of type string");
|
|
||||||
}
|
|
||||||
|
|
||||||
- brands.emplace_back(*brand, *version);
|
|
||||||
+ brands.emplace_back(BrandVersion{*brand, *version});
|
|
||||||
}
|
|
||||||
|
|
||||||
client_hints.brands = std::move(brands);
|
|
||||||
@@ -392,7 +392,7 @@ Status ParseMobileEmulation(const base::Value& option,
|
|
||||||
"a 'version' field of type string");
|
|
||||||
}
|
|
||||||
|
|
||||||
- full_version_list.emplace_back(*brand, *version);
|
|
||||||
+ full_version_list.emplace_back(BrandVersion{*brand, *version});
|
|
||||||
}
|
|
||||||
|
|
||||||
client_hints.full_version_list = std::move(full_version_list);
|
|
||||||
diff --git a/components/optimization_guide/core/tflite_model_executor.h b/components/optimization_guide/core/tflite_model_executor.h
|
|
||||||
index 31417bc8d9d..abd41f4c8d4 100644
|
|
||||||
--- a/components/optimization_guide/core/tflite_model_executor.h
|
|
||||||
+++ b/components/optimization_guide/core/tflite_model_executor.h
|
|
||||||
@@ -189,7 +189,7 @@ class TFLiteModelExecutor : public ModelExecutor<OutputType, InputType> {
|
|
||||||
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 --git a/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc b/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc
|
|
||||||
index 3bace0dab10..0ea54d136ea 100644
|
|
||||||
--- a/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc
|
|
||||||
+++ b/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc
|
|
||||||
@@ -1496,7 +1496,7 @@ void SkiaOutputSurfaceImplOnGpu::CopyOutputNV12(
|
|
||||||
|
|
||||||
// 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 --git a/content/public/browser/web_ui_browser_interface_broker_registry.h b/content/public/browser/web_ui_browser_interface_broker_registry.h
|
|
||||||
index 0a419be66b3..7253c9680f7 100644
|
|
||||||
--- a/content/public/browser/web_ui_browser_interface_broker_registry.h
|
|
||||||
+++ b/content/public/browser/web_ui_browser_interface_broker_registry.h
|
|
||||||
@@ -127,10 +127,10 @@ class CONTENT_EXPORT WebUIBrowserInterfaceBrokerRegistry {
|
|
||||||
//
|
|
||||||
// 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 --git a/net/dns/host_resolver_cache.cc b/net/dns/host_resolver_cache.cc
|
|
||||||
index df037a1a440..b2152d54408 100644
|
|
||||||
--- a/net/dns/host_resolver_cache.cc
|
|
||||||
+++ b/net/dns/host_resolver_cache.cc
|
|
||||||
@@ -159,7 +159,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 --git a/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc b/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc
|
|
||||||
index f9cf9f5ae86..0566ae194ce 100644
|
|
||||||
--- a/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc
|
|
||||||
+++ b/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc
|
|
||||||
@@ -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 --git a/third_party/blink/renderer/core/paint/object_paint_properties_sparse.h b/third_party/blink/renderer/core/paint/object_paint_properties_sparse.h
|
|
||||||
index 8bb1639676c..350bdbd5fde 100644
|
|
||||||
--- a/third_party/blink/renderer/core/paint/object_paint_properties_sparse.h
|
|
||||||
+++ b/third_party/blink/renderer/core/paint/object_paint_properties_sparse.h
|
|
||||||
@@ -269,8 +270,8 @@ class CORE_EXPORT ObjectPaintPropertiesSparse : public ObjectPaintProperties {
|
|
||||||
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 --git a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc
|
|
||||||
index 883d769ca4b..1b4b75bbaf7 100644
|
|
||||||
--- a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc
|
|
||||||
+++ b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc
|
|
||||||
@@ -83,12 +83,12 @@ void CanvasStyle::ApplyToFlags(cc::PaintFlags& flags,
|
|
||||||
case kGradient:
|
|
||||||
GetCanvasGradient()->GetGradient()->ApplyToFlags(flags, SkMatrix::I(),
|
|
||||||
ImageDrawOptions());
|
|
||||||
- flags.setColor(SkColor4f(0.0f, 0.0f, 0.0f, global_alpha));
|
|
||||||
+ flags.setColor(SkColor4f{0.0f, 0.0f, 0.0f, global_alpha});
|
|
||||||
break;
|
|
||||||
case kImagePattern:
|
|
||||||
GetCanvasPattern()->GetPattern()->ApplyToFlags(
|
|
||||||
flags, AffineTransformToSkMatrix(GetCanvasPattern()->GetTransform()));
|
|
||||||
- flags.setColor(SkColor4f(0.0f, 0.0f, 0.0f, global_alpha));
|
|
||||||
+ flags.setColor(SkColor4f{0.0f, 0.0f, 0.0f, global_alpha});
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
NOTREACHED();
|
|
||||||
diff --git a/third_party/blink/renderer/platform/fonts/palette_interpolation.cc b/third_party/blink/renderer/platform/fonts/palette_interpolation.cc
|
|
||||||
index 5a0121510ae..0cf45e0b0da 100644
|
|
||||||
--- a/third_party/blink/renderer/platform/fonts/palette_interpolation.cc
|
|
||||||
+++ b/third_party/blink/renderer/platform/fonts/palette_interpolation.cc
|
|
||||||
@@ -31,7 +31,7 @@ Vector<FontPalette::FontPaletteOverride> PaletteInterpolation::MixColorRecords(
|
|
||||||
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 --git a/ui/base/wayland/color_manager_util.h b/ui/base/wayland/color_manager_util.h
|
|
||||||
index fa1dd422c0e..52d3702e3e5 100644
|
|
||||||
--- a/ui/base/wayland/color_manager_util.h
|
|
||||||
+++ b/ui/base/wayland/color_manager_util.h
|
|
||||||
@@ -52,53 +52,53 @@ constexpr auto kChromaticityMap = base::MakeFixedFlatMap<
|
|
||||||
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::MakeFixedFlatMap<
|
|
||||||
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::MakeFixedFlatMap<
|
|
||||||
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,
|
|
||||||
--- chromium-116.0.5845.82.orig/chrome/browser/content_settings/one_time_permission_provider.cc 2023-08-11 18:10:42.162664104 +0000
|
|
||||||
+++ chromium-116.0.5845.82/chrome/browser/content_settings/one_time_permission_provider.cc 2023-08-11 18:14:48.571543555 +0000
|
|
||||||
@@ -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(ContentSettingEntry{setting_type, rule->primary_pattern,
|
|
||||||
+ rule->secondary_pattern});
|
|
||||||
permissions::PermissionUmaUtil::RecordOneTimePermissionEvent(
|
|
||||||
setting_type,
|
|
||||||
permissions::OneTimePermissionEvent::EXPIRED_ON_SUSPEND);
|
|
||||||
@@ -303,7 +303,7 @@ void OneTimePermissionProvider::DeleteEn
|
|
||||||
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);
|
|
||||||
+ ContentSettingEntry{content_setting_type, rule->primary_pattern, rule->secondary_pattern});
|
|
||||||
permissions::PermissionUmaUtil::RecordOneTimePermissionEvent(
|
|
||||||
content_setting_type, trigger_event);
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
--- third_party/material_color_utilities/src/cpp/palettes/tones.cc.orig 2023-08-30 22:58:42.101555407 +0000
|
|
||||||
+++ third_party/material_color_utilities/src/cpp/palettes/tones.cc 2023-08-30 22:58:54.082340977 +0000
|
|
||||||
@@ -14,6 +14,8 @@
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
+#include <cmath>
|
|
||||||
+
|
|
||||||
#include "cpp/palettes/tones.h"
|
|
||||||
|
|
||||||
#include "cpp/cam/cam.h"
|
|
@ -1,27 +0,0 @@
|
|||||||
From 5a8dfcaf84b5af5aeb738702651e98bfc43d6d45 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Stephan Hartmann <stha09@googlemail.com>
|
|
||||||
Date: Wed, 9 Aug 2023 15:36:26 +0000
|
|
||||||
Subject: [PATCH] IWYU: add memory for std::unique_ptr in //third_party/ipcz
|
|
||||||
|
|
||||||
Bug: 957519
|
|
||||||
Change-Id: I600f415a59206da283046b638a4f68eda0892ac7
|
|
||||||
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4754274
|
|
||||||
Commit-Queue: Stephan Hartmann <stha09@googlemail.com>
|
|
||||||
Reviewed-by: Robert Sesek <rsesek@chromium.org>
|
|
||||||
Cr-Commit-Position: refs/heads/main@{#1181503}
|
|
||||||
---
|
|
||||||
third_party/ipcz/src/ipcz/router_link.h | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/third_party/ipcz/src/ipcz/router_link.h b/third_party/ipcz/src/ipcz/router_link.h
|
|
||||||
index 09bc5626d99..619638cc7f1 100644
|
|
||||||
--- a/third_party/ipcz/src/ipcz/router_link.h
|
|
||||||
+++ b/third_party/ipcz/src/ipcz/router_link.h
|
|
||||||
@@ -7,6 +7,7 @@
|
|
||||||
|
|
||||||
#include <cstddef>
|
|
||||||
#include <functional>
|
|
||||||
+#include <memory>
|
|
||||||
#include <string>
|
|
||||||
#include <utility>
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
--- chromium-117.0.5938.88/third_party/blink/renderer/core/BUILD.gn.orig 2023-09-18 19:35:09.929200617 +0200
|
|
||||||
+++ chromium-117.0.5938.88/third_party/blink/renderer/core/BUILD.gn 2023-09-18 19:35:31.372292159 +0200
|
|
||||||
@@ -1694,8 +1694,6 @@
|
|
||||||
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)
|
|
||||||
|
|
@ -1,70 +0,0 @@
|
|||||||
From 21d7cf44b1cd83bb0d847515e28ca550404b0033 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Wan-Teh Chang <wtc@google.com>
|
|
||||||
Date: Tue, 22 Aug 2023 19:39:04 +0000
|
|
||||||
Subject: [PATCH] Roll src/third_party/libavif/src/ b33d9ebfc..676aded35 (3
|
|
||||||
commits)
|
|
||||||
|
|
||||||
https://chromium.googlesource.com/external/github.com/AOMediaCodec/libavif.git/+log/b33d9ebfc961..676aded3501f
|
|
||||||
|
|
||||||
$ git log b33d9ebfc..676aded35 --date=short --no-merges --format='%ad %ae %s'
|
|
||||||
2023-08-22 wtc Change imir.mode back to imir.axis
|
|
||||||
2023-08-22 wtc Don't use Identity matrix coefficients with 4:0:0
|
|
||||||
2023-08-21 yguyon Increase test values in avifstreamtest
|
|
||||||
|
|
||||||
Created with:
|
|
||||||
roll-dep src/third_party/libavif/src
|
|
||||||
R=dalecurtis@chromium.org,jzern@google.com
|
|
||||||
|
|
||||||
Note that imir.mode is renamed imir.axis.
|
|
||||||
|
|
||||||
Change-Id: Ie13972640969f123b7e4580f36d6d6bab913c0f8
|
|
||||||
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4803347
|
|
||||||
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
|
|
||||||
Commit-Queue: Wan-Teh Chang <wtc@google.com>
|
|
||||||
Cr-Commit-Position: refs/heads/main@{#1186746}
|
|
||||||
---
|
|
||||||
.../image-decoders/avif/avif_image_decoder.cc | 14 +++++++-------
|
|
||||||
1 file changed, 7 insertions(+), 7 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/platform/image-decoders/avif/avif_image_decoder.cc b/third_party/blink/renderer/platform/image-decoders/avif/avif_image_decoder.cc
|
|
||||||
index deb3e66d66f..c9f1b185417 100644
|
|
||||||
--- a/third_party/blink/renderer/platform/image-decoders/avif/avif_image_decoder.cc
|
|
||||||
+++ b/third_party/blink/renderer/platform/image-decoders/avif/avif_image_decoder.cc
|
|
||||||
@@ -1005,22 +1005,22 @@ bool AVIFImageDecoder::UpdateDemuxer() {
|
|
||||||
angle = container->irot.angle;
|
|
||||||
CHECK_LT(angle, 4);
|
|
||||||
}
|
|
||||||
- // |mode| specifies how the mirroring is performed.
|
|
||||||
+ // |axis| specifies how the mirroring is performed.
|
|
||||||
// -1: No mirroring.
|
|
||||||
// 0: The top and bottom parts of the image are exchanged.
|
|
||||||
// 1: The left and right parts of the image are exchanged.
|
|
||||||
- int mode = -1;
|
|
||||||
+ int axis = -1;
|
|
||||||
if (container->transformFlags & AVIF_TRANSFORM_IMIR) {
|
|
||||||
- mode = container->imir.mode;
|
|
||||||
- CHECK_LT(mode, 2);
|
|
||||||
+ axis = container->imir.axis;
|
|
||||||
+ CHECK_LT(axis, 2);
|
|
||||||
}
|
|
||||||
// MIAF Section 7.3.6.7 (Clean aperture, rotation and mirror) says:
|
|
||||||
// These properties, if used, shall be indicated to be applied in the
|
|
||||||
// following order: clean aperture first, then rotation, then mirror.
|
|
||||||
//
|
|
||||||
- // In the kModeAngleToOrientation array, the first dimension is mode (with an
|
|
||||||
+ // In the kAxisAngleToOrientation array, the first dimension is axis (with an
|
|
||||||
// offset of 1). The second dimension is angle.
|
|
||||||
- constexpr ImageOrientationEnum kModeAngleToOrientation[3][4] = {
|
|
||||||
+ constexpr ImageOrientationEnum kAxisAngleToOrientation[3][4] = {
|
|
||||||
// No mirroring.
|
|
||||||
{ImageOrientationEnum::kOriginTopLeft,
|
|
||||||
ImageOrientationEnum::kOriginLeftBottom,
|
|
||||||
@@ -1037,7 +1037,7 @@ bool AVIFImageDecoder::UpdateDemuxer() {
|
|
||||||
ImageOrientationEnum::kOriginBottomLeft,
|
|
||||||
ImageOrientationEnum::kOriginLeftTop},
|
|
||||||
};
|
|
||||||
- orientation_ = kModeAngleToOrientation[mode + 1][angle];
|
|
||||||
+ orientation_ = kAxisAngleToOrientation[axis + 1][angle];
|
|
||||||
|
|
||||||
// Determine whether the image can be decoded to YUV.
|
|
||||||
// * Alpha channel is not supported.
|
|
@ -1,22 +0,0 @@
|
|||||||
--- chromium-119.0.6045.159/third_party/blink/renderer/core/xml/xslt_processor.h.orig 2023-11-14 23:56:49.857019200 +0100
|
|
||||||
+++ chromium-119.0.6045.159/third_party/blink/renderer/core/xml/xslt_processor.h 2023-11-26 15:10:34.596794280 +0100
|
|
||||||
@@ -77,7 +77,7 @@
|
|
||||||
|
|
||||||
void reset();
|
|
||||||
|
|
||||||
- static void ParseErrorFunc(void* user_data, xmlError*);
|
|
||||||
+ static void ParseErrorFunc(void* user_data, const xmlError*);
|
|
||||||
static void GenericErrorFunc(void* user_data, const char* msg, ...);
|
|
||||||
|
|
||||||
// Only for libXSLT callbacks
|
|
||||||
--- chromium-119.0.6045.159/third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc.orig 2023-11-22 04:34:50.210372204 +0100
|
|
||||||
+++ chromium-119.0.6045.159/third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc 2023-11-26 15:10:52.177772188 +0100
|
|
||||||
@@ -66,7 +66,7 @@
|
|
||||||
// It would be nice to do something with this error message.
|
|
||||||
}
|
|
||||||
|
|
||||||
-void XSLTProcessor::ParseErrorFunc(void* user_data, xmlError* error) {
|
|
||||||
+void XSLTProcessor::ParseErrorFunc(void* user_data, const xmlError* error) {
|
|
||||||
FrameConsole* console = static_cast<FrameConsole*>(user_data);
|
|
||||||
if (!console)
|
|
||||||
return;
|
|
@ -1,8 +1,8 @@
|
|||||||
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
||||||
index 80bc79e5fb3..13b200e4cb0 100644
|
index 89b4755ac8b3..94b457385663 100644
|
||||||
--- a/build/config/compiler/BUILD.gn
|
--- a/build/config/compiler/BUILD.gn
|
||||||
+++ b/build/config/compiler/BUILD.gn
|
+++ b/build/config/compiler/BUILD.gn
|
||||||
@@ -616,24 +616,6 @@ config("compiler") {
|
@@ -618,24 +618,6 @@ config("compiler") {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,25 +27,14 @@ index 80bc79e5fb3..13b200e4cb0 100644
|
|||||||
# TODO(crbug.com/1235145): Investigate why/if this should be needed.
|
# TODO(crbug.com/1235145): Investigate why/if this should be needed.
|
||||||
if (is_win) {
|
if (is_win) {
|
||||||
cflags += [ "/clang:-ffp-contract=off" ]
|
cflags += [ "/clang:-ffp-contract=off" ]
|
||||||
@@ -768,7 +750,6 @@ config("compiler") {
|
@@ -802,10 +784,6 @@ config("compiler") {
|
||||||
ldflags += [
|
|
||||||
"/opt:lldltojobs=all",
|
|
||||||
"-mllvm:-import-instr-limit=$import_instr_limit",
|
|
||||||
- "-mllvm:-disable-auto-upgrade-debug-info",
|
|
||||||
]
|
|
||||||
} else {
|
|
||||||
ldflags += [ "-flto=thin" ]
|
|
||||||
@@ -800,13 +781,6 @@ config("compiler") {
|
|
||||||
if (is_apple) {
|
if (is_apple) {
|
||||||
ldflags += [ "-Wcrl,object_path_lto" ]
|
ldflags += [ "-Wcrl,object_path_lto" ]
|
||||||
}
|
}
|
||||||
- if (!is_chromeos) {
|
-
|
||||||
- # TODO(https://crbug.com/972449): turn on for ChromeOS when that
|
- # We only use one version of LLVM within a build so there's no need to
|
||||||
- # toolchain has this flag.
|
- # upgrade debug info, which can be expensive since it runs the verifier.
|
||||||
- # We only use one version of LLVM within a build so there's no need to
|
- ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
|
||||||
- # upgrade debug info, which can be expensive since it runs the verifier.
|
|
||||||
- ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
|
|
||||||
- }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO(https://crbug.com/1211155): investigate why this isn't effective on
|
# TODO(https://crbug.com/1211155): investigate why this isn't effective on
|
11
chromium-123.0.6312.86-clang-18-2.patch
Normal file
11
chromium-123.0.6312.86-clang-18-2.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- chromium-123.0.6312.86/build/config/clang/BUILD.gn.orig 2024-04-04 11:03:00.227393245 +0200
|
||||||
|
+++ chromium-123.0.6312.86/build/config/clang/BUILD.gn 2024-04-04 11:03:28.868442948 +0200
|
||||||
|
@@ -193,7 +193,7 @@
|
||||||
|
_dir = "linux"
|
||||||
|
}
|
||||||
|
|
||||||
|
- _clang_lib_dir = "$clang_base_path/lib/clang/$clang_version/lib"
|
||||||
|
+ _clang_lib_dir = "$clang_base_path/lib64/clang/$clang_version/lib"
|
||||||
|
_lib_file = "${_prefix}clang_rt.${_libname}${_suffix}.${_ext}"
|
||||||
|
libs = [ "$_clang_lib_dir/$_dir/$_lib_file" ]
|
||||||
|
}
|
32
chromium-123.0.6312.86-clang-18.patch
Normal file
32
chromium-123.0.6312.86-clang-18.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
diff --git a/build/config/clang/BUILD.gn b/build/config/clang/BUILD.gn
|
||||||
|
index d4de2e0cca0..57359c32121 100644
|
||||||
|
--- a/build/config/clang/BUILD.gn
|
||||||
|
+++ b/build/config/clang/BUILD.gn
|
||||||
|
@@ -130,12 +130,15 @@ template("clang_lib") {
|
||||||
|
} else if (is_linux || is_chromeos) {
|
||||||
|
if (current_cpu == "x64") {
|
||||||
|
_dir = "x86_64-unknown-linux-gnu"
|
||||||
|
+ _suffix = "-x86_64"
|
||||||
|
} else if (current_cpu == "x86") {
|
||||||
|
_dir = "i386-unknown-linux-gnu"
|
||||||
|
+ _suffix = "-i386"
|
||||||
|
} else if (current_cpu == "arm") {
|
||||||
|
_dir = "armv7-unknown-linux-gnueabihf"
|
||||||
|
} else if (current_cpu == "arm64") {
|
||||||
|
_dir = "aarch64-unknown-linux-gnu"
|
||||||
|
+ _suffix = "-aarch64"
|
||||||
|
} else {
|
||||||
|
assert(false) # Unhandled cpu type
|
||||||
|
}
|
||||||
|
@@ -166,6 +169,11 @@ template("clang_lib") {
|
||||||
|
assert(false) # Unhandled target platform
|
||||||
|
}
|
||||||
|
|
||||||
|
+ # Bit of a hack to make this find builtins from compiler-rt >= 16
|
||||||
|
+ if (is_linux || is_chromeos) {
|
||||||
|
+ _dir = "linux"
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
_clang_lib_dir = "$clang_base_path/lib/clang/$clang_version/lib"
|
||||||
|
_lib_file = "${_prefix}clang_rt.${_libname}${_suffix}.${_ext}"
|
||||||
|
libs = [ "$_clang_lib_dir/$_dir/$_lib_file" ]
|
@ -1,9 +1,9 @@
|
|||||||
%define MAJver %(echo %version | cut -d. -f1)
|
%define MAJver %(echo %version | cut -d. -f1)
|
||||||
%define chromium_patches_ver %(echo %version | cut -d. -f1)
|
%define chromium_patches_ver %(echo %version | cut -d. -f1)
|
||||||
#% define chromium_patches_ver %(echo %version | cut -d. -f1)-3
|
%define clang_version %(clang --version | grep -m1 version | sed 's/[^0-9.]//g' | cut -d. -f1)
|
||||||
Name: chromium
|
Name: chromium
|
||||||
Epoch: 3
|
Epoch: 3
|
||||||
Version: 120.0.6099.199
|
Version: 123.0.6312.105
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: An open-source browser project that aims to build a safer, faster, and more stable way to experience the web
|
Summary: An open-source browser project that aims to build a safer, faster, and more stable way to experience the web
|
||||||
Group: Graphical Desktop/Applications/Internet
|
Group: Graphical Desktop/Applications/Internet
|
||||||
@ -11,27 +11,15 @@ Vendor: openmamba
|
|||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: https://www.chromium.org
|
URL: https://www.chromium.org
|
||||||
# Note:
|
|
||||||
# we usually package the stable release. you may find the latest version number here:
|
|
||||||
# http://googlechromereleases.blogspot.it/
|
|
||||||
# Find latest release starting here:
|
|
||||||
# http://gsdview.appspot.com/chromium-browser-official/?marker=chromium-53.0.2785.144.tar.bz
|
|
||||||
Source: https://commondatastorage.googleapis.com/chromium-browser-official/chromium-%{version}.tar.xz
|
Source: https://commondatastorage.googleapis.com/chromium-browser-official/chromium-%{version}.tar.xz
|
||||||
#Source: http://gsdview.appspot.com/chromium-browser-official/chromium-%{version}.tar.xz
|
|
||||||
Source1: %{name}-master_preferences
|
Source1: %{name}-master_preferences
|
||||||
#Source2: https://github.com/stha09/chromium-patches/releases/download/chromium-%{gcc_patchset}/chromium-%{gcc_patchset}.tar.xz
|
|
||||||
Source2: https://gitlab.com/Matt.Jolly/chromium-patches/-/archive/%{chromium_patches_ver}/chromium-patches-%{chromium_patches_ver}.tar.bz2
|
Source2: https://gitlab.com/Matt.Jolly/chromium-patches/-/archive/%{chromium_patches_ver}/chromium-patches-%{chromium_patches_ver}.tar.bz2
|
||||||
Patch10: chromium-90.0.4430.212-use-oauth2-client-switches-as-default.patch
|
Patch1: chromium-90.0.4430.212-use-oauth2-client-switches-as-default.patch
|
||||||
Patch11: chromium-115.0.5790.170-REVERT-disable-autoupgrading-debug-info.patch
|
Patch2: chromium-116-0.5845.110-aarch64-include-limits.patch
|
||||||
Patch12: chromium-116.0.5845.96-randrom-build-fixes.patch
|
Patch3: chromium-119.0.6045.159-icu-74.patch
|
||||||
Patch13: chromium-116-0.5845.110-aarch64-include-limits.patch
|
Patch4: chromium-122.0.6261.69-drop-flags-unsupported-by-clang16.patch
|
||||||
Patch14: chromium-117.0.5938.62-material-color-utilities-cmath.patch
|
Patch5: chromium-123.0.6312.86-clang-18.patch
|
||||||
Patch15: chromium-117.0.5938.88-blink-remove-unused-mnemonic.patch
|
Patch6: chromium-123.0.6312.86-clang-18-2.patch
|
||||||
Patch16: chromium-117.0.5938.88-add-memory-for-std-unique_ptr-in-third_party-ip.patch
|
|
||||||
Patch17: chromium-117.0.5938.88-roll-src-third_party-libavif-src-b33d9ebfc.676aded35.patch
|
|
||||||
Patch18: chromium-119.0.6045.159-libxml2-2.12.1.patch
|
|
||||||
Patch19: chromium-119.0.6045.159-icu-74.patch
|
|
||||||
Patch20: chromium-120.0.6099.71-drop-flags-unsupported-by-clang16.patch
|
|
||||||
License: BSD
|
License: BSD
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
@ -43,6 +31,7 @@ BuildRequires: libXfixes-devel
|
|||||||
BuildRequires: libXrandr-devel
|
BuildRequires: libXrandr-devel
|
||||||
BuildRequires: libalsa-devel
|
BuildRequires: libalsa-devel
|
||||||
BuildRequires: libat-spi2-core-devel
|
BuildRequires: libat-spi2-core-devel
|
||||||
|
BuildRequires: libbrotli-devel
|
||||||
BuildRequires: libcairo-devel
|
BuildRequires: libcairo-devel
|
||||||
BuildRequires: libcups-devel
|
BuildRequires: libcups-devel
|
||||||
BuildRequires: libdav1d-devel
|
BuildRequires: libdav1d-devel
|
||||||
@ -105,12 +94,6 @@ Requires(post): %{__install_info}
|
|||||||
Requires: xdg-utils
|
Requires: xdg-utils
|
||||||
Requires: libvdpau-Mesa
|
Requires: libvdpau-Mesa
|
||||||
|
|
||||||
# latest releases code version visible here: http://src.chromium.org/viewvc/chrome/releases/
|
|
||||||
# create release tarball with: (requires gclient from depot_tools)
|
|
||||||
# gclient config http://src.chromium.org/svn/releases/%{majver}
|
|
||||||
# gclient sync --force
|
|
||||||
# python src/tools/export_tarball/export_tarball.py --remove-nonessential-files chromium-%{version}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web.
|
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web.
|
||||||
|
|
||||||
@ -131,27 +114,15 @@ Chromium is an open-source browser project that aims to build a safer, faster, a
|
|||||||
sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \
|
sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \
|
||||||
tools/generate_shim_headers/generate_shim_headers.py
|
tools/generate_shim_headers/generate_shim_headers.py
|
||||||
|
|
||||||
%patch 10 -p1 -b .use-oauth2-client-switches-as-default
|
%patch 1 -p1 -b .use-oauth2-client-switches-as-default
|
||||||
#%patch 11 -Rp1 -b .REVERT-disable-autoupgrading-debug-info
|
%patch 2 -p1 -b .aarch64-include-limits
|
||||||
##%patch 12 -p1 -b .randrom-build-fixes
|
#%patch 3 -p1 -b .icu-74
|
||||||
%patch 13 -p1 -b .aarch64-include-limits
|
%patch 4 -p1 -b .drop-flags-unsupported-by-clang16
|
||||||
#%patch 14 -p0 -b .material-color-utilities-cmath
|
%patch 5 -p1 -b .clang-18
|
||||||
#%patch 15 -p1 -b .blink-remove-unused-mnemonic
|
%patch 6 -p1 -b .clang-18-2
|
||||||
##%patch 16 -p1 -b .add-memory-for-std-unique_ptr-in-third_party-ip
|
|
||||||
##%patch 17 -p1 -b .roll-src-third_party-libavif-src-b33d9ebfc.676aded35
|
|
||||||
%patch 18 -p1 -b .libxml2-2.12.1
|
|
||||||
%patch 19 -p1 -b .icu-74
|
|
||||||
%patch 20 -p1 -b .drop-flags-unsupported-by-clang16
|
|
||||||
|
|
||||||
# Fixes for building with libstdc++ instead of libc++
|
# Fixes for building with libstdc++ instead of libc++
|
||||||
patch -Np1 -i chromium-patches-*/chromium-114-ruy-include.patch
|
|
||||||
#patch -Np1 -i chromium-patches-*/chromium-114-vk_mem_alloc-include.patch
|
|
||||||
patch -Np1 -i chromium-patches-*/chromium-117-material-color-include.patch
|
patch -Np1 -i chromium-patches-*/chromium-117-material-color-include.patch
|
||||||
#patch -Np1 -i chromium-patches-*/chromium-119-FragmentDataIterator-std.patch
|
|
||||||
patch -Np1 -i chromium-patches-*/chromium-119-at-spi-variable-consumption.patch
|
|
||||||
patch -Np1 -i chromium-patches-*/chromium-119-clang16.patch
|
|
||||||
#patch -Np1 -i chromium-patches-*/chromium-119-replace-deprecated-is_pod.patch
|
|
||||||
patch -Np1 -i chromium-patches-*/chromium-120-std-nullptr_t.patch
|
|
||||||
|
|
||||||
# Force script incompatible with Python 3 to use /usr/bin/python2
|
# Force script incompatible with Python 3 to use /usr/bin/python2
|
||||||
sed -i '1s|python$|&2|' third_party/dom_distiller_js/protoc_plugins/*.py
|
sed -i '1s|python$|&2|' third_party/dom_distiller_js/protoc_plugins/*.py
|
||||||
@ -178,7 +149,7 @@ sed -i -e 's/\<xmlMalloc\>/malloc/' -e 's/\<xmlFree\>/free/' \
|
|||||||
# Possible replacements are listed in build/linux/unbundle/replace_gn_files.py
|
# Possible replacements are listed in build/linux/unbundle/replace_gn_files.py
|
||||||
# Keys are the names in the above script; values are the dependencies in Arch
|
# Keys are the names in the above script; values are the dependencies in Arch
|
||||||
declare -rgA _system_libs=(
|
declare -rgA _system_libs=(
|
||||||
#[brotli]=brotli
|
[brotli]=brotli
|
||||||
[dav1d]=dav1d
|
[dav1d]=dav1d
|
||||||
#[ffmpeg]=ffmpeg
|
#[ffmpeg]=ffmpeg
|
||||||
[flac]=flac
|
[flac]=flac
|
||||||
@ -264,6 +235,10 @@ export BACKTRACE="-funwind-tables -rdynamic"
|
|||||||
#export CXX="%{_build}-g++ $BACKTRACE $ARMIFY -B%{_bindir}/ld.gold"
|
#export CXX="%{_build}-g++ $BACKTRACE $ARMIFY -B%{_bindir}/ld.gold"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Allow the use of nightly features with stable Rust compiler
|
||||||
|
# https://github.com/ungoogled-software/ungoogled-chromium/pull/2696#issuecomment-1918173198
|
||||||
|
export RUSTC_BOOTSTRAP=1
|
||||||
|
|
||||||
# openmamba api keys provided (see http://www.chromium.org/developers/how-tos/api-keys)
|
# openmamba api keys provided (see http://www.chromium.org/developers/how-tos/api-keys)
|
||||||
|
|
||||||
chromium_conf=(
|
chromium_conf=(
|
||||||
@ -271,6 +246,9 @@ chromium_conf=(
|
|||||||
'host_toolchain="//build/toolchain/linux/unbundle:default"'
|
'host_toolchain="//build/toolchain/linux/unbundle:default"'
|
||||||
'clang_base_path="/usr"'
|
'clang_base_path="/usr"'
|
||||||
'clang_use_chrome_plugins=false'
|
'clang_use_chrome_plugins=false'
|
||||||
|
'clang_version="%{clang_version}"'
|
||||||
|
'rust_sysroot_absolute="/usr"'
|
||||||
|
"rustc_version=\"$(rustc --version)\""
|
||||||
'is_official_build=true' # implies is_cfi=true on x86_64
|
'is_official_build=true' # implies is_cfi=true on x86_64
|
||||||
'symbol_level=0'
|
'symbol_level=0'
|
||||||
'chrome_pgo_phase=0' # needs newer clang to read the bundled PGO profile
|
'chrome_pgo_phase=0' # needs newer clang to read the bundled PGO profile
|
||||||
@ -287,7 +265,6 @@ chromium_conf=(
|
|||||||
'enable_hangout_services_extension=true'
|
'enable_hangout_services_extension=true'
|
||||||
'enable_widevine=true'
|
'enable_widevine=true'
|
||||||
'enable_nacl=false'
|
'enable_nacl=false'
|
||||||
'enable_rust=false'
|
|
||||||
'google_api_key="AIzaSyBT3wXwxmFuUQcyeMyp0MbHHhhFwNfWKTc"'
|
'google_api_key="AIzaSyBT3wXwxmFuUQcyeMyp0MbHHhhFwNfWKTc"'
|
||||||
'is_debug=false'
|
'is_debug=false'
|
||||||
'icu_use_data_file=false'
|
'icu_use_data_file=false'
|
||||||
@ -306,6 +283,10 @@ chromium_conf=(
|
|||||||
# 'use_lld=false'
|
# 'use_lld=false'
|
||||||
#%endif
|
#%endif
|
||||||
|
|
||||||
|
# Allow the use of nightly features with stable Rust compiler
|
||||||
|
# https://github.com/ungoogled-software/ungoogled-chromium/pull/2696#issuecomment-1918173198
|
||||||
|
export RUSTC_BOOTSTRAP=1
|
||||||
|
|
||||||
gn gen out/Release --args="${chromium_conf[*]}" \
|
gn gen out/Release --args="${chromium_conf[*]}" \
|
||||||
--script-executable=%{__python3}
|
--script-executable=%{__python3}
|
||||||
|
|
||||||
@ -432,6 +413,9 @@ ln -s %{_libdir}/chromium/chromedriver %{buildroot}%{_bindir}/chromedriver
|
|||||||
%{_mandir}/man1/chromium.1*
|
%{_mandir}/man1/chromium.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Apr 07 2024 Automatic Build System <autodist@openmamba.org> 123.0.6312.105-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
* Sun Jan 07 2024 Automatic Build System <autodist@openmamba.org> 120.0.6099.199-1mamba
|
* Sun Jan 07 2024 Automatic Build System <autodist@openmamba.org> 120.0.6099.199-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user