From 2144b55636364ffb0dfbac250163bb92aef78373 Mon Sep 17 00:00:00 2001 From: xsmile <> Date: Thu, 31 Jan 2019 15:05:41 +0100 Subject: [PATCH] patches/debian_buster: Update for 72.0.3626.81 --- patches/debian_buster/arm/crashpad.patch | 10 ++++ .../arm/skia-aarch64-buildfix.patch | 20 +++++++ patches/debian_buster/disable/android.patch | 2 +- patches/debian_buster/disable/fuzzers.patch | 8 +-- .../disable/google-api-warning.patch | 2 +- patches/debian_buster/disable/installer.patch | 2 +- patches/debian_buster/disable/openh264.patch | 2 +- patches/debian_buster/disable/perfetto.patch | 20 +++---- .../debian_buster/disable/swiftshader.patch | 2 +- patches/debian_buster/disable/unrar.patch | 22 +++---- .../debian_buster/disable/welcome-page.patch | 2 +- patches/debian_buster/fixes/as-needed.patch | 4 +- .../fixes/autocompletematch.patch | 21 ------- .../fixes/connection-message.patch | 2 +- patches/debian_buster/fixes/constexpr.patch | 14 ----- patches/debian_buster/fixes/constructor.patch | 21 ------- patches/debian_buster/fixes/empty-array.patch | 8 +-- patches/debian_buster/fixes/gpu-timeout.patch | 2 +- patches/debian_buster/fixes/include.patch | 13 ++++ patches/debian_buster/fixes/inspector.patch | 9 --- patches/debian_buster/fixes/mojo.patch | 20 +++---- .../debian_buster/fixes/ownership-error.patch | 15 ----- patches/debian_buster/fixes/polymer.patch | 30 +++++----- patches/debian_buster/fixes/sizet.patch | 14 ----- .../fixes/widevine-locations.patch | 2 +- patches/debian_buster/gn/libcxx.patch | 2 +- patches/debian_buster/gn/parallel.patch | 8 +-- patches/debian_buster/system/event.patch | 6 +- patches/debian_buster/system/ffmpeg34.patch | 6 +- patches/debian_buster/system/fontconfig.patch | 2 +- patches/debian_buster/system/harfbuzz.patch | 43 ------------- patches/debian_buster/system/jpeg.patch | 4 +- patches/debian_buster/system/nspr.patch | 6 +- patches/debian_buster/system/openjpeg.patch | 18 +++--- patches/debian_buster/system/vpx.patch | 60 ++++++++++++++----- patches/debian_buster/system/zlib.patch | 2 +- .../debian_buster/warnings/enum-compare.patch | 20 +------ .../warnings/sequence-point.patch | 4 +- 38 files changed, 182 insertions(+), 266 deletions(-) create mode 100644 patches/debian_buster/arm/crashpad.patch create mode 100644 patches/debian_buster/arm/skia-aarch64-buildfix.patch delete mode 100644 patches/debian_buster/fixes/autocompletematch.patch delete mode 100644 patches/debian_buster/fixes/constexpr.patch delete mode 100644 patches/debian_buster/fixes/constructor.patch create mode 100644 patches/debian_buster/fixes/include.patch delete mode 100644 patches/debian_buster/fixes/ownership-error.patch delete mode 100644 patches/debian_buster/fixes/sizet.patch delete mode 100644 patches/debian_buster/system/harfbuzz.patch diff --git a/patches/debian_buster/arm/crashpad.patch b/patches/debian_buster/arm/crashpad.patch new file mode 100644 index 00000000..26e55c62 --- /dev/null +++ b/patches/debian_buster/arm/crashpad.patch @@ -0,0 +1,10 @@ +--- a/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.cc ++++ b/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.cc +@@ -16,6 +16,7 @@ + + #include + #include ++#include + + #include "base/logging.h" + diff --git a/patches/debian_buster/arm/skia-aarch64-buildfix.patch b/patches/debian_buster/arm/skia-aarch64-buildfix.patch new file mode 100644 index 00000000..d701b9df --- /dev/null +++ b/patches/debian_buster/arm/skia-aarch64-buildfix.patch @@ -0,0 +1,20 @@ +--- a/third_party/skia/src/opts/SkRasterPipeline_opts.h ++++ b/third_party/skia/src/opts/SkRasterPipeline_opts.h +@@ -729,7 +729,7 @@ SI F approx_powf(F x, F y) { + } + + SI F from_half(U16 h) { +-#if defined(SK_CPU_ARM64) && !defined(SK_BUILD_FOR_GOOGLE3) // Temporary workaround for some Google3 builds. ++#if defined(JUMPER_IS_NEON) && defined(__aarch64__) && !defined(SK_BUILD_FOR_GOOGLE3) // Temporary workaround for some Google3 builds. + return vcvt_f32_f16(h); + + #elif defined(JUMPER_IS_HSW) || defined(JUMPER_IS_AVX512) +@@ -749,7 +749,7 @@ SI F from_half(U16 h) { + } + + SI U16 to_half(F f) { +-#if defined(SK_CPU_ARM64) && !defined(SK_BUILD_FOR_GOOGLE3) // Temporary workaround for some Google3 builds. ++#if defined(JUMPER_IS_NEON) && defined(__aarch64__) && !defined(SK_BUILD_FOR_GOOGLE3) // Temporary workaround for some Google3 builds. + return vcvt_f16_f32(f); + + #elif defined(JUMPER_IS_HSW) || defined(JUMPER_IS_AVX512) diff --git a/patches/debian_buster/disable/android.patch b/patches/debian_buster/disable/android.patch index fd1e8f3e..d2f34298 100644 --- a/patches/debian_buster/disable/android.patch +++ b/patches/debian_buster/disable/android.patch @@ -13,7 +13,7 @@ author: Michael Gilbert # TODO(733935): Enable for other Android architectures too. Currently we only --- a/BUILD.gn +++ b/BUILD.gn -@@ -359,7 +359,7 @@ group("gn_all") { +@@ -369,7 +369,7 @@ group("gn_all") { # seems currently broken for this platform at the moment, and the # corresponding code build and works on Linux unmodified. # See instructions in the corresponding BUILD.gn. diff --git a/patches/debian_buster/disable/fuzzers.patch b/patches/debian_buster/disable/fuzzers.patch index 1da82242..ed3370c1 100644 --- a/patches/debian_buster/disable/fuzzers.patch +++ b/patches/debian_buster/disable/fuzzers.patch @@ -3,19 +3,19 @@ author: Michael Gilbert --- a/BUILD.gn +++ b/BUILD.gn -@@ -700,8 +700,7 @@ group("gn_all") { +@@ -722,8 +722,7 @@ group("gn_all") { } } -- if ((is_linux && !is_chromeos && !is_chromecast) || +- if ((is_linux && !is_chromecast) || - (is_win && (use_drfuzz || use_libfuzzer)) || (use_libfuzzer && is_mac)) { + if (false) { deps += [ "//testing/libfuzzer/fuzzers", - "//testing/libfuzzer/tests:libfuzzer_tests", + "//third_party/icu/fuzzers", --- a/content/test/BUILD.gn +++ b/content/test/BUILD.gn -@@ -2229,9 +2229,3 @@ test("content_perftests") { +@@ -2232,9 +2232,3 @@ test("content_perftests") { deps += [ "//testing/android/native_test:native_test_native_code" ] } } diff --git a/patches/debian_buster/disable/google-api-warning.patch b/patches/debian_buster/disable/google-api-warning.patch index 989230dc..6c45a26a 100644 --- a/patches/debian_buster/disable/google-api-warning.patch +++ b/patches/debian_buster/disable/google-api-warning.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc +++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc -@@ -790,10 +790,6 @@ void StartupBrowserCreatorImpl::AddInfoB +@@ -805,10 +805,6 @@ void StartupBrowserCreatorImpl::AddInfoB chrome::ShowBadFlagsPrompt(web_contents); InfoBarService* infobar_service = InfoBarService::FromWebContents(web_contents); diff --git a/patches/debian_buster/disable/installer.patch b/patches/debian_buster/disable/installer.patch index 32877b12..36621486 100644 --- a/patches/debian_buster/disable/installer.patch +++ b/patches/debian_buster/disable/installer.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/BUILD.gn +++ b/BUILD.gn -@@ -65,7 +65,6 @@ group("gn_all") { +@@ -66,7 +66,6 @@ group("gn_all") { ":gn_visibility", "//base:base_perftests", "//base:base_unittests", diff --git a/patches/debian_buster/disable/openh264.patch b/patches/debian_buster/disable/openh264.patch index beac32be..edcda0e2 100644 --- a/patches/debian_buster/disable/openh264.patch +++ b/patches/debian_buster/disable/openh264.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/third_party/webrtc/webrtc.gni +++ b/third_party/webrtc/webrtc.gni -@@ -149,7 +149,7 @@ declare_args() { +@@ -153,7 +153,7 @@ declare_args() { # H.264, compilation succeeds but |H264DecoderImpl| fails to initialize. # CHECK THE OPENH264, FFMPEG AND H.264 LICENSES/PATENTS BEFORE BUILDING. # http://www.openh264.org, https://www.ffmpeg.org/ diff --git a/patches/debian_buster/disable/perfetto.patch b/patches/debian_buster/disable/perfetto.patch index 21ce54ef..9b99e900 100644 --- a/patches/debian_buster/disable/perfetto.patch +++ b/patches/debian_buster/disable/perfetto.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/BUILD.gn +++ b/BUILD.gn -@@ -648,7 +648,7 @@ group("gn_all") { +@@ -666,7 +666,7 @@ group("gn_all") { } } @@ -14,7 +14,7 @@ author: Michael Gilbert --- a/services/tracing/BUILD.gn +++ b/services/tracing/BUILD.gn -@@ -30,7 +30,7 @@ source_set("lib") { +@@ -27,7 +27,7 @@ source_set("lib") { "//services/tracing/public/cpp", ] @@ -23,16 +23,16 @@ author: Michael Gilbert sources += [ "perfetto/json_trace_exporter.cc", "perfetto/json_trace_exporter.h", -@@ -80,7 +80,7 @@ source_set("tests") { +@@ -64,7 +64,7 @@ source_set("tests") { "test_util.h", ] - if (is_mac || is_linux || is_android) { + if (false) { - sources += [ "public/cpp/perfetto/trace_event_data_source_unittest.cc" ] - } - -@@ -101,7 +101,7 @@ source_set("tests") { + sources += [ + "public/cpp/perfetto/trace_event_data_source_unittest.cc", + "public/cpp/perfetto/traced_value_proto_writer_unittest.cc", +@@ -88,7 +88,7 @@ source_set("tests") { "//testing/gtest", ] @@ -43,7 +43,7 @@ author: Michael Gilbert "perfetto/perfetto_integration_unittest.cc", --- a/services/tracing/tracing_service.h +++ b/services/tracing/tracing_service.h -@@ -17,8 +17,7 @@ +@@ -19,8 +19,7 @@ #include "services/tracing/agent_registry.h" #include "services/tracing/coordinator.h" @@ -62,8 +62,8 @@ author: Michael Gilbert - if (is_mac || is_linux || is_android || is_win) { + if (false) { sources += [ - "perfetto/producer_client.cc", - "perfetto/producer_client.h", + "perfetto/heap_scattered_stream_delegate.cc", + "perfetto/heap_scattered_stream_delegate.h", --- a/services/tracing/public/cpp/trace_event_agent.cc +++ b/services/tracing/public/cpp/trace_event_agent.cc @@ -22,8 +22,7 @@ diff --git a/patches/debian_buster/disable/swiftshader.patch b/patches/debian_buster/disable/swiftshader.patch index 09c055a0..465dd1a5 100644 --- a/patches/debian_buster/disable/swiftshader.patch +++ b/patches/debian_buster/disable/swiftshader.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/BUILD.gn +++ b/BUILD.gn -@@ -430,7 +430,7 @@ group("gn_all") { +@@ -449,7 +449,7 @@ group("gn_all") { ] } diff --git a/patches/debian_buster/disable/unrar.patch b/patches/debian_buster/disable/unrar.patch index 99c75d31..29c10568 100644 --- a/patches/debian_buster/disable/unrar.patch +++ b/patches/debian_buster/disable/unrar.patch @@ -16,7 +16,7 @@ bug: http://bugs.debian.org/914487 - - deps = [ - ":archive_analyzer_results", -- ":download_protection_util", +- ":download_type_util", - ":file_type_policies", - "//base", - "//base:i18n", @@ -45,10 +45,10 @@ bug: http://bugs.debian.org/914487 source_set("disk_image_type_sniffer_mac") { sources = [ "disk_image_type_sniffer_mac.cc", -@@ -136,7 +102,6 @@ source_set("safe_browsing") { +@@ -150,7 +116,6 @@ source_set("safe_browsing") { deps += [ ":archive_analyzer_results", - ":download_protection_util", + ":download_type_util", - ":rar_analyzer", "//components/safe_browsing:features", ] @@ -72,14 +72,14 @@ bug: http://bugs.debian.org/914487 - safe_browsing::rar_analyzer::AnalyzeRarFile(std::move(rar_file), &results); std::move(callback).Run(results); } ---- a/chrome/browser/safe_browsing/download_protection/check_client_download_request.cc -+++ b/chrome/browser/safe_browsing/download_protection/check_client_download_request.cc -@@ -383,7 +383,7 @@ void CheckClientDownloadRequest::Analyze - } else if (item_->GetTargetFilePath().MatchesExtension( - FILE_PATH_LITERAL(".rar")) && - base::FeatureList::IsEnabled(kInspectDownloadedRarFiles)) { +--- a/chrome/browser/safe_browsing/download_protection/file_analyzer.cc ++++ b/chrome/browser/safe_browsing/download_protection/file_analyzer.cc +@@ -95,7 +95,7 @@ void FileAnalyzer::Start(const base::Fil + if (target_path_.MatchesExtension(FILE_PATH_LITERAL(".zip"))) { + StartExtractZipFeatures(); + } else if (target_path_.MatchesExtension(FILE_PATH_LITERAL(".rar"))) { - StartExtractRarFeatures(); + LOG(WARNING) << "Safebrowser inspection of rar files is disabled in this build"; #if defined(OS_MACOSX) - } else if (item_->GetTargetFilePath().MatchesExtension( - FILE_PATH_LITERAL(".dmg")) || + } else if (target_path_.MatchesExtension(FILE_PATH_LITERAL(".dmg")) || + target_path_.MatchesExtension(FILE_PATH_LITERAL(".img")) || diff --git a/patches/debian_buster/disable/welcome-page.patch b/patches/debian_buster/disable/welcome-page.patch index 8fbf880d..a20daa1e 100644 --- a/patches/debian_buster/disable/welcome-page.patch +++ b/patches/debian_buster/disable/welcome-page.patch @@ -4,7 +4,7 @@ bug-debian: http://bugs.debian.org/857767 --- a/chrome/browser/profiles/profile_manager.cc +++ b/chrome/browser/profiles/profile_manager.cc -@@ -1078,7 +1078,7 @@ void ProfileManager::InitProfileUserPref +@@ -1071,7 +1071,7 @@ void ProfileManager::InitProfileUserPref profile->GetPrefs()->SetString(prefs::kSupervisedUserId, supervised_user_id); } diff --git a/patches/debian_buster/fixes/as-needed.patch b/patches/debian_buster/fixes/as-needed.patch index 30ed26b1..791090de 100644 --- a/patches/debian_buster/fixes/as-needed.patch +++ b/patches/debian_buster/fixes/as-needed.patch @@ -3,8 +3,8 @@ author: Michael Gilbert --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn -@@ -397,7 +397,7 @@ config("compiler") { - if (!using_sanitizer && !is_safestack) { +@@ -396,7 +396,7 @@ config("compiler") { + if (!using_sanitizer) { ldflags += [ "-Wl,-z,defs", - "-Wl,--as-needed", diff --git a/patches/debian_buster/fixes/autocompletematch.patch b/patches/debian_buster/fixes/autocompletematch.patch deleted file mode 100644 index 0616ea7a..00000000 --- a/patches/debian_buster/fixes/autocompletematch.patch +++ /dev/null @@ -1,21 +0,0 @@ -description: AutocompleteMatch cannot copy construct from a nullptr -author: Michael Gilbert - ---- a/components/omnibox/browser/autocomplete_match.cc -+++ b/components/omnibox/browser/autocomplete_match.cc -@@ -141,14 +141,13 @@ AutocompleteMatch::AutocompleteMatch(con - ? new AutocompleteMatch(*match.associated_keyword) - : nullptr), - keyword(match.keyword), -- pedal(match.pedal), - from_previous(match.from_previous), - search_terms_args( - match.search_terms_args - ? new TemplateURLRef::SearchTermsArgs(*match.search_terms_args) - : nullptr), - additional_info(match.additional_info), -- duplicate_matches(match.duplicate_matches) {} -+ duplicate_matches(match.duplicate_matches) { pedal = match.pedal; } - - AutocompleteMatch::~AutocompleteMatch() { - } diff --git a/patches/debian_buster/fixes/connection-message.patch b/patches/debian_buster/fixes/connection-message.patch index acbce11e..b5d69e2e 100644 --- a/patches/debian_buster/fixes/connection-message.patch +++ b/patches/debian_buster/fixes/connection-message.patch @@ -4,7 +4,7 @@ bug-debian: http://bugs.debian.org/864539 --- a/components/error_page_strings.grdp +++ b/components/error_page_strings.grdp -@@ -67,7 +67,7 @@ +@@ -73,7 +73,7 @@ Check any cables and reboot any routers, modems, or other network diff --git a/patches/debian_buster/fixes/constexpr.patch b/patches/debian_buster/fixes/constexpr.patch deleted file mode 100644 index e76ccdc1..00000000 --- a/patches/debian_buster/fixes/constexpr.patch +++ /dev/null @@ -1,14 +0,0 @@ -description: add constexpr to methods where it is required -author: Michael Gilbert - ---- a/third_party/blink/renderer/core/animation/animation_time_delta.h -+++ b/third_party/blink/renderer/core/animation/animation_time_delta.h -@@ -53,7 +53,7 @@ class CORE_EXPORT AnimationTimeDelta { - return AnimationTimeDelta(std::numeric_limits::infinity()); - } - -- double InSecondsF() const { return delta_; } -+ constexpr double InSecondsF() const { return delta_; } - double InMillisecondsF() const { return delta_ * 1000; } - - bool is_max() const { diff --git a/patches/debian_buster/fixes/constructor.patch b/patches/debian_buster/fixes/constructor.patch deleted file mode 100644 index aea4fa77..00000000 --- a/patches/debian_buster/fixes/constructor.patch +++ /dev/null @@ -1,21 +0,0 @@ -description: constructor of Algorithm needs to be public -author: Michael Gilbert - ---- a/third_party/blink/renderer/core/streams/transform_stream.cc -+++ b/third_party/blink/renderer/core/streams/transform_stream.cc -@@ -37,7 +37,6 @@ class TransformStream::Algorithm : publi - ScriptFunction::Trace(visitor); - } - -- protected: - Algorithm(TransformStreamTransformer* transformer, - ScriptState* script_state, - ExceptionState& exception_state) -@@ -46,6 +45,7 @@ class TransformStream::Algorithm : publi - interface_name_(exception_state.InterfaceName()), - property_name_(exception_state.PropertyName()) {} - -+ protected: - // AlgorithmScope holds the stack-allocated objects used by the CallRaw() - // methods for FlushAlgorithm and TransformAlgorithm. - class AlgorithmScope { diff --git a/patches/debian_buster/fixes/empty-array.patch b/patches/debian_buster/fixes/empty-array.patch index c2f35a73..5a680261 100644 --- a/patches/debian_buster/fixes/empty-array.patch +++ b/patches/debian_buster/fixes/empty-array.patch @@ -1,8 +1,8 @@ description: arraysize macro fails for zero length array, add one character author: Michael Gilbert ---- a/third_party/blink/renderer/platform/text/character_property_data_generator.h -+++ b/third_party/blink/renderer/platform/text/character_property_data_generator.h +--- a/third_party/blink/renderer/platform/text/character_property_data.h ++++ b/third_party/blink/renderer/platform/text/character_property_data.h @@ -244,10 +244,10 @@ static const UChar32 kIsHangulRanges[] = 0xD7B0, 0xD7FF, // Halfwidth Hangul Jamo @@ -14,5 +14,5 @@ author: Michael Gilbert -static const UChar32 kIsHangulArray[] = {}; +static const UChar32 kIsHangulArray[] = {0xFFDC}; - } // namespace blink - + #if !defined(USING_SYSTEM_ICU) + // Freezed trie tree, see character_property_data_generator.cc. diff --git a/patches/debian_buster/fixes/gpu-timeout.patch b/patches/debian_buster/fixes/gpu-timeout.patch index 61913f3f..30559995 100644 --- a/patches/debian_buster/fixes/gpu-timeout.patch +++ b/patches/debian_buster/fixes/gpu-timeout.patch @@ -4,7 +4,7 @@ bug-debian: http://bugs.debian.org/781940 --- a/gpu/ipc/service/gpu_watchdog_thread.cc +++ b/gpu/ipc/service/gpu_watchdog_thread.cc -@@ -42,7 +42,7 @@ const int kGpuTimeout = 30000; +@@ -44,7 +44,7 @@ const int kGpuTimeout = 30000; // infected machines. const int kGpuTimeout = 15000; #else diff --git a/patches/debian_buster/fixes/include.patch b/patches/debian_buster/fixes/include.patch new file mode 100644 index 00000000..008b2335 --- /dev/null +++ b/patches/debian_buster/fixes/include.patch @@ -0,0 +1,13 @@ +description: add include needed for memset +author: Michael Gilbert + +--- a/third_party/webrtc/modules/desktop_capture/linux/window_capturer_x11.cc ++++ b/third_party/webrtc/modules/desktop_capture/linux/window_capturer_x11.cc +@@ -16,6 +16,7 @@ + + #include + #include ++#include + #include + + #include "modules/desktop_capture/desktop_frame.h" diff --git a/patches/debian_buster/fixes/inspector.patch b/patches/debian_buster/fixes/inspector.patch index 46da33fd..e88932e6 100644 --- a/patches/debian_buster/fixes/inspector.patch +++ b/patches/debian_buster/fixes/inspector.patch @@ -12,12 +12,3 @@ author: Michael Gilbert import("$_inspector_protocol/inspector_protocol.gni") _protocol_generated = [ -@@ -30,7 +30,7 @@ _protocol_generated = [ - - action("protocol_compatibility") { - visibility = [ ":*" ] # Only targets in this file can depend on this. -- script = "$_inspector_protocol/CheckProtocolCompatibility.py" -+ script = "$_inspector_protocol/check_protocol_compatibility.py" - inputs = [ - "js_protocol.json", - ] diff --git a/patches/debian_buster/fixes/mojo.patch b/patches/debian_buster/fixes/mojo.patch index 620a493f..b42f33db 100644 --- a/patches/debian_buster/fixes/mojo.patch +++ b/patches/debian_buster/fixes/mojo.patch @@ -12,7 +12,7 @@ author: Michael Gilbert "browser/layout_test/secondary_test_window_observer.cc", "browser/layout_test/secondary_test_window_observer.h", "browser/layout_test/test_info_extractor.cc", -@@ -287,9 +285,7 @@ jumbo_static_library("content_shell_lib" +@@ -289,9 +287,7 @@ jumbo_static_library("content_shell_lib" "//content/public/common", "//content/public/common:service_names", "//content/shell/test_runner:test_runner", @@ -24,7 +24,7 @@ author: Michael Gilbert "//device/bluetooth:fake_bluetooth", --- a/content/shell/browser/layout_test/layout_test_content_browser_client.cc +++ b/content/shell/browser/layout_test/layout_test_content_browser_client.cc -@@ -23,7 +23,6 @@ +@@ -30,7 +30,6 @@ #include "content/shell/browser/layout_test/layout_test_browser_context.h" #include "content/shell/browser/layout_test/layout_test_browser_main_parts.h" #include "content/shell/browser/layout_test/layout_test_message_filter.h" @@ -32,7 +32,7 @@ author: Michael Gilbert #include "content/shell/browser/shell_browser_context.h" #include "content/shell/common/layout_test/layout_test_switches.h" #include "content/shell/common/shell_messages.h" -@@ -41,11 +40,6 @@ namespace { +@@ -47,11 +46,6 @@ namespace { LayoutTestContentBrowserClient* g_layout_test_browser_client; @@ -41,18 +41,18 @@ author: Michael Gilbert - MojoLayoutTestHelper::Create(std::move(request)); -} - - class WebPackageInternalsImpl : public blink::test::mojom::WebPackageInternals { + class TestOverlayWindow : public OverlayWindow { public: - explicit WebPackageInternalsImpl(WebPackageContext* web_package_context) -@@ -183,7 +177,6 @@ void LayoutTestContentBrowserClient::Exp - &WebPackageInternalsImpl::Create, - base::Unretained( - render_process_host->GetStoragePartition()->GetWebPackageContext()))); + TestOverlayWindow() = default; +@@ -157,7 +151,6 @@ void LayoutTestContentBrowserClient::Exp + &LayoutTestContentBrowserClient::CreateFakeBluetoothChooser, + base::Unretained(this)), + ui_task_runner); - registry->AddInterface(base::BindRepeating(&MojoLayoutTestHelper::Create)); registry->AddInterface( base::BindRepeating(&LayoutTestContentBrowserClient::BindClipboardHost, base::Unretained(this)), -@@ -305,7 +298,6 @@ bool LayoutTestContentBrowserClient::Can +@@ -314,7 +307,6 @@ bool LayoutTestContentBrowserClient::Can void LayoutTestContentBrowserClient::ExposeInterfacesToFrame( service_manager::BinderRegistryWithArgs* registry) { diff --git a/patches/debian_buster/fixes/ownership-error.patch b/patches/debian_buster/fixes/ownership-error.patch deleted file mode 100644 index 4822dd32..00000000 --- a/patches/debian_buster/fixes/ownership-error.patch +++ /dev/null @@ -1,15 +0,0 @@ -description: upstream tries to use a unique_ptr that has already been moved -author: Michael Gilbert - ---- a/services/resource_coordinator/coordination_unit/coordination_unit_base.cc -+++ b/services/resource_coordinator/coordination_unit/coordination_unit_base.cc -@@ -81,7 +81,8 @@ void CoordinationUnitBase::SetProperty(m - // static - CoordinationUnitBase* CoordinationUnitBase::PassOwnershipToGraph( - std::unique_ptr new_cu) { -- return new_cu->graph()->AddNewCoordinationUnit(std::move(new_cu)); -+ CoordinationUnitGraph* graph = new_cu->graph(); -+ return graph->AddNewCoordinationUnit(std::move(new_cu)); - } - - } // namespace resource_coordinator diff --git a/patches/debian_buster/fixes/polymer.patch b/patches/debian_buster/fixes/polymer.patch index 6579794e..2e8136e1 100644 --- a/patches/debian_buster/fixes/polymer.patch +++ b/patches/debian_buster/fixes/polymer.patch @@ -1,18 +1,18 @@ description: use polymer from chromium's top level third_party directory author: Michael Gilbert ---- a/third_party/catapult/tracing/trace_viewer.gypi -+++ b/third_party/catapult/tracing/trace_viewer.gypi -@@ -18,9 +18,9 @@ - 'tracing/ui/tracks/track.css', - ], - 'tracing_js_html_files': [ -- '../third_party/polymer/components/polymer/polymer-micro.html', -- '../third_party/polymer/components/polymer/polymer-mini.html', -- '../third_party/polymer/components/polymer/polymer.html', -+ '../../polymer/v1_0/components-chromium/polymer/polymer-micro.html', -+ '../../polymer/v1_0/components-chromium/polymer/polymer-mini.html', -+ '../../polymer/v1_0/components-chromium/polymer/polymer.html', - 'tracing/base/base.html', - 'tracing/base/base64.html', - 'tracing/base/category_util.html', +--- a/third_party/catapult/tracing/trace_viewer.gni ++++ b/third_party/catapult/tracing/trace_viewer.gni +@@ -16,9 +16,9 @@ tracing_css_files = [ + "tracing/ui/tracks/track.css", + ] + tracing_js_html_files = [ +- "../third_party/polymer/components/polymer/polymer-micro.html", +- "../third_party/polymer/components/polymer/polymer-mini.html", +- "../third_party/polymer/components/polymer/polymer.html", ++ "../../polymer/v1_0/components-chromium/polymer/polymer-micro.html", ++ "../../polymer/v1_0/components-chromium/polymer/polymer-mini.html", ++ "../../polymer/v1_0/components-chromium/polymer/polymer.html", + "tracing/base/base.html", + "tracing/base/base64.html", + "tracing/base/category_util.html", diff --git a/patches/debian_buster/fixes/sizet.patch b/patches/debian_buster/fixes/sizet.patch deleted file mode 100644 index 5c5ed225..00000000 --- a/patches/debian_buster/fixes/sizet.patch +++ /dev/null @@ -1,14 +0,0 @@ -description: size_t is not in scope by default in gcc 6 -author: Michael Gilbert - ---- a/media/base/subsample_entry.h -+++ b/media/base/subsample_entry.h -@@ -36,7 +36,7 @@ struct SubsampleEntry { - // does not match |input_size|. - MEDIA_EXPORT bool VerifySubsamplesMatchSize( - const std::vector& subsamples, -- size_t input_size); -+ std::size_t input_size); - - } // namespace media - diff --git a/patches/debian_buster/fixes/widevine-locations.patch b/patches/debian_buster/fixes/widevine-locations.patch index dd578192..5f144d41 100644 --- a/patches/debian_buster/fixes/widevine-locations.patch +++ b/patches/debian_buster/fixes/widevine-locations.patch @@ -4,7 +4,7 @@ author: Olivier Tilloy --- a/chrome/common/chrome_paths.cc +++ b/chrome/common/chrome_paths.cc -@@ -373,6 +373,11 @@ bool PathProvider(int key, base::FilePat +@@ -375,6 +375,11 @@ bool PathProvider(int key, base::FilePat // TODO(crbug.com/663554): Remove this after component updated CDM is // supported on Linux and ChromeOS. case chrome::FILE_WIDEVINE_CDM: diff --git a/patches/debian_buster/gn/libcxx.patch b/patches/debian_buster/gn/libcxx.patch index 3a55043e..d8bd4f87 100644 --- a/patches/debian_buster/gn/libcxx.patch +++ b/patches/debian_buster/gn/libcxx.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/tools/gn/build/gen.py +++ b/tools/gn/build/gen.py -@@ -312,7 +312,6 @@ def WriteGNNinja(path, platform, host, o +@@ -315,7 +315,6 @@ def WriteGNNinja(path, platform, host, o if platform.is_linux(): ldflags.extend([ diff --git a/patches/debian_buster/gn/parallel.patch b/patches/debian_buster/gn/parallel.patch index ad45e91f..a2dc047d 100644 --- a/patches/debian_buster/gn/parallel.patch +++ b/patches/debian_buster/gn/parallel.patch @@ -3,15 +3,15 @@ author: Michael Gilbert --- a/tools/gn/bootstrap/bootstrap.py +++ b/tools/gn/bootstrap/bootstrap.py -@@ -51,6 +51,7 @@ def main(argv): - action='store_true', - help='Download and build with the Debian sysroot.') +@@ -47,6 +47,7 @@ def main(argv): + help='The directory in which to build gn, ' + 'relative to the src directory. (eg. out/Release)') parser.add_option('-v', '--verbose', help='ignored') + parser.add_option('-j', '--jobs', help='Number of jobs') parser.add_option( '--skip-generate-buildfiles', action='store_true', -@@ -84,8 +85,12 @@ def main(argv): +@@ -78,8 +79,12 @@ def main(argv): shutil.copy2( os.path.join(BOOTSTRAP_DIR, 'last_commit_position.h'), gn_build_dir) diff --git a/patches/debian_buster/system/event.patch b/patches/debian_buster/system/event.patch index 17ea9573..8bad9d3c 100644 --- a/patches/debian_buster/system/event.patch +++ b/patches/debian_buster/system/event.patch @@ -4,8 +4,8 @@ author: Michael Gilbert --- a/third_party/webrtc/rtc_base/task_queue_libevent.cc +++ b/third_party/webrtc/rtc_base/task_queue_libevent.cc @@ -22,7 +22,7 @@ - #include // for remove_reference<>::... - #include // for move + #include + #include -#include "base/third_party/libevent/event.h" +#include @@ -25,7 +25,7 @@ author: Michael Gilbert #include "build/build_config.h" --- a/tools/gn/build/gen.py +++ b/tools/gn/build/gen.py -@@ -320,6 +320,7 @@ def WriteGNNinja(path, platform, host, o +@@ -323,6 +323,7 @@ def WriteGNNinja(path, platform, host, o '-lpthread', # Additional system libraries that are used. '-lnspr4', diff --git a/patches/debian_buster/system/ffmpeg34.patch b/patches/debian_buster/system/ffmpeg34.patch index 1e743612..65a58ff0 100644 --- a/patches/debian_buster/system/ffmpeg34.patch +++ b/patches/debian_buster/system/ffmpeg34.patch @@ -52,7 +52,7 @@ origin: chromium 66 authors ~FFmpegGlue(); --- a/media/filters/ffmpeg_video_decoder.cc +++ b/media/filters/ffmpeg_video_decoder.cc -@@ -28,6 +28,7 @@ +@@ -23,6 +23,7 @@ #include "media/base/video_util.h" #include "media/ffmpeg/ffmpeg_common.h" #include "media/ffmpeg/ffmpeg_decoding_loop.h" @@ -60,7 +60,7 @@ origin: chromium 66 authors namespace media { -@@ -111,6 +112,7 @@ static void ReleaseVideoBufferImpl(void* +@@ -80,6 +81,7 @@ static void ReleaseVideoBufferImpl(void* // static bool FFmpegVideoDecoder::IsCodecSupported(VideoCodec codec) { @@ -68,7 +68,7 @@ origin: chromium 66 authors return avcodec_find_decoder(VideoCodecToCodecID(codec)) != nullptr; } -@@ -267,6 +269,8 @@ void FFmpegVideoDecoder::Initialize( +@@ -224,6 +226,8 @@ void FFmpegVideoDecoder::Initialize( return; } diff --git a/patches/debian_buster/system/fontconfig.patch b/patches/debian_buster/system/fontconfig.patch index b57c9583..c549183b 100644 --- a/patches/debian_buster/system/fontconfig.patch +++ b/patches/debian_buster/system/fontconfig.patch @@ -10,7 +10,7 @@ author: Michael Gilbert --- a/base/test/BUILD.gn +++ b/base/test/BUILD.gn @@ -206,7 +206,7 @@ static_library("test_support") { - deps += [ "//third_party/fuchsia-sdk:zx" ] + deps += [ "//third_party/fuchsia-sdk/sdk:zx" ] } - if (is_linux) { diff --git a/patches/debian_buster/system/harfbuzz.patch b/patches/debian_buster/system/harfbuzz.patch deleted file mode 100644 index 022b5cd7..00000000 --- a/patches/debian_buster/system/harfbuzz.patch +++ /dev/null @@ -1,43 +0,0 @@ -description: update api to support harfbuzz 2.1 -author: Michael Gilbert - ---- a/third_party/blink/renderer/platform/fonts/shaping/harfbuzz_face.cc -+++ b/third_party/blink/renderer/platform/fonts/shaping/harfbuzz_face.cc -@@ -139,7 +139,7 @@ static hb_position_t HarfBuzzGetGlyphHor - static void HarfBuzzGetGlyphHorizontalAdvances(hb_font_t* font, - void* font_data, - unsigned count, -- hb_codepoint_t* first_glyph, -+ const hb_codepoint_t* first_glyph, - unsigned int glyph_stride, - hb_position_t* first_advance, - unsigned int advance_stride, ---- a/third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.cc -+++ b/third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.cc -@@ -39,13 +39,14 @@ void SkiaTextMetrics::GetGlyphWidthForHa - } - - void SkiaTextMetrics::GetGlyphWidthForHarfBuzz(unsigned count, -- hb_codepoint_t* glyphs, -+ const hb_codepoint_t* first_glyph, - unsigned glyph_stride, - hb_position_t* advances, - unsigned advance_stride) { - // Batch the call to getTextWidths because its function entry cost is not - // cheap. getTextWidths accepts multiple glyphd ID, but not from a sparse - // array that copy them to a regular array. -+ hb_codepoint_t* glyphs = const_cast(first_glyph); - Vector glyph_array(count); - for (unsigned i = 0; i < count; - i++, glyphs = advance_by_byte_size(glyphs, glyph_stride)) { ---- a/third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.h -+++ b/third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.h -@@ -19,7 +19,7 @@ class SkiaTextMetrics final { - - void GetGlyphWidthForHarfBuzz(hb_codepoint_t, hb_position_t* width); - void GetGlyphWidthForHarfBuzz(unsigned count, -- hb_codepoint_t* first_glyph, -+ const hb_codepoint_t* first_glyph, - unsigned glyph_stride, - hb_position_t* first_advance, - unsigned advance_stride); diff --git a/patches/debian_buster/system/jpeg.patch b/patches/debian_buster/system/jpeg.patch index 7cb3b416..33fa22c2 100644 --- a/patches/debian_buster/system/jpeg.patch +++ b/patches/debian_buster/system/jpeg.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/BUILD.gn +++ b/BUILD.gn -@@ -670,7 +670,6 @@ group("gn_all") { +@@ -692,7 +692,6 @@ group("gn_all") { "//third_party/angle:libEGL", "//third_party/angle:libGLESv2", "//third_party/leveldatabase:leveldb_test_targets", @@ -11,7 +11,7 @@ author: Michael Gilbert "//third_party/opus:opus_compare", "//third_party/opus:opus_demo", "//third_party/opus:test_opus_api", -@@ -692,7 +691,6 @@ group("gn_all") { +@@ -714,7 +713,6 @@ group("gn_all") { if (enable_nacl) { deps += [ "//native_client/src/trusted/platform_qualify:vcpuid" ] } diff --git a/patches/debian_buster/system/nspr.patch b/patches/debian_buster/system/nspr.patch index 5c136695..148eb06a 100644 --- a/patches/debian_buster/system/nspr.patch +++ b/patches/debian_buster/system/nspr.patch @@ -35,7 +35,7 @@ author: Michael Gilbert } config("base_implementation") { -@@ -841,8 +844,6 @@ jumbo_component("base") { +@@ -829,8 +832,6 @@ jumbo_component("base") { "third_party/dmg_fp/g_fmt.cc", "third_party/icu/icu_utf.cc", "third_party/icu/icu_utf.h", @@ -43,10 +43,10 @@ author: Michael Gilbert - "third_party/nspr/prtime.h", "third_party/superfasthash/superfasthash.c", "thread_annotations.h", - "threading/platform_thread.h", + "threading/platform_thread.cc", --- a/tools/gn/build/gen.py +++ b/tools/gn/build/gen.py -@@ -318,6 +318,8 @@ def WriteGNNinja(path, platform, host, o +@@ -321,6 +321,8 @@ def WriteGNNinja(path, platform, host, o # These are needed by libc++. '-ldl', '-lpthread', diff --git a/patches/debian_buster/system/openjpeg.patch b/patches/debian_buster/system/openjpeg.patch index 24e1a6bc..7df7bff0 100644 --- a/patches/debian_buster/system/openjpeg.patch +++ b/patches/debian_buster/system/openjpeg.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/third_party/pdfium/third_party/BUILD.gn +++ b/third_party/pdfium/third_party/BUILD.gn -@@ -367,39 +367,11 @@ config("fx_libopenjpeg_warnings") { +@@ -394,39 +394,11 @@ config("fx_libopenjpeg_warnings") { } } @@ -61,24 +61,24 @@ author: Michael Gilbert --- a/third_party/pdfium/core/fxcodec/codec/ccodec_jpxmodule.cpp +++ b/third_party/pdfium/core/fxcodec/codec/ccodec_jpxmodule.cpp -@@ -17,8 +17,6 @@ - #include "core/fxcrt/fx_memory.h" +@@ -18,8 +18,6 @@ #include "core/fxcrt/fx_safe_types.h" #include "third_party/base/ptr_util.h" + #include "third_party/base/stl_util.h" -#include "third_party/libopenjpeg20/openjpeg.h" -#include "third_party/libopenjpeg20/opj_malloc.h" namespace { -@@ -515,7 +513,6 @@ bool CJPX_Decoder::Init(pdfium::spanpdfium_use_colorspace = !!m_ColorSpace; + return true; + } - if (!m_Parameters.nb_tile_to_decode) { - if (!opj_set_decode_area(m_Codec.Get(), m_Image.Get(), m_Parameters.DA_x0, -@@ -549,7 +546,7 @@ bool CJPX_Decoder::Init(pdfium::span --- a/third_party/pdfium/BUILD.gn +++ b/third_party/pdfium/BUILD.gn -@@ -21,7 +21,6 @@ config("pdfium_common_config") { +@@ -20,7 +20,6 @@ config("pdfium_common_config") { ldflags = [] include_dirs = [ "." ] defines = [ @@ -108,7 +108,7 @@ author: Michael Gilbert "PNG_PREFIX", "PNG_USE_READ_MACROS", ] -@@ -78,7 +77,6 @@ config("pdfium_core_config") { +@@ -77,7 +76,6 @@ config("pdfium_core_config") { if (is_linux) { if (current_cpu == "x64") { defines += [ "_FX_CPU_=_FX_X64_" ] diff --git a/patches/debian_buster/system/vpx.patch b/patches/debian_buster/system/vpx.patch index cbc9fcc9..8cf0c7c4 100644 --- a/patches/debian_buster/system/vpx.patch +++ b/patches/debian_buster/system/vpx.patch @@ -16,7 +16,7 @@ author: Michael Gilbert namespace media { --- a/third_party/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc +++ b/third_party/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc -@@ -15,10 +15,10 @@ +@@ -17,10 +17,10 @@ #include #include @@ -31,7 +31,14 @@ author: Michael Gilbert #include "absl/memory/memory.h" #include "api/video/color_space.h" -@@ -609,34 +609,6 @@ int VP9EncoderImpl::InitAndSetControlSet +@@ -631,42 +631,12 @@ int VP9EncoderImpl::InitAndSetControlSet + inst->VP9().adaptiveQpMode ? 3 : 0); + + vpx_codec_control(encoder_, VP9E_SET_FRAME_PARALLEL_DECODING, 0); +- vpx_codec_control(encoder_, VP9E_SET_SVC_GF_TEMPORAL_REF, 0); + + if (is_svc_) { + vpx_codec_control(encoder_, VP9E_SET_SVC, 1); vpx_codec_control(encoder_, VP9E_SET_SVC_PARAMETERS, &svc_params_); } @@ -55,7 +62,8 @@ author: Michael Gilbert - // quality flickering and is not compatible with RTP non-flexible mode. - vpx_svc_frame_drop_t svc_drop_frame; - memset(&svc_drop_frame, 0, sizeof(svc_drop_frame)); -- svc_drop_frame.framedrop_mode = FULL_SUPERFRAME_DROP; +- svc_drop_frame.framedrop_mode = +- full_superframe_drop_ ? FULL_SUPERFRAME_DROP : CONSTRAINED_LAYER_DROP; - svc_drop_frame.max_consec_drop = std::numeric_limits::max(); - for (size_t i = 0; i < num_spatial_layers_; ++i) { - svc_drop_frame.framedrop_thresh[i] = config_->rc_dropframe_thresh; @@ -66,19 +74,39 @@ author: Michael Gilbert // Register callback for getting each spatial layer. vpx_codec_priv_output_cx_pkt_cb_pair_t cbp = { VP9EncoderImpl::EncoderOutputCodedPacketCallback, -@@ -786,11 +758,6 @@ int VP9EncoderImpl::Encode(const VideoFr +@@ -758,10 +728,6 @@ int VP9EncoderImpl::Encode(const VideoFr + } + } + +- for (int sl_idx = 0; sl_idx < num_active_spatial_layers_; ++sl_idx) { +- layer_id.temporal_layer_id_per_spatial[sl_idx] = layer_id.temporal_layer_id; +- } +- + vpx_codec_control(encoder_, VP9E_SET_SVC_LAYER_ID, &layer_id); + + if (requested_bitrate_allocation_) { +@@ -850,20 +816,6 @@ int VP9EncoderImpl::Encode(const VideoFr flags = VPX_EFLAG_FORCE_KF; } - if (external_ref_control_) { -- vpx_svc_ref_frame_config_t ref_config = SetReferences(force_key_frame_); +- vpx_svc_ref_frame_config_t ref_config = +- SetReferences(force_key_frame_, layer_id.spatial_layer_id); +- +- if (VideoCodecMode::kScreensharing == codec_.mode) { +- for (uint8_t sl_idx = 0; sl_idx < num_active_spatial_layers_; ++sl_idx) { +- ref_config.duration[sl_idx] = static_cast( +- 90000 / framerate_controller_[sl_idx].GetTargetRate()); +- } +- } +- - vpx_codec_control(encoder_, VP9E_SET_SVC_REF_FRAME_CONFIG, &ref_config); - } - + first_frame_in_picture_ = true; + // TODO(ssilkin): Frame duration should be specified per spatial layer - // since their frame rate can be different. For now calculate frame duration - // based on target frame rate of the highest spatial layer, which frame rate -@@ -894,10 +861,8 @@ void VP9EncoderImpl::PopulateCodecSpecif +@@ -976,10 +928,8 @@ void VP9EncoderImpl::PopulateCodecSpecif vp9_info->num_spatial_layers = num_active_spatial_layers_; vp9_info->num_ref_pics = 0; @@ -87,18 +115,18 @@ author: Michael Gilbert vp9_info->gof_idx = kNoGofIdx; - FillReferenceIndices(pkt, pics_since_key_, vp9_info->inter_layer_predicted, - vp9_info); - // TODO(webrtc:9794): Add fake reference to empty reference list to - // workaround the frame buffer issue on receiver. } else { -@@ -925,6 +890,7 @@ void VP9EncoderImpl::PopulateCodecSpecif - } + vp9_info->gof_idx = + static_cast(pics_since_key_ % gof_.num_frames_in_gof); +@@ -1007,6 +957,7 @@ void VP9EncoderImpl::PopulateCodecSpecif + first_frame_in_picture_ = false; } +/* void VP9EncoderImpl::FillReferenceIndices(const vpx_codec_cx_pkt& pkt, const size_t pic_num, const bool inter_layer_predicted, -@@ -1137,6 +1103,7 @@ vpx_svc_ref_frame_config_t VP9EncoderImp +@@ -1239,6 +1190,7 @@ vpx_svc_ref_frame_config_t VP9EncoderImp return ref_config; } @@ -106,8 +134,8 @@ author: Michael Gilbert int VP9EncoderImpl::GetEncodedLayerFrame(const vpx_codec_cx_pkt* pkt) { RTC_DCHECK_EQ(pkt->kind, VPX_CODEC_CX_FRAME_PKT); -@@ -1183,10 +1150,6 @@ int VP9EncoderImpl::GetEncodedLayerFrame - input_image_->timestamp(), first_frame_in_picture); +@@ -1284,10 +1236,6 @@ int VP9EncoderImpl::GetEncodedLayerFrame + input_image_->timestamp()); encoded_image_.SetSpatialIndex(spatial_index); - if (is_flexible_mode_) { @@ -117,7 +145,7 @@ author: Michael Gilbert TRACE_COUNTER1("webrtc", "EncodedFrameSize", encoded_image_._length); encoded_image_.SetTimestamp(input_image_->timestamp()); encoded_image_.capture_time_ms_ = input_image_->render_time_ms(); -@@ -1194,10 +1157,8 @@ int VP9EncoderImpl::GetEncodedLayerFrame +@@ -1295,10 +1243,8 @@ int VP9EncoderImpl::GetEncodedLayerFrame encoded_image_.content_type_ = (codec_.mode == VideoCodecMode::kScreensharing) ? VideoContentType::SCREENSHARE : VideoContentType::UNSPECIFIED; diff --git a/patches/debian_buster/system/zlib.patch b/patches/debian_buster/system/zlib.patch index 8da1ecd7..9718ddc9 100644 --- a/patches/debian_buster/system/zlib.patch +++ b/patches/debian_buster/system/zlib.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/courgette/BUILD.gn +++ b/courgette/BUILD.gn -@@ -59,7 +59,6 @@ static_library("courgette_lib") { +@@ -60,7 +60,6 @@ static_library("courgette_lib") { deps = [ "//base", diff --git a/patches/debian_buster/warnings/enum-compare.patch b/patches/debian_buster/warnings/enum-compare.patch index 6b4f7d16..163a0e3e 100644 --- a/patches/debian_buster/warnings/enum-compare.patch +++ b/patches/debian_buster/warnings/enum-compare.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/chrome/browser/ui/views/passwords/password_generation_popup_view_views.cc +++ b/chrome/browser/ui/views/passwords/password_generation_popup_view_views.cc -@@ -52,11 +52,11 @@ class PasswordGenerationPopupViewViews:: +@@ -51,11 +51,11 @@ class PasswordGenerationPopupViewViews:: BuildColumnSet(layout); layout->StartRow(views::GridLayout::kFixedSize, 0); @@ -19,24 +19,6 @@ author: Michael Gilbert DCHECK(!password_label_); password_label_ = autofill::CreateLabelWithColorReadabilityDisabled( ---- a/ui/aura/hit_test_data_provider_aura.cc -+++ b/ui/aura/hit_test_data_provider_aura.cc -@@ -50,11 +50,10 @@ base::Optional H - return base::nullopt; - - base::Optional hit_test_region_list(base::in_place); -- hit_test_region_list->flags = -- event_targeting_policy == -- ws::mojom::EventTargetingPolicy::DESCENDANTS_ONLY -- ? viz::HitTestRegionFlags::kHitTestIgnore -- : viz::HitTestRegionFlags::kHitTestMine; -+ hit_test_region_list->flags = viz::HitTestRegionFlags::kHitTestMine; -+ if (event_targeting_policy == -+ ws::mojom::EventTargetingPolicy::DESCENDANTS_ONLY) -+ hit_test_region_list->flags = viz::HitTestRegionFlags::kHitTestIgnore; - // TODO(crbug.com/805416): Use pixels instead of DIP units for bounds. - hit_test_region_list->bounds = window_->bounds(); - --- a/components/viz/common/gl_helper.cc +++ b/components/viz/common/gl_helper.cc @@ -476,7 +476,7 @@ void GLHelper::CopyTextureToImpl::Cancel diff --git a/patches/debian_buster/warnings/sequence-point.patch b/patches/debian_buster/warnings/sequence-point.patch index 18b57eb9..2cc1fe34 100644 --- a/patches/debian_buster/warnings/sequence-point.patch +++ b/patches/debian_buster/warnings/sequence-point.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/headless/lib/browser/protocol/browser_handler.cc +++ b/headless/lib/browser/protocol/browser_handler.cc -@@ -75,7 +75,7 @@ Response BrowserHandler::Close() { +@@ -78,7 +78,7 @@ Response BrowserHandler::Close() { Response BrowserHandler::SetWindowBounds( int window_id, std::unique_ptr window_bounds) { @@ -14,7 +14,7 @@ author: Michael Gilbert return Response::Error("Browser window not found"); --- a/third_party/webrtc/modules/audio_processing/aec3/reverb_decay_estimator.cc +++ b/third_party/webrtc/modules/audio_processing/aec3/reverb_decay_estimator.cc -@@ -285,7 +285,7 @@ void ReverbDecayEstimator::LateReverbLin +@@ -287,7 +287,7 @@ void ReverbDecayEstimator::LateReverbLin // Arithmetic sum of $2 \sum_{i=0.5}^{(N-1)/2}i^2$ calculated directly. nn_ = SymmetricArithmetricSum(N); // The linear regression approach assumes symmetric index around 0.