From b36ea425b25fc49eb05ed316e7cd6bda451ba45b Mon Sep 17 00:00:00 2001 From: Robert Richmond Date: Wed, 25 Dec 2024 18:50:00 -0500 Subject: [PATCH] Update win64-avx2.patch --- Windows/win64-avx2.patch | 31 +++++++++---------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/Windows/win64-avx2.patch b/Windows/win64-avx2.patch index 282362e..ad80061 100644 --- a/Windows/win64-avx2.patch +++ b/Windows/win64-avx2.patch @@ -1,8 +1,8 @@ diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn -index 3e7f033378bc4..f138a69c8015b 100644 +index 33a232ed73248..309ad16951e72 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn -@@ -487,9 +487,9 @@ config("compiler") { +@@ -498,9 +498,9 @@ config("compiler") { # Linux/Android/Fuchsia common flags setup. # --------------------------------- if (is_linux || is_chromeos || is_android || is_fuchsia) { @@ -15,7 +15,7 @@ index 3e7f033378bc4..f138a69c8015b 100644 rustflags += [ "-Crelocation-model=pic" ] if (!is_clang) { -@@ -542,9 +542,9 @@ config("compiler") { +@@ -553,9 +553,9 @@ config("compiler") { # TODO(crbug.com/345541122): investigate the fuchsia binary size increase. if (is_win) { @@ -27,7 +27,7 @@ index 3e7f033378bc4..f138a69c8015b 100644 } } -@@ -596,23 +596,23 @@ config("compiler") { +@@ -607,23 +607,23 @@ config("compiler") { if (default_toolchain != "//build/toolchain/cros:target" && !llvm_android_mainline) { cflags += [ @@ -57,7 +57,7 @@ index 3e7f033378bc4..f138a69c8015b 100644 } # Enable ELF CREL (see crbug.com/357878242) for all platforms that use ELF -@@ -773,7 +773,7 @@ config("compiler") { +@@ -784,7 +784,7 @@ config("compiler") { # [0]: https://pinpoint-dot-chromeperf.appspot.com/job/16984a18be0000 # [1]: https://pinpoint-dot-chromeperf.appspot.com/job/11984a18be0000 # [2]: https://ci.chromium.org/ui/p/chromium/builders/try/android-binary-size/1848442 @@ -104,7 +104,7 @@ index 3e7f033378bc4..f138a69c8015b 100644 ] # Minimum SIMD support for devices running lacros. -@@ -2646,10 +2650,13 @@ config("optimize_max") { +@@ -2661,10 +2665,13 @@ config("optimize_max") { # Favor speed over size, /O2 must be before the common flags. # /O2 implies /Ot, /Oi, and /GF. cflags = [ "/O2" ] + common_optimize_on_cflags @@ -119,7 +119,7 @@ index 3e7f033378bc4..f138a69c8015b 100644 } rustflags = [ "-Copt-level=3" ] } -@@ -3071,7 +3078,7 @@ config("minimal_symbols") { +@@ -3086,7 +3093,7 @@ config("minimal_symbols") { # names in the final debug information. config("no_symbols") { if (is_win) { @@ -129,7 +129,7 @@ index 3e7f033378bc4..f138a69c8015b 100644 # All configs using /DEBUG should include this: configs = [ ":win_pdbaltpath" ] diff --git a/build/config/win/BUILD.gn b/build/config/win/BUILD.gn -index 9b062d6000372..77bb0c6e0d21a 100644 +index 9928e76832cce..18265601952d3 100644 --- a/build/config/win/BUILD.gn +++ b/build/config/win/BUILD.gn @@ -85,7 +85,7 @@ config("compiler") { @@ -188,19 +188,6 @@ index aff0370044046..811529a08db83 100644 -#endif +// #endif } // extern "C" -diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc -index e359362d926a1..d0a4de52ee8bd 100644 ---- a/media/base/media_switches.cc -+++ b/media/base/media_switches.cc -@@ -350,7 +350,7 @@ BASE_FEATURE(kPlatformHEVCEncoderSupport, - // Enables HEVC MediaRecorder muxer support. - BASE_FEATURE(kMediaRecorderHEVCSupport, - "MediaRecorderHEVCSupport", -- base::FEATURE_DISABLED_BY_DEFAULT); -+ base::FEATURE_ENABLED_BY_DEFAULT); - #endif // BUILDFLAG(ENABLE_HEVC_PARSER_AND_HW_DECODER) - - // Let videos be resumed via remote controls (for example, the notification) diff --git a/media/base/supported_types.cc b/media/base/supported_types.cc index 8db4b2d5cf1f5..2a338248f6f0b 100644 --- a/media/base/supported_types.cc @@ -255,7 +242,7 @@ index 8db4b2d5cf1f5..2a338248f6f0b 100644 } #endif // BUILDFLAG(ENABLE_FFMPEG_VIDEO_DECODERS) && diff --git a/media/ffmpeg/ffmpeg_common.cc b/media/ffmpeg/ffmpeg_common.cc -index e9b4ab2378361..00eaaa973164f 100644 +index cfd0552ee3108..29452291bde43 100644 --- a/media/ffmpeg/ffmpeg_common.cc +++ b/media/ffmpeg/ffmpeg_common.cc @@ -67,7 +67,7 @@ VideoColorSpace GetGuessedColorSpace(const VideoColorSpace& color_space) {