From affb4b16940658b8cfbe1060dc3d972d9180fdc8 Mon Sep 17 00:00:00 2001 From: xsmile <> Date: Thu, 31 Jan 2019 15:06:30 +0100 Subject: [PATCH] patches/inox: Update for 72.0.3626.81 --- ...01-fix-building-without-safebrowsing.patch | 103 ++-- ...03-disable-autofill-download-manager.patch | 33 +- .../0005-disable-default-extensions.patch | 12 +- .../0006-modify-default-prefs.patch | 14 +- .../0008-restore-classic-ntp.patch | 8 +- .../0009-disable-google-ipv6-probes.patch | 6 +- .../0011-add-duckduckgo-search-engine.patch | 2 +- .../0015-disable-update-pings.patch | 12 +- .../0017-disable-new-avatar-menu.patch | 4 +- .../0018-disable-first-run-behaviour.patch | 2 +- .../chromium-exclude_unwind_tables.patch | 2 +- .../inox-patchset/chromium-skia-harmony.patch | 70 +-- .../inox-patchset/chromium-vaapi-r18.patch | 554 ------------------ .../inox-patchset/clang-compiler-flags.patch | 12 - patches/inox-patchset/enable-vaapi.patch | 158 +++++ ...x-cfi-failures-with-unbundled-libxml.patch | 2 +- 16 files changed, 280 insertions(+), 714 deletions(-) delete mode 100644 patches/inox-patchset/chromium-vaapi-r18.patch delete mode 100644 patches/inox-patchset/clang-compiler-flags.patch create mode 100644 patches/inox-patchset/enable-vaapi.patch diff --git a/patches/inox-patchset/0001-fix-building-without-safebrowsing.patch b/patches/inox-patchset/0001-fix-building-without-safebrowsing.patch index ccf62275..a452cbcc 100644 --- a/patches/inox-patchset/0001-fix-building-without-safebrowsing.patch +++ b/patches/inox-patchset/0001-fix-building-without-safebrowsing.patch @@ -1,7 +1,7 @@ --- a/chrome/browser/chrome_content_browser_client.cc +++ b/chrome/browser/chrome_content_browser_client.cc -@@ -812,30 +812,6 @@ void SetApplicationLocaleOnIOThread(cons - g_io_thread_application_locale.Get() = locale; +@@ -830,30 +830,6 @@ void SetApplicationLocaleOnIOThread(cons + GetIOThreadApplicationLocale() = locale; } -// An implementation of the SSLCertReporter interface used by @@ -31,7 +31,7 @@ #if defined(OS_ANDROID) float GetDeviceScaleAdjustment() { static const float kMinFSM = 1.05f; -@@ -1988,7 +1964,7 @@ void ChromeContentBrowserClient::AppendE +@@ -2004,7 +1980,7 @@ void ChromeContentBrowserClient::AppendE // Disable client-side phishing detection in the renderer if it is // disabled in the Profile preferences or the browser process. if (!prefs->GetBoolean(prefs::kSafeBrowsingEnabled) || @@ -40,7 +40,7 @@ command_line->AppendSwitch( switches::kDisableClientSidePhishingDetection); } -@@ -2666,7 +2642,7 @@ void ChromeContentBrowserClient::AllowCe +@@ -2694,7 +2670,7 @@ void ChromeContentBrowserClient::AllowCe SSLErrorHandler::HandleSSLError( web_contents, cert_error, ssl_info, request_url, expired_previous_decision, @@ -49,7 +49,7 @@ callback, SSLErrorHandler::BlockingPageReadyCallback()); } -@@ -2936,8 +2912,6 @@ bool ChromeContentBrowserClient::CanCrea +@@ -2974,8 +2950,6 @@ bool ChromeContentBrowserClient::CanCrea void ChromeContentBrowserClient::ResourceDispatcherHostCreated() { DCHECK_CURRENTLY_ON(BrowserThread::UI); @@ -58,7 +58,7 @@ for (size_t i = 0; i < extra_parts_.size(); ++i) extra_parts_[i]->ResourceDispatcherHostCreated(); -@@ -4103,7 +4077,7 @@ ChromeContentBrowserClient::CreateThrott +@@ -4181,7 +4155,7 @@ ChromeContentBrowserClient::CreateThrott if (base::FeatureList::IsEnabled(features::kSSLCommittedInterstitials)) { throttles.push_back(std::make_unique( handle, @@ -69,7 +69,7 @@ --- a/chrome/browser/profiles/profile_impl.cc +++ b/chrome/browser/profiles/profile_impl.cc -@@ -536,18 +536,6 @@ ProfileImpl::ProfileImpl( +@@ -549,18 +549,6 @@ ProfileImpl::ProfileImpl( create_mode == CREATE_MODE_SYNCHRONOUS); #endif @@ -88,7 +88,7 @@ content::BrowserContext::Initialize(this, path_); { -@@ -556,7 +544,7 @@ ProfileImpl::ProfileImpl( +@@ -569,7 +557,7 @@ ProfileImpl::ProfileImpl( ->CreateDelegate(); delegate->InitPrefRegistry(pref_registry_.get()); prefs_ = chrome_prefs::CreateProfilePrefs( @@ -99,7 +99,7 @@ GetIOTaskRunner(), std::move(delegate)); --- a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc +++ b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc -@@ -326,8 +326,7 @@ void LogCommittedPreviewsDecision( +@@ -296,8 +296,7 @@ void NotifyUIThreadOfRequestComplete( } // namespace ChromeResourceDispatcherHostDelegate::ChromeResourceDispatcherHostDelegate() @@ -109,7 +109,7 @@ ChromeResourceDispatcherHostDelegate::~ChromeResourceDispatcherHostDelegate() { #if BUILDFLAG(ENABLE_EXTENSIONS) -@@ -341,8 +340,6 @@ void ChromeResourceDispatcherHostDelegat +@@ -311,8 +310,6 @@ void ChromeResourceDispatcherHostDelegat content::AppCacheService* appcache_service, ResourceType resource_type, std::vector>* throttles) { @@ -118,7 +118,7 @@ ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context); #if BUILDFLAG(ENABLE_OFFLINE_PAGES) || BUILDFLAG(ENABLE_NACL) -@@ -461,7 +458,7 @@ void ChromeResourceDispatcherHostDelegat +@@ -431,7 +428,7 @@ void ChromeResourceDispatcherHostDelegat content::ResourceThrottle* first_throttle = NULL; #if defined(OS_ANDROID) first_throttle = DataReductionProxyResourceThrottle::MaybeCreate( @@ -129,7 +129,7 @@ #if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE) --- a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc +++ b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc -@@ -251,117 +251,6 @@ BadClockBlockingPage* CreateBadClockBloc +@@ -250,117 +250,6 @@ BadClockBlockingPage* CreateBadClockBloc base::Callback()); } @@ -247,8 +247,8 @@ #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) CaptivePortalBlockingPage* CreateCaptivePortalBlockingPage( content::WebContents* web_contents) { -@@ -465,8 +354,6 @@ void InterstitialHTMLSource::StartDataRe - CreateSSLBlockingPage(web_contents, true /* is superfish */)); +@@ -460,8 +349,6 @@ void InterstitialHTMLSource::StartDataRe + interstitial_delegate.reset(CreateSSLBlockingPage(web_contents)); } else if (path_without_query == "/mitm-software-ssl") { interstitial_delegate.reset(CreateMITMSoftwareBlockingPage(web_contents)); - } else if (path_without_query == "/safebrowsing") { @@ -256,7 +256,7 @@ } else if (path_without_query == "/clock") { interstitial_delegate.reset(CreateBadClockBlockingPage(web_contents)); #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) -@@ -477,11 +364,6 @@ void InterstitialHTMLSource::StartDataRe +@@ -472,11 +359,6 @@ void InterstitialHTMLSource::StartDataRe if (path_without_query == "/supervised_user") { html = GetSupervisedUserInterstitialHTML(path); @@ -360,7 +360,7 @@ } #if defined(OS_ANDROID) -@@ -618,16 +611,6 @@ void ChromeDownloadManagerDelegate::Choo +@@ -616,16 +609,6 @@ void ChromeDownloadManagerDelegate::Choo void ChromeDownloadManagerDelegate::SanitizeSavePackageResourceName( base::FilePath* filename) { @@ -379,15 +379,15 @@ void ChromeDownloadManagerDelegate::OpenDownloadUsingPlatformHandler( --- a/chrome/browser/browser_process_impl.cc +++ b/chrome/browser/browser_process_impl.cc -@@ -72,7 +72,6 @@ +@@ -73,7 +73,6 @@ #include "chrome/browser/printing/print_preview_dialog_controller.h" #include "chrome/browser/profiles/profile_manager.h" - #include "chrome/browser/resource_coordinator/tab_lifecycle_unit_source.h" + #include "chrome/browser/resource_coordinator/resource_coordinator_parts.h" -#include "chrome/browser/safe_browsing/safe_browsing_service.h" #include "chrome/browser/shell_integration.h" #include "chrome/browser/status_icons/status_tray.h" #include "chrome/browser/ui/browser_dialogs.h" -@@ -373,8 +372,6 @@ void BrowserProcessImpl::StartTearDown() +@@ -371,8 +370,6 @@ void BrowserProcessImpl::StartTearDown() // that URLFetcher operation before going away.) metrics_services_manager_.reset(); intranet_redirect_detector_.reset(); @@ -396,7 +396,7 @@ network_time_tracker_.reset(); #if BUILDFLAG(ENABLE_PLUGINS) plugins_resource_service_.reset(); -@@ -994,22 +991,6 @@ StatusTray* BrowserProcessImpl::status_t +@@ -992,22 +989,6 @@ StatusTray* BrowserProcessImpl::status_t return status_tray_.get(); } @@ -416,10 +416,10 @@ - return NULL; -} - - subresource_filter::ContentRulesetService* + subresource_filter::RulesetService* BrowserProcessImpl::subresource_filter_ruleset_service() { DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -@@ -1300,16 +1281,6 @@ void BrowserProcessImpl::CreateBackgroun +@@ -1298,16 +1279,6 @@ void BrowserProcessImpl::CreateBackgroun #endif } @@ -438,17 +438,17 @@ created_subresource_filter_ruleset_service_ = true; --- a/chrome/browser/browser_process_impl.h +++ b/chrome/browser/browser_process_impl.h -@@ -175,9 +175,6 @@ class BrowserProcessImpl : public Browse +@@ -172,9 +172,6 @@ class BrowserProcessImpl : public Browse void set_background_mode_manager_for_test( std::unique_ptr manager) override; StatusTray* status_tray() override; - safe_browsing::SafeBrowsingService* safe_browsing_service() override; - safe_browsing::ClientSideDetectionService* safe_browsing_detection_service() - override; - subresource_filter::ContentRulesetService* - subresource_filter_ruleset_service() override; + subresource_filter::RulesetService* subresource_filter_ruleset_service() + override; optimization_guide::OptimizationGuideService* optimization_guide_service() -@@ -324,9 +321,6 @@ class BrowserProcessImpl : public Browse +@@ -326,9 +323,6 @@ class BrowserProcessImpl : public Browse std::unique_ptr background_mode_manager_; #endif @@ -456,7 +456,7 @@ - scoped_refptr safe_browsing_service_; - bool created_subresource_filter_ruleset_service_ = false; - std::unique_ptr + std::unique_ptr subresource_filter_ruleset_service_; --- a/chrome/browser/browser_process.h +++ b/chrome/browser/browser_process.h @@ -469,9 +469,9 @@ -} - namespace subresource_filter { - class ContentRulesetService; + class RulesetService; } -@@ -116,10 +112,6 @@ namespace resource_coordinator { +@@ -117,10 +113,6 @@ class ResourceCoordinatorParts; class TabManager; } @@ -482,7 +482,7 @@ // NOT THREAD SAFE, call only from the main thread. // These functions shouldn't return NULL unless otherwise noted. class BrowserProcess { -@@ -234,14 +226,6 @@ class BrowserProcess { +@@ -235,14 +227,6 @@ class BrowserProcess { // on this platform (or this is a unit test). virtual StatusTray* status_tray() = 0; @@ -496,7 +496,7 @@ - // Returns the service providing versioned storage for rules used by the Safe // Browsing subresource filter. - virtual subresource_filter::ContentRulesetService* + virtual subresource_filter::RulesetService* --- a/chrome/browser/ui/webui/md_downloads/md_downloads_dom_handler.h +++ b/chrome/browser/ui/webui/md_downloads/md_downloads_dom_handler.h @@ -12,7 +12,6 @@ @@ -709,7 +709,7 @@ } } -@@ -382,10 +375,6 @@ bool DownloadPrefs::IsAutoOpenEnabledBas +@@ -371,10 +364,6 @@ bool DownloadPrefs::IsAutoOpenEnabledBas bool DownloadPrefs::EnableAutoOpenBasedOnExtension( const base::FilePath& file_name) { base::FilePath::StringType extension = file_name.Extension(); @@ -778,7 +778,7 @@ void DownloadTargetDeterminer::OnDownloadDestroyed( --- a/chrome/browser/BUILD.gn +++ b/chrome/browser/BUILD.gn -@@ -2621,8 +2621,6 @@ jumbo_split_static_library("browser") { +@@ -2649,8 +2649,6 @@ jumbo_split_static_library("browser") { "download/download_commands.h", "download/download_crx_util.cc", "download/download_crx_util.h", @@ -789,7 +789,7 @@ "download/download_dir_util.cc", --- a/chrome/browser/ui/BUILD.gn +++ b/chrome/browser/ui/BUILD.gn -@@ -2444,7 +2444,6 @@ jumbo_split_static_library("ui") { +@@ -2420,7 +2420,6 @@ jumbo_split_static_library("ui") { "views/cookie_info_view.h", "views/device_chooser_content_view.cc", "views/device_chooser_content_view.h", @@ -880,9 +880,9 @@ --- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc +++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc -@@ -649,35 +649,6 @@ void ChromeBrowsingDataRemoverDelegate:: +@@ -617,35 +617,6 @@ void ChromeBrowsingDataRemoverDelegate:: CONTENT_SETTINGS_TYPE_CLIENT_HINTS, base::Time(), base::Time::Max(), - base::BindRepeating(&WebsiteSettingsFilterAdapter, filter)); + website_settings_filter); - // Clear the safebrowsing cookies only if time period is for "all time". It - // doesn't make sense to apply the time period of deleting in the last X @@ -918,7 +918,7 @@ --- a/chrome/browser/metrics/chrome_metrics_service_client.cc +++ b/chrome/browser/metrics/chrome_metrics_service_client.cc -@@ -713,9 +713,6 @@ void ChromeMetricsServiceClient::Registe +@@ -714,9 +714,6 @@ void ChromeMetricsServiceClient::Registe metrics_service_->RegisterMetricsProvider( std::make_unique()); @@ -930,7 +930,7 @@ std::make_unique()); --- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc +++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc -@@ -230,7 +230,6 @@ void ChromeBrowserMainExtraPartsProfiles +@@ -233,7 +233,6 @@ void ChromeBrowserMainExtraPartsProfiles #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) CaptivePortalServiceFactory::GetInstance(); #endif @@ -971,10 +971,10 @@ - ssl_cert_reporter_->ReportInvalidCertificateChain(serialized_report); } - bool CertReportHelper::IsShowingReportingCheckboxOrReportingAllowed() { + bool CertReportHelper::ShouldShowCertificateReporterCheckbox() { --- a/chrome/browser/ui/tab_helpers.cc +++ b/chrome/browser/ui/tab_helpers.cc -@@ -242,8 +242,6 @@ void TabHelpers::AttachTabHelpers(WebCon +@@ -244,8 +244,6 @@ void TabHelpers::AttachTabHelpers(WebCon PreviewsUITabHelper::CreateForWebContents(web_contents); RecentlyAudibleHelper::CreateForWebContents(web_contents); ResourceLoadingHintsWebContentsObserver::CreateForWebContents(web_contents); @@ -983,7 +983,7 @@ SearchEngineTabHelper::CreateForWebContents(web_contents); SecurityStateTabHelper::CreateForWebContents(web_contents); if (SiteEngagementService::IsEnabled()) -@@ -297,9 +295,6 @@ void TabHelpers::AttachTabHelpers(WebCon +@@ -298,9 +296,6 @@ void TabHelpers::AttachTabHelpers(WebCon new ChromePDFWebContentsHelperClient())); PluginObserver::CreateForWebContents(web_contents); SadTabHelper::CreateForWebContents(web_contents); @@ -1026,7 +1026,7 @@ sources = [ "safe_browsing_controller_client.cc", "safe_browsing_controller_client.h", -@@ -74,6 +75,7 @@ static_library("safe_browsing") { +@@ -75,6 +76,7 @@ static_library("safe_browsing") { } else { sources += [ "chrome_cleaner/chrome_cleaner_extension_util_win_noop.cc" ] } @@ -1036,7 +1036,7 @@ # "Safe Browsing Basic" files used for safe browsing in full mode --- a/chrome/renderer/chrome_content_renderer_client.cc +++ b/chrome/renderer/chrome_content_renderer_client.cc -@@ -79,7 +79,6 @@ +@@ -80,7 +80,6 @@ #include "components/error_page/common/localized_error.h" #include "components/network_hints/renderer/prescient_networking_dispatcher.h" #include "components/pdf/renderer/pepper_pdf_host.h" @@ -1128,7 +1128,7 @@ is_being_revived_(false) {} } // namespace -@@ -376,13 +376,13 @@ void DownloadItemModel::SetShouldPreferO +@@ -368,13 +368,13 @@ void DownloadItemModel::SetShouldPreferO data->should_prefer_opening_in_browser_ = preference; } @@ -1145,7 +1145,7 @@ DownloadItemModelData* data = DownloadItemModelData::GetOrCreate(download_); data->danger_level_ = danger_level; } -@@ -534,9 +534,6 @@ bool DownloadItemModel::IsCommandEnabled +@@ -526,9 +526,6 @@ bool DownloadItemModel::IsCommandEnabled // filename. Don't base an "Always open" decision based on it. Also // exclude extensions. return download_->CanOpenDownload() && @@ -1157,8 +1157,17 @@ return !download_->IsSavePackageDownload() && --- a/components/safe_browsing/features.cc +++ b/components/safe_browsing/features.cc -@@ -46,7 +46,7 @@ const base::Feature kInspectDownloadedRa - "InspectDownloadedRarFiles", base::FEATURE_DISABLED_BY_DEFAULT}; +@@ -24,7 +24,7 @@ const base::Feature kAdSamplerTriggerFea + + // Controls the billing interstitial UI. + const base::Feature kBillingInterstitial{"BillingInterstitial", +- base::FEATURE_ENABLED_BY_DEFAULT}; ++ base::FEATURE_DISABLED_BY_DEFAULT}; + + // If enabled in pre-network-service world, SafeBrowsing URL checks are done by + // applying SafeBrowsing's URLLoaderThrottle subclasses to ThrottlingURLLoader. +@@ -40,7 +40,7 @@ const base::Feature kForceEnableResetPas + "ForceEnableResetPasswordWebUI", base::FEATURE_DISABLED_BY_DEFAULT}; const base::Feature kSuspiciousSiteTriggerQuotaFeature{ - "SafeBrowsingSuspiciousSiteTriggerQuota", base::FEATURE_ENABLED_BY_DEFAULT}; diff --git a/patches/inox-patchset/0003-disable-autofill-download-manager.patch b/patches/inox-patchset/0003-disable-autofill-download-manager.patch index d2362b14..a14153f6 100644 --- a/patches/inox-patchset/0003-disable-autofill-download-manager.patch +++ b/patches/inox-patchset/0003-disable-autofill-download-manager.patch @@ -1,6 +1,6 @@ --- a/components/autofill/core/browser/autofill_download_manager.cc +++ b/components/autofill/core/browser/autofill_download_manager.cc -@@ -517,45 +517,6 @@ std::tuple AutofillDo +@@ -625,70 +625,6 @@ AutofillDownloadManager::GetRequestURLAn } bool AutofillDownloadManager::StartRequest(FormRequestData request_data) { @@ -11,7 +11,9 @@ - // Get the URL and method to use for this request. - std::string method; - GURL request_url; -- std::tie(request_url, method) = GetRequestURLAndMethod(request_data); +- std::tie(request_url, method) = +- UseApi() ? GetRequestURLAndMethodForApi(request_data) +- : GetRequestURLAndMethod(request_data); - - auto resource_request = std::make_unique(); - resource_request->url = request_url; @@ -26,11 +28,34 @@ - : variations::InIncognito::kNo, - &resource_request->headers); - +- // Set headers specific to the API if using it. +- if (UseApi()) +- // Encode response serialized proto in base64 for safety. +- resource_request->headers.SetHeader(kGoogEncodeResponseIfExecutable, +- "base64"); +- +- // Put API key in request's header if there is. +- if (!api_key_.empty() && +- variations::ShouldAppendVariationHeaders(request_url)) { +- // Make sure that we only send the API key to endpoints trusted by Chrome. +- resource_request->headers.SetHeader(kGoogApiKey, api_key_); +- } +- - auto simple_loader = network::SimpleURLLoader::Create( - std::move(resource_request), - GetNetworkTrafficAnnotation(request_data.request_type)); -- if (method == "POST") -- simple_loader->AttachStringForUpload(request_data.payload, "text/proto"); +- +- // This allows reading the error message within the API response when status +- // is not 200 (e.g., 400). Otherwise, URL loader will not give any content in +- // the response when there is a failure, which makes debugging hard. +- simple_loader->SetAllowHttpErrorResults(true); +- +- if (method == "POST") { +- const std::string content_type = +- UseApi() ? "application/x-protobuf" : "text/proto"; +- // Attach payload data and add data format header. +- simple_loader->AttachStringForUpload(request_data.payload, content_type); +- } - - // Transfer ownership of the loader into url_loaders_. Temporarily hang - // onto the raw pointer to use it as a key and to kick off the request; diff --git a/patches/inox-patchset/0005-disable-default-extensions.patch b/patches/inox-patchset/0005-disable-default-extensions.patch index 747e0717..3986aa64 100644 --- a/patches/inox-patchset/0005-disable-default-extensions.patch +++ b/patches/inox-patchset/0005-disable-default-extensions.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/extensions/component_loader.cc +++ b/chrome/browser/extensions/component_loader.cc -@@ -416,11 +416,6 @@ void ComponentLoader::AddWebStoreApp() { +@@ -414,11 +414,6 @@ void ComponentLoader::AddWebStoreApp() { if (!IsNormalSession()) return; #endif @@ -12,7 +12,7 @@ } scoped_refptr ComponentLoader::CreateExtension( -@@ -463,11 +458,6 @@ void ComponentLoader::AddDefaultComponen +@@ -461,11 +456,6 @@ void ComponentLoader::AddDefaultComponen } #else // defined(OS_CHROMEOS) DCHECK(!skip_session_components); @@ -24,7 +24,7 @@ #endif // defined(OS_CHROMEOS) if (!skip_session_components) { -@@ -543,13 +533,6 @@ void ComponentLoader::AddDefaultComponen +@@ -540,13 +530,6 @@ void ComponentLoader::AddDefaultComponen AddHangoutServicesExtension(); AddImageLoaderExtension(); @@ -52,7 +52,7 @@ { --- a/chrome/browser/extensions/webstore_installer.cc +++ b/chrome/browser/extensions/webstore_installer.cc -@@ -577,28 +577,6 @@ void WebstoreInstaller::DownloadNextPend +@@ -575,28 +575,6 @@ void WebstoreInstaller::DownloadNextPend void WebstoreInstaller::DownloadCrx( const std::string& extension_id, InstallSource source) { @@ -81,7 +81,7 @@ } // http://crbug.com/165634 -@@ -743,28 +721,6 @@ void WebstoreInstaller::UpdateDownloadPr +@@ -742,28 +720,6 @@ void WebstoreInstaller::UpdateDownloadPr } void WebstoreInstaller::StartCrxInstaller(const DownloadItem& download) { @@ -112,7 +112,7 @@ void WebstoreInstaller::ReportFailure(const std::string& error, --- a/chrome/browser/extensions/component_extensions_whitelist/whitelist.cc +++ b/chrome/browser/extensions/component_extensions_whitelist/whitelist.cc -@@ -26,7 +26,6 @@ namespace extensions { +@@ -25,7 +25,6 @@ namespace extensions { bool IsComponentExtensionWhitelisted(const std::string& extension_id) { const char* const kAllowed[] = { diff --git a/patches/inox-patchset/0006-modify-default-prefs.patch b/patches/inox-patchset/0006-modify-default-prefs.patch index 6ec98dd0..8972c2b0 100644 --- a/patches/inox-patchset/0006-modify-default-prefs.patch +++ b/patches/inox-patchset/0006-modify-default-prefs.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/chrome_content_browser_client.cc +++ b/chrome/browser/chrome_content_browser_client.cc -@@ -1029,7 +1029,7 @@ void ChromeContentBrowserClient::Registe +@@ -1031,7 +1031,7 @@ void ChromeContentBrowserClient::Registe void ChromeContentBrowserClient::RegisterProfilePrefs( user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false); @@ -27,9 +27,9 @@ registry->RegisterDictionaryPref(prefs::kAppWindowPlacement); --- a/chrome/browser/net/prediction_options.cc +++ b/chrome/browser/net/prediction_options.cc -@@ -30,7 +30,7 @@ NetworkPredictionStatus CanPrefetchAndPr - return NetworkPredictionStatus::ENABLED; +@@ -32,7 +32,7 @@ NetworkPredictionStatus CanPrefetchAndPr } + return NetworkPredictionStatus::DISABLED_DUE_TO_NETWORK; default: - DCHECK_EQ(NETWORK_PREDICTION_NEVER, network_prediction_options); + //DCHECK_EQ(NETWORK_PREDICTION_NEVER, network_prediction_options); @@ -82,7 +82,7 @@ --- a/components/autofill/core/common/autofill_prefs.cc +++ b/components/autofill/core/common/autofill_prefs.cc -@@ -91,10 +91,10 @@ void RegisterProfilePrefs(user_prefs::Pr +@@ -132,10 +132,10 @@ void RegisterProfilePrefs(user_prefs::Pr prefs::kAutofillBillingCustomerNumber, 0.0, user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF); registry->RegisterBooleanPref( @@ -95,7 +95,7 @@ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); registry->RegisterIntegerPref( prefs::kAutofillLastVersionDeduped, 0, -@@ -103,7 +103,7 @@ void RegisterProfilePrefs(user_prefs::Pr +@@ -148,7 +148,7 @@ void RegisterProfilePrefs(user_prefs::Pr prefs::kAutofillLastVersionDisusedAddressesDeleted, 0, user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); registry->RegisterBooleanPref( @@ -199,7 +199,7 @@ // functionality that are only available in chrome://extensions/ but which --- a/components/safe_browsing/common/safe_browsing_prefs.cc +++ b/components/safe_browsing/common/safe_browsing_prefs.cc -@@ -229,9 +229,9 @@ void RegisterProfilePrefs(PrefRegistrySi +@@ -149,9 +149,9 @@ void RegisterProfilePrefs(PrefRegistrySi registry->RegisterBooleanPref( prefs::kSafeBrowsingSawInterstitialScoutReporting, false); registry->RegisterBooleanPref( @@ -213,7 +213,7 @@ false); --- a/components/password_manager/core/browser/password_manager.cc +++ b/components/password_manager/core/browser/password_manager.cc -@@ -363,10 +363,10 @@ void RecordParsingOnSavingDifference( +@@ -321,10 +321,10 @@ void RecordParsingOnSavingDifference( void PasswordManager::RegisterProfilePrefs( user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref( diff --git a/patches/inox-patchset/0008-restore-classic-ntp.patch b/patches/inox-patchset/0008-restore-classic-ntp.patch index 50628197..d9dfb06f 100644 --- a/patches/inox-patchset/0008-restore-classic-ntp.patch +++ b/patches/inox-patchset/0008-restore-classic-ntp.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/search/search.cc +++ b/chrome/browser/search/search.cc -@@ -187,29 +187,7 @@ struct NewTabURLDetails { +@@ -190,29 +190,7 @@ struct NewTabURLDetails { const GURL local_url(chrome::kChromeSearchLocalNtpUrl); @@ -33,7 +33,7 @@ const GURL url; --- a/components/ntp_snippets/features.cc +++ b/components/ntp_snippets/features.cc -@@ -35,13 +35,13 @@ const base::Feature* const kAllFeatures[ +@@ -34,13 +34,13 @@ const base::Feature* const kAllFeatures[ &kRemoteSuggestionsBackendFeature}; const base::Feature kArticleSuggestionsFeature{ @@ -48,5 +48,5 @@ - base::FEATURE_ENABLED_BY_DEFAULT}; + base::FEATURE_DISABLED_BY_DEFAULT}; - const base::Feature kForeignSessionsSuggestionsFeature{ - "NTPForeignSessionsSuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; + const base::Feature kBreakingNewsPushFeature{"BreakingNewsPush", + base::FEATURE_DISABLED_BY_DEFAULT}; diff --git a/patches/inox-patchset/0009-disable-google-ipv6-probes.patch b/patches/inox-patchset/0009-disable-google-ipv6-probes.patch index 19177e2e..345f4aa5 100644 --- a/patches/inox-patchset/0009-disable-google-ipv6-probes.patch +++ b/patches/inox-patchset/0009-disable-google-ipv6-probes.patch @@ -1,6 +1,6 @@ --- a/net/dns/host_resolver_impl.cc +++ b/net/dns/host_resolver_impl.cc -@@ -115,10 +115,10 @@ const unsigned kMinimumTTLSeconds = kCac +@@ -118,10 +118,10 @@ const unsigned kMinimumTTLSeconds = kCac // cached. const int kIPv6ProbePeriodMs = 1000; @@ -12,5 +12,5 @@ + { 0x20, 0x01, 0x07, 0xfd, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }; - // We use a separate histogram name for each platform to facilitate the - // display of error codes by their symbolic name (since each platform has + enum DnsResolveStatus { + RESOLVE_STATUS_DNS_SUCCESS = 0, diff --git a/patches/inox-patchset/0011-add-duckduckgo-search-engine.patch b/patches/inox-patchset/0011-add-duckduckgo-search-engine.patch index f246b548..68470524 100644 --- a/patches/inox-patchset/0011-add-duckduckgo-search-engine.patch +++ b/patches/inox-patchset/0011-add-duckduckgo-search-engine.patch @@ -30,7 +30,7 @@ --- a/components/search_engines/template_url_prepopulate_data.cc +++ b/components/search_engines/template_url_prepopulate_data.cc -@@ -51,548 +51,548 @@ namespace { +@@ -33,548 +33,548 @@ namespace { // Default (for countries with no better engine set) const PrepopulatedEngine* const engines_default[] = { diff --git a/patches/inox-patchset/0015-disable-update-pings.patch b/patches/inox-patchset/0015-disable-update-pings.patch index 14c7f081..43b0babc 100644 --- a/patches/inox-patchset/0015-disable-update-pings.patch +++ b/patches/inox-patchset/0015-disable-update-pings.patch @@ -1,14 +1,18 @@ --- a/components/component_updater/configurator_impl.cc +++ b/components/component_updater/configurator_impl.cc -@@ -68,14 +68,7 @@ int ConfiguratorImpl::UpdateDelay() cons +@@ -79,18 +79,7 @@ int ConfiguratorImpl::UpdateDelay() cons } std::vector ConfiguratorImpl::UpdateUrl() const { -- if (url_source_override_.is_valid()) { +- if (url_source_override_.is_valid()) - return {GURL(url_source_override_)}; -- } - -- std::vector urls{GURL(kUpdaterDefaultUrl), GURL(kUpdaterFallbackUrl)}; +- std::vector urls = +- base::FeatureList::IsEnabled(kFeatureUpdateClientUseJSON) +- ? std::vector{GURL(kUpdaterJSONDefaultUrl), +- GURL(kUpdaterJSONFallbackUrl)} +- : std::vector{GURL(kUpdaterDefaultUrl), +- GURL(kUpdaterFallbackUrl)}; - if (require_encryption_) - update_client::RemoveUnsecureUrls(&urls); - diff --git a/patches/inox-patchset/0017-disable-new-avatar-menu.patch b/patches/inox-patchset/0017-disable-new-avatar-menu.patch index b79fdfb2..c8a2934c 100644 --- a/patches/inox-patchset/0017-disable-new-avatar-menu.patch +++ b/patches/inox-patchset/0017-disable-new-avatar-menu.patch @@ -1,6 +1,6 @@ --- a/components/signin/core/browser/signin_manager.cc +++ b/components/signin/core/browser/signin_manager.cc -@@ -318,7 +318,7 @@ void SigninManager::OnGoogleServicesUser +@@ -329,7 +329,7 @@ void SigninManager::OnGoogleServicesUser } bool SigninManager::IsSigninAllowed() const { @@ -8,4 +8,4 @@ + return false; } - void SigninManager::OnSigninAllowedPrefChanged() { + void SigninManager::SetSigninAllowed(bool allowed) { diff --git a/patches/inox-patchset/0018-disable-first-run-behaviour.patch b/patches/inox-patchset/0018-disable-first-run-behaviour.patch index 225b3516..1a3e5d85 100644 --- a/patches/inox-patchset/0018-disable-first-run-behaviour.patch +++ b/patches/inox-patchset/0018-disable-first-run-behaviour.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/ui/startup/startup_tab_provider.cc +++ b/chrome/browser/ui/startup/startup_tab_provider.cc -@@ -66,7 +66,7 @@ StartupTabProviderImpl::StandardOnboardi +@@ -61,7 +61,7 @@ bool ProfileHasOtherTabbedBrowser(Profil StartupTabs StartupTabProviderImpl::GetOnboardingTabs(Profile* profile) const { // Onboarding content has not been launched on Chrome OS. diff --git a/patches/inox-patchset/chromium-exclude_unwind_tables.patch b/patches/inox-patchset/chromium-exclude_unwind_tables.patch index de903706..0e4b3e3f 100644 --- a/patches/inox-patchset/chromium-exclude_unwind_tables.patch +++ b/patches/inox-patchset/chromium-exclude_unwind_tables.patch @@ -1,6 +1,6 @@ --- a/build/config/compiler/compiler.gni +++ b/build/config/compiler/compiler.gni -@@ -72,19 +72,19 @@ declare_args() { +@@ -69,19 +69,19 @@ declare_args() { # It's currently not possible to collect AFDO profiles on anything but # x86{,_64}. using_mismatched_sample_profile = current_cpu != "x64" && current_cpu != "x86" diff --git a/patches/inox-patchset/chromium-skia-harmony.patch b/patches/inox-patchset/chromium-skia-harmony.patch index 7ab411d4..0272dc34 100644 --- a/patches/inox-patchset/chromium-skia-harmony.patch +++ b/patches/inox-patchset/chromium-skia-harmony.patch @@ -1,77 +1,13 @@ --- a/third_party/skia/src/ports/SkFontHost_FreeType.cpp +++ b/third_party/skia/src/ports/SkFontHost_FreeType.cpp -@@ -121,8 +121,6 @@ public: +@@ -121,8 +121,8 @@ public: : fGetVarDesignCoordinates(nullptr) , fGetVarAxisFlags(nullptr) , fLibrary(nullptr) - , fIsLCDSupported(false) - , fLCDExtra(0) ++ , fIsLCDSupported(true) ++ , fLCDExtra(2) { if (FT_New_Library(&gFTMemory, &fLibrary)) { return; -@@ -182,12 +180,7 @@ public: - } - #endif - -- // Setup LCD filtering. This reduces color fringes for LCD smoothed glyphs. -- // The default has changed over time, so this doesn't mean the same thing to all users. -- if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) { -- fIsLCDSupported = true; -- fLCDExtra = 2; //Using a filter adds one full pixel to each side. -- } -+ FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT); - } - ~FreeTypeLibrary() { - if (fLibrary) { -@@ -196,8 +189,6 @@ public: - } - - FT_Library library() { return fLibrary; } -- bool isLCDSupported() { return fIsLCDSupported; } -- int lcdExtra() { return fLCDExtra; } - - // FT_Get_{MM,Var}_{Blend,Design}_Coordinates were added in FreeType 2.7.1. - // Prior to this there was no way to get the coordinates out of the FT_Face. -@@ -214,8 +205,6 @@ public: - - private: - FT_Library fLibrary; -- bool fIsLCDSupported; -- int fLCDExtra; - - // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0. - // The following platforms provide FreeType of at least 2.4.0. -@@ -713,17 +702,6 @@ void SkTypeface_FreeType::onFilterRec(Sk - rec->fTextSize = SkIntToScalar(1 << 14); - } - -- if (isLCD(*rec)) { -- // TODO: re-work so that FreeType is set-up and selected by the SkFontMgr. -- SkAutoMutexAcquire ama(gFTMutex); -- ref_ft_library(); -- if (!gFTLibrary->isLCDSupported()) { -- // If the runtime Freetype library doesn't support LCD, disable it here. -- rec->fMaskFormat = SkMask::kA8_Format; -- } -- unref_ft_library(); -- } -- - SkPaint::Hinting h = rec->getHinting(); - if (SkPaint::kFull_Hinting == h && !isLCD(*rec)) { - // collapse full->normal hinting if we're not doing LCD -@@ -1137,11 +1115,11 @@ bool SkScalerContext_FreeType::getCBoxFo - void SkScalerContext_FreeType::updateGlyphIfLCD(SkGlyph* glyph) { - if (glyph->fMaskFormat == SkMask::kLCD16_Format) { - if (fLCDIsVert) { -- glyph->fHeight += gFTLibrary->lcdExtra(); -- glyph->fTop -= gFTLibrary->lcdExtra() >> 1; -+ glyph->fHeight += 2; -+ glyph->fTop -= 1; - } else { -- glyph->fWidth += gFTLibrary->lcdExtra(); -- glyph->fLeft -= gFTLibrary->lcdExtra() >> 1; -+ glyph->fWidth += 2; -+ glyph->fLeft -= 1; - } - } - } diff --git a/patches/inox-patchset/chromium-vaapi-r18.patch b/patches/inox-patchset/chromium-vaapi-r18.patch deleted file mode 100644 index c3462510..00000000 --- a/patches/inox-patchset/chromium-vaapi-r18.patch +++ /dev/null @@ -1,554 +0,0 @@ -From e95d904578c265a84f117d7d5eff598423f9283d Mon Sep 17 00:00:00 2001 -From: Daniel Charles -Date: Fri, 09 Feb 2018 14:39:27 -0800 -Subject: [PATCH] Enable VAVDA, VAVEA and VAJDA on linux with VAAPI only - -This patch contains all the changes necessary to use VA-API along with -vaapi-driver to run all media use cases supported with hardware acceleration. - -It is intended to remain as experimental accessible from chrome://flags on linux. -It requires libva/intel-vaapi-driver to be installed on the system path where -chrome is executed. Other drivers could be tested if available. Flags are -kept independent for linux, where this feature has to be enabled before -actually using it. This should not change how other OSes use the flags -already, the new flags will show at the buttom on the section of unavailable -experiments - -The changes cover a range of compiler pre-processor flags to enable the stack. -It moves the presandbox operations to the vaapi_wrapper class as the hook function -is available there. vaInit will open driver on the correct installed folder. - -chrome flags consolidtation into only two flags for linux. Mjpeg and accelerated -video are used. The other flags are kept for ChromeOS and other OSes. - -Developer testing was made on skylake hardware, ChromeOS and Ubuntu. - -BUG=NONE -TEST=subjective testing with VAVDA,VAVEA and VAJDA, autotest for encoder - and decoder hardware accelerated - have libva/intel-vaapi-driver installed and not installed in the system - repeat on different hardware families - -Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel -Change-Id: Ifbbf5c9e5221a8b5733fc6d4d0cf984a1f103171 -Signed-off-by: Daniel Charles ---- - ---- a/chrome/browser/about_flags.cc -+++ b/chrome/browser/about_flags.cc -@@ -1460,12 +1460,14 @@ const FeatureEntry kFeatureEntries[] = { - {"ui-disable-partial-swap", flag_descriptions::kUiPartialSwapName, - flag_descriptions::kUiPartialSwapDescription, kOsAll, - SINGLE_DISABLE_VALUE_TYPE(switches::kUIDisablePartialSwap)}, -+#if defined(OS_CHROMEOS) || defined(OS_ANDROID) - {"disable-webrtc-hw-decoding", flag_descriptions::kWebrtcHwDecodingName, - flag_descriptions::kWebrtcHwDecodingDescription, kOsAndroid | kOsCrOS, - SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWebRtcHWDecoding)}, - {"disable-webrtc-hw-encoding", flag_descriptions::kWebrtcHwEncodingName, - flag_descriptions::kWebrtcHwEncodingDescription, kOsAndroid | kOsCrOS, - SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWebRtcHWEncoding)}, -+#endif - {"enable-webrtc-hw-h264-encoding", - flag_descriptions::kWebrtcHwH264EncodingName, - flag_descriptions::kWebrtcHwH264EncodingDescription, kOsAndroid | kOsCrOS, -@@ -1850,6 +1852,13 @@ const FeatureEntry kFeatureEntries[] = { - flag_descriptions::kSingleProcessMashDescription, kOsCrOS, - FEATURE_VALUE_TYPE(features::kSingleProcessMash)}, - #endif // OS_CHROMEOS -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) -+ { -+ "enable-accelerated-video", flag_descriptions::kAcceleratedVideoName, -+ flag_descriptions::kAcceleratedVideoDescription, kOsLinux, -+ SINGLE_VALUE_TYPE(switches::kEnableAcceleratedVideo), -+ }, -+#else - { - "disable-accelerated-video-decode", - flag_descriptions::kAcceleratedVideoDecodeName, -@@ -1857,6 +1866,7 @@ const FeatureEntry kFeatureEntries[] = { - kOsMac | kOsWin | kOsCrOS | kOsAndroid, - SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedVideoDecode), - }, -+#endif - #if defined(OS_WIN) - {"enable-hdr", flag_descriptions::kEnableHDRName, - flag_descriptions::kEnableHDRDescription, kOsWin, -@@ -2513,12 +2523,17 @@ const FeatureEntry kFeatureEntries[] = { - FEATURE_VALUE_TYPE(service_manager::features::kXRSandbox)}, - #endif // ENABLE_ISOLATED_XR_SERVICE - #endif // ENABLE_VR --#if defined(OS_CHROMEOS) -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) -+ {"enable-accelerated-mjpeg-decode", -+ flag_descriptions::kAcceleratedMjpegDecodeName, -+ flag_descriptions::kAcceleratedMjpegDecodeDescription, kOsLinux, -+ SINGLE_VALUE_TYPE(switches::kEnableAcceleratedMjpegDecode)}, -+#elif defined(OS_CHROMEOS) - {"disable-accelerated-mjpeg-decode", - flag_descriptions::kAcceleratedMjpegDecodeName, - flag_descriptions::kAcceleratedMjpegDecodeDescription, kOsCrOS, - SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedMjpegDecode)}, --#endif // OS_CHROMEOS -+#endif - {"v8-cache-options", flag_descriptions::kV8CacheOptionsName, - flag_descriptions::kV8CacheOptionsDescription, kOsAll, - MULTI_VALUE_TYPE(kV8CacheOptionsChoices)}, ---- a/chrome/browser/chromeos/login/chrome_restart_request.cc -+++ b/chrome/browser/chromeos/login/chrome_restart_request.cc -@@ -19,6 +19,7 @@ - #include "base/sys_info.h" - #include "base/timer/timer.h" - #include "base/values.h" -+#include "build/build_config.h" - #include "cc/base/switches.h" - #include "chrome/browser/browser_process.h" - #include "chrome/browser/chromeos/boot_times_recorder.h" -@@ -84,9 +85,14 @@ void DeriveCommandLine(const GURL& start - ::switches::kDisable2dCanvasImageChromium, - ::switches::kDisableAccelerated2dCanvas, - ::switches::kDisableAcceleratedJpegDecoding, -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) -+ ::switches::kEnableAcceleratedMjpegDecode, -+ ::switches::kEnableAcceleratedVideo, -+#else - ::switches::kDisableAcceleratedMjpegDecode, - ::switches::kDisableAcceleratedVideoDecode, - ::switches::kDisableAcceleratedVideoEncode, -+#endif - ::switches::kDisableBlinkFeatures, - ::switches::kDisableCastStreamingHWEncoding, - ::switches::kDisableGpu, -@@ -160,8 +166,10 @@ void DeriveCommandLine(const GURL& start - ::switches::kEnableWebGLImageChromium, - ::switches::kEnableWebVR, - ::switches::kEnableUnsafeWebGPU, -+#if (defined(OS_CHROMEOS) || defined(OS_ANDROID)) - ::switches::kDisableWebRtcHWDecoding, - ::switches::kDisableWebRtcHWEncoding, -+#endif - ::switches::kOzonePlatform, - ash::switches::kAshEnableTabletMode, - ash::switches::kAshEnableWaylandServer, ---- a/chrome/browser/flag_descriptions.cc -+++ b/chrome/browser/flag_descriptions.cc -@@ -14,6 +14,13 @@ const char kAccelerated2dCanvasDescripti - "Enables the use of the GPU to perform 2d canvas rendering instead of " - "using software rendering."; - -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) -+const char kAcceleratedVideoName[] = "Hardware-accelerated video"; -+const char kAcceleratedVideoDescription[] = -+ "Hardware-accelerated video where VA-API driver is installed on the" -+ "system."; -+#endif -+ - const char kAcceleratedVideoDecodeName[] = "Hardware-accelerated video decode"; - const char kAcceleratedVideoDecodeDescription[] = - "Hardware-accelerated video decode where available."; -@@ -2069,6 +2076,7 @@ const char kWebrtcHybridAgcName[] = "Web - const char kWebrtcHybridAgcDescription[] = - "WebRTC Agc2 digital adaptation with Agc1 analog adaptation."; - -+#if defined(OS_CHROMEOS) || defined(OS_ANDROID) - const char kWebrtcHwDecodingName[] = "WebRTC hardware video decoding"; - const char kWebrtcHwDecodingDescription[] = - "Support in WebRTC for decoding video streams using platform hardware."; -@@ -2076,6 +2084,7 @@ const char kWebrtcHwDecodingDescription[ - const char kWebrtcHwEncodingName[] = "WebRTC hardware video encoding"; - const char kWebrtcHwEncodingDescription[] = - "Support in WebRTC for encoding video streams using platform hardware."; -+#endif - - const char kWebrtcHwH264EncodingName[] = "WebRTC hardware h264 video encoding"; - const char kWebrtcHwH264EncodingDescription[] = -@@ -3002,14 +3011,16 @@ const char kTextSuggestionsTouchBarDescr - - // Chrome OS ------------------------------------------------------------------- - --#if defined(OS_CHROMEOS) -+#if defined(OS_CHROMEOS) || (defined(OS_LINUX) && !defined(OS_ANDROID)) - - const char kAcceleratedMjpegDecodeName[] = - "Hardware-accelerated mjpeg decode for captured frame"; - const char kAcceleratedMjpegDecodeDescription[] = - "Enable hardware-accelerated mjpeg decode for captured frame where " - "available."; -+#endif - -+#if defined(OS_CHROMEOS) - const char kAllowTouchpadThreeFingerClickName[] = "Touchpad three-finger-click"; - const char kAllowTouchpadThreeFingerClickDescription[] = - "Enables touchpad three-finger-click as middle button."; ---- a/chrome/browser/flag_descriptions.h -+++ b/chrome/browser/flag_descriptions.h -@@ -37,6 +37,10 @@ namespace flag_descriptions { - extern const char kAccelerated2dCanvasName[]; - extern const char kAccelerated2dCanvasDescription[]; - -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) -+extern const char kAcceleratedVideoName[]; -+extern const char kAcceleratedVideoDescription[]; -+#endif - extern const char kAcceleratedVideoDecodeName[]; - extern const char kAcceleratedVideoDecodeDescription[]; - -@@ -1827,13 +1831,17 @@ extern const char kPermissionPromptPersi - - #endif // defined(OS_MACOSX) - --// Chrome OS ------------------------------------------------------------------ -- --#if defined(OS_CHROMEOS) -+#if defined(OS_CHROMEOS) || (defined(OS_LINUX) && !defined(OS_ANDROID)) - - extern const char kAcceleratedMjpegDecodeName[]; - extern const char kAcceleratedMjpegDecodeDescription[]; - -+#endif -+ -+// Chrome OS ------------------------------------------------------------------ -+ -+#if defined(OS_CHROMEOS) -+ - extern const char kAllowTouchpadThreeFingerClickName[]; - extern const char kAllowTouchpadThreeFingerClickDescription[]; - ---- a/content/browser/gpu/compositor_util.cc -+++ b/content/browser/gpu/compositor_util.cc -@@ -150,7 +150,11 @@ const GpuFeatureData GetGpuFeatureData( - {"video_decode", - SafeGetFeatureStatus(gpu_feature_info, - gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) -+ !command_line.HasSwitch(switches::kEnableAcceleratedVideo), -+#else - command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode), -+#endif - "Accelerated video decode has been disabled, either via blacklist, " - "about:flags or the command line.", - true, true}, ---- a/content/browser/gpu/gpu_process_host.cc -+++ b/content/browser/gpu/gpu_process_host.cc -@@ -211,7 +211,9 @@ static const char* const kSwitchNames[] - switches::kDisableLogging, - switches::kDisableShaderNameHashing, - switches::kDisableSkiaRuntimeOpts, -+#if !defined(OS_LINUX) - switches::kDisableWebRtcHWEncoding, -+#endif - #if defined(OS_WIN) - switches::kEnableAcceleratedVpxDecode, - #endif ---- a/content/browser/renderer_host/media/video_capture_browsertest.cc -+++ b/content/browser/renderer_host/media/video_capture_browsertest.cc -@@ -166,8 +166,13 @@ class VideoCaptureBrowserTest : public C - base::CommandLine::ForCurrentProcess()->AppendSwitch( - switches::kUseFakeJpegDecodeAccelerator); - } else { -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) -+ base::CommandLine::ForCurrentProcess()->AppendSwitch( -+ switches::kEnableAcceleratedMjpegDecode); -+#else - base::CommandLine::ForCurrentProcess()->AppendSwitch( - switches::kDisableAcceleratedMjpegDecode); -+#endif - } - } - ---- a/content/browser/renderer_host/render_process_host_impl.cc -+++ b/content/browser/renderer_host/render_process_host_impl.cc -@@ -2996,7 +2996,11 @@ void RenderProcessHostImpl::PropagateBro - switches::kDefaultTileHeight, - switches::kDisable2dCanvasImageChromium, - switches::kDisableAcceleratedJpegDecoding, -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+ switches::kEnableAcceleratedVideo, -+#else - switches::kDisableAcceleratedVideoDecode, -+#endif - switches::kDisableBackgroundTasks, - switches::kDisableBackgroundTimerThrottling, - switches::kDisableBreakpad, -@@ -3136,8 +3140,10 @@ void RenderProcessHostImpl::PropagateBro - #if BUILDFLAG(ENABLE_RUNTIME_MEDIA_RENDERER_SELECTION) - switches::kDisableMojoRenderer, - #endif -+#if !defined(OS_LINUX) || defined(OS_CHROMEOS) - switches::kDisableWebRtcHWDecoding, - switches::kDisableWebRtcHWEncoding, -+#endif - switches::kEnableWebRtcSrtpAesGcm, - switches::kEnableWebRtcSrtpEncryptedHeaders, - switches::kEnableWebRtcStunOrigin, ---- a/content/browser/webrtc/webrtc_media_recorder_browsertest.cc -+++ b/content/browser/webrtc/webrtc_media_recorder_browsertest.cc -@@ -66,7 +66,12 @@ class MAYBE_WebRtcMediaRecorderTest - return; - // This flag is also used for encoding, https://crbug.com/616640. - base::CommandLine::ForCurrentProcess()->AppendSwitch( -- switches::kDisableAcceleratedVideoDecode); -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+ switches::kEnableAcceleratedVideo -+#else -+ switches::kDisableAcceleratedVideoDecode -+#endif -+ ); - } - - private: ---- a/content/gpu/BUILD.gn -+++ b/content/gpu/BUILD.gn -@@ -134,4 +134,8 @@ target(link_target_type, "gpu_sources") - (!is_chromecast || is_cast_desktop_build)) { - configs += [ "//build/config/linux/dri" ] - } -+ -+ if (is_desktop_linux) { -+ public_configs = [ "//media/gpu:libva_config" ] -+ } - } ---- a/content/gpu/gpu_main.cc -+++ b/content/gpu/gpu_main.cc -@@ -284,7 +284,7 @@ int GpuMain(const MainFunctionParams& pa - - base::PlatformThread::SetName("CrGpuMain"); - --#if defined(OS_ANDROID) || defined(OS_CHROMEOS) -+#if defined(OS_LINUX) - // Set thread priority before sandbox initialization. - base::PlatformThread::SetCurrentThreadPriority(base::ThreadPriority::DISPLAY); - #endif -@@ -317,7 +317,7 @@ int GpuMain(const MainFunctionParams& pa - GetContentClient()->SetGpuInfo(gpu_init->gpu_info()); - - base::ThreadPriority io_thread_priority = base::ThreadPriority::NORMAL; --#if defined(OS_ANDROID) || defined(OS_CHROMEOS) -+#if defined(OS_LINUX) - io_thread_priority = base::ThreadPriority::DISPLAY; - #endif - ---- a/content/public/browser/gpu_utils.cc -+++ b/content/public/browser/gpu_utils.cc -@@ -72,9 +72,17 @@ const gpu::GpuPreferences GetGpuPreferen - gpu_preferences.in_process_gpu = - command_line->HasSwitch(switches::kInProcessGPU); - gpu_preferences.disable_accelerated_video_decode = -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+ !command_line->HasSwitch(switches::kEnableAcceleratedVideo); -+#else - command_line->HasSwitch(switches::kDisableAcceleratedVideoDecode); -+#endif - gpu_preferences.disable_accelerated_video_encode = -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+ !command_line->HasSwitch(switches::kEnableAcceleratedVideo); -+#else - command_line->HasSwitch(switches::kDisableAcceleratedVideoEncode); -+#endif - #if defined(OS_WIN) - uint32_t enable_accelerated_vpx_decode_val = - gpu::GpuPreferences::VPX_VENDOR_MICROSOFT; ---- a/content/public/common/content_switches.cc -+++ b/content/public/common/content_switches.cc -@@ -69,6 +69,11 @@ const char kDisable3DAPIs[] - // Disable gpu-accelerated 2d canvas. - const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; - -+#if defined(OS_LINUX) -+// Enables hardware acceleration of video for Linux only. VA-API driver -+// is required to be present on the system installation. -+const char kEnableAcceleratedVideo[] = "enable-accelerated-video"; -+#endif - // Disables hardware acceleration of video decode, where available. - const char kDisableAcceleratedVideoDecode[] = - "disable-accelerated-video-decode"; -@@ -852,11 +857,13 @@ const char kWaitForDebuggerChildren[] - // ignores this switch on its stable and beta channels. - const char kDisableWebRtcEncryption[] = "disable-webrtc-encryption"; - -+#if defined(OS_CHROMEOS) - // Disables HW decode acceleration for WebRTC. - const char kDisableWebRtcHWDecoding[] = "disable-webrtc-hw-decoding"; - - // Disables HW encode acceleration for WebRTC. - const char kDisableWebRtcHWEncoding[] = "disable-webrtc-hw-encoding"; -+#endif - - // Enables negotiation of GCM cipher suites from RFC 7714 for SRTP in WebRTC. - // See https://tools.ietf.org/html/rfc7714 for further information. ---- a/content/public/common/content_switches.h -+++ b/content/public/common/content_switches.h -@@ -103,6 +103,9 @@ CONTENT_EXPORT extern const char kDisabl - CONTENT_EXPORT extern const char kDomAutomationController[]; - extern const char kDisable2dCanvasClipAntialiasing[]; - CONTENT_EXPORT extern const char kDumpBlinkRuntimeCallStats[]; -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) -+CONTENT_EXPORT extern const char kEnableAcceleratedVideo[]; -+#endif - CONTENT_EXPORT extern const char kEnableAccessibilityObjectModel[]; - CONTENT_EXPORT extern const char kEnableAggressiveDOMStorageFlushing[]; - CONTENT_EXPORT extern const char kEnableAutomation[]; -@@ -239,8 +242,10 @@ CONTENT_EXPORT extern const char kValida - CONTENT_EXPORT extern const char kWaitForDebuggerChildren[]; - - CONTENT_EXPORT extern const char kDisableWebRtcEncryption[]; -+#if defined(OS_CHROMEOS) - CONTENT_EXPORT extern const char kDisableWebRtcHWDecoding[]; - CONTENT_EXPORT extern const char kDisableWebRtcHWEncoding[]; -+#endif - CONTENT_EXPORT extern const char kEnableWebRtcSrtpAesGcm[]; - CONTENT_EXPORT extern const char kEnableWebRtcSrtpEncryptedHeaders[]; - CONTENT_EXPORT extern const char kEnableWebRtcStunOrigin[]; ---- a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc -+++ b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc -@@ -295,10 +295,18 @@ void PeerConnectionDependencyFactory::In - - const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); - if (gpu_factories && gpu_factories->IsGpuVideoAcceleratorEnabled()) { -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+ if (cmd_line->HasSwitch(switches::kEnableAcceleratedVideo)) -+#else - if (!cmd_line->HasSwitch(switches::kDisableWebRtcHWDecoding)) -+#endif - decoder_factory.reset(new RTCVideoDecoderFactory(gpu_factories)); - -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+ if (cmd_line->HasSwitch(switches::kEnableAcceleratedVideo)) -+#else - if (!cmd_line->HasSwitch(switches::kDisableWebRtcHWEncoding)) -+#endif - encoder_factory.reset(new RTCVideoEncoderFactory(gpu_factories)); - } - ---- a/content/renderer/render_thread_impl.cc -+++ b/content/renderer/render_thread_impl.cc -@@ -1325,7 +1325,11 @@ media::GpuVideoAcceleratorFactories* Ren - kGpuStreamPriorityMedia); - - const bool enable_video_accelerator = -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+ cmd_line->HasSwitch(switches::kEnableAcceleratedVideo) && -+#else - !cmd_line->HasSwitch(switches::kDisableAcceleratedVideoDecode) && -+#endif - (gpu_channel_host->gpu_feature_info() - .status_values[gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE] == - gpu::kGpuFeatureStatusEnabled); ---- a/gpu/config/software_rendering_list.json -+++ b/gpu/config/software_rendering_list.json -@@ -370,17 +370,6 @@ - ] - }, - { -- "id": 48, -- "description": "Accelerated video decode is unavailable on Linux", -- "cr_bugs": [137247], -- "os": { -- "type": "linux" -- }, -- "features": [ -- "accelerated_video_decode" -- ] -- }, -- { - "id": 50, - "description": "Disable VMware software renderer on older Mesa", - "cr_bugs": [145531, 332596, 571899, 629434], ---- a/media/gpu/BUILD.gn -+++ b/media/gpu/BUILD.gn -@@ -508,6 +508,14 @@ if (use_v4l2_codec || use_vaapi || is_ma - } - } - -+if (is_desktop_linux && use_vaapi) { -+ import("//build/config/linux/pkg_config.gni") -+ -+ pkg_config("libva_config") { -+ packages = [ "libva" ] -+ } -+} -+ - if (use_vaapi) { - test("jpeg_encode_accelerator_unittest") { - deps = [ -@@ -578,6 +586,10 @@ if (is_chromeos || is_linux) { - if (use_ozone) { - deps += [ "//ui/ozone" ] - } -+ -+ if (is_desktop_linux) { -+ public_configs = [ ":libva_config" ] -+ } - } - } - ---- a/media/base/media_switches.cc -+++ b/media/base/media_switches.cc -@@ -108,10 +108,15 @@ const char kUseFileForFakeAudioCapture[] - // accelerator hardware to be present. - const char kUseFakeJpegDecodeAccelerator[] = "use-fake-jpeg-decode-accelerator"; - -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+// Enable hardware accelerated mjpeg decode on linux -+const char kEnableAcceleratedMjpegDecode[] = "enable-accelerated-mjpeg-decode"; -+#else - // Disable hardware acceleration of mjpeg decode for captured frame, where - // available. - const char kDisableAcceleratedMjpegDecode[] = - "disable-accelerated-mjpeg-decode"; -+#endif - - // When running tests on a system without the required hardware or libraries, - // this flag will cause the tests to fail. Otherwise, they silently succeed. -@@ -487,15 +492,22 @@ const base::Feature kPreloadMediaEngagem - #endif - - bool IsVideoCaptureAcceleratedJpegDecodingEnabled() { -+ -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) -+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch( -+ switches::kEnableAcceleratedMjpegDecode) -+#else - if (base::CommandLine::ForCurrentProcess()->HasSwitch( -- switches::kDisableAcceleratedMjpegDecode)) { -+ switches::kDisableAcceleratedMjpegDecode) -+#endif -+ ) { - return false; - } - if (base::CommandLine::ForCurrentProcess()->HasSwitch( - switches::kUseFakeJpegDecodeAccelerator)) { - return true; - } --#if defined(OS_CHROMEOS) -+#if !defined(OS_ANDROID) && defined(OS_LINUX) - return true; - #endif - return false; ---- a/media/base/media_switches.h -+++ b/media/base/media_switches.h -@@ -64,7 +64,11 @@ MEDIA_EXPORT extern const char kUseFakeD - MEDIA_EXPORT extern const char kUseFileForFakeVideoCapture[]; - MEDIA_EXPORT extern const char kUseFileForFakeAudioCapture[]; - MEDIA_EXPORT extern const char kUseFakeJpegDecodeAccelerator[]; -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+MEDIA_EXPORT extern const char kEnableAcceleratedMjpegDecode[]; -+#else - MEDIA_EXPORT extern const char kDisableAcceleratedMjpegDecode[]; -+#endif - - MEDIA_EXPORT extern const char kRequireAudioHardwareForTesting[]; - MEDIA_EXPORT extern const char kMuteAudio[]; ---- a/content/browser/utility_process_host.cc -+++ b/content/browser/utility_process_host.cc -@@ -356,7 +356,11 @@ bool UtilityProcessHost::StartProcess() - switches::kOverrideUseSoftwareGLForTests, - switches::kOverrideEnabledCdmInterfaceVersion, - switches::kProxyServer, -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) -+ switches::kEnableAcceleratedMjpegDecode, -+#else - switches::kDisableAcceleratedMjpegDecode, -+#endif - switches::kUseFakeDeviceForMediaStream, - switches::kUseFakeJpegDecodeAccelerator, - switches::kUseFileForFakeVideoCapture, diff --git a/patches/inox-patchset/clang-compiler-flags.patch b/patches/inox-patchset/clang-compiler-flags.patch deleted file mode 100644 index c1ad4b7a..00000000 --- a/patches/inox-patchset/clang-compiler-flags.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- a/build/config/compiler/BUILD.gn -+++ b/build/config/compiler/BUILD.gn -@@ -1502,9 +1502,6 @@ config("default_warnings") { - # Ignore warnings about MSVC optimization pragmas. - # TODO(thakis): Only for no_chromium_code? http://crbug.com/505314 - "-Wno-ignored-pragma-optimize", -- -- # TODO(hans): https://crbug.com/890307 -- "-Wno-defaulted-function-deleted", - ] - } - } diff --git a/patches/inox-patchset/enable-vaapi.patch b/patches/inox-patchset/enable-vaapi.patch new file mode 100644 index 00000000..932cf521 --- /dev/null +++ b/patches/inox-patchset/enable-vaapi.patch @@ -0,0 +1,158 @@ +From abc7295ca1653c85472916909f0eb76e28e79a58 Mon Sep 17 00:00:00 2001 +From: Akarshan Biswas +Date: Thu, 24 Jan 2019 12:45:29 +0530 +Subject: [PATCH] Enable mojo with VDA2 on Linux + +--- + chrome/browser/about_flags.cc | 8 ++++---- + chrome/browser/flag_descriptions.cc | 9 +++++++-- + chrome/browser/flag_descriptions.h | 10 ++++++++-- + gpu/config/software_rendering_list.json | 3 ++- + media/media_options.gni | 9 ++++++--- + media/mojo/services/gpu_mojo_media_client.cc | 4 ++-- + 6 files changed, 29 insertions(+), 14 deletions(-) + +--- a/chrome/browser/about_flags.cc ++++ b/chrome/browser/about_flags.cc +@@ -1771,7 +1771,7 @@ const FeatureEntry kFeatureEntries[] = { + "disable-accelerated-video-decode", + flag_descriptions::kAcceleratedVideoDecodeName, + flag_descriptions::kAcceleratedVideoDecodeDescription, +- kOsMac | kOsWin | kOsCrOS | kOsAndroid, ++ kOsMac | kOsWin | kOsCrOS | kOsAndroid | kOsLinux, + SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedVideoDecode), + }, + #if defined(OS_WIN) +@@ -2402,12 +2402,12 @@ const FeatureEntry kFeatureEntries[] = { + FEATURE_VALUE_TYPE(service_manager::features::kXRSandbox)}, + #endif // ENABLE_ISOLATED_XR_SERVICE + #endif // ENABLE_VR +-#if defined(OS_CHROMEOS) ++#if defined(OS_CHROMEOS) || defined(OS_LINUX) + {"disable-accelerated-mjpeg-decode", + flag_descriptions::kAcceleratedMjpegDecodeName, +- flag_descriptions::kAcceleratedMjpegDecodeDescription, kOsCrOS, ++ flag_descriptions::kAcceleratedMjpegDecodeDescription, kOsCrOS | kOsLinux, + SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedMjpegDecode)}, +-#endif // OS_CHROMEOS ++#endif // OS_CHROMEOS // OS_LINUX + {"v8-cache-options", flag_descriptions::kV8CacheOptionsName, + flag_descriptions::kV8CacheOptionsDescription, kOsAll, + MULTI_VALUE_TYPE(kV8CacheOptionsChoices)}, +--- a/chrome/browser/flag_descriptions.cc ++++ b/chrome/browser/flag_descriptions.cc +@@ -3089,15 +3089,20 @@ const char kTextSuggestionsTouchBarDescr + + #endif + +-// Chrome OS ------------------------------------------------------------------- ++// Chrome OS Linux------------------------------------------------------------------- + +-#if defined(OS_CHROMEOS) ++#if defined(OS_CHROMEOS) || (defined(OS_LINUX) && !defined(OS_ANDROID)) + + const char kAcceleratedMjpegDecodeName[] = + "Hardware-accelerated mjpeg decode for captured frame"; + const char kAcceleratedMjpegDecodeDescription[] = + "Enable hardware-accelerated mjpeg decode for captured frame where " + "available."; ++#endif ++ ++// Chrome OS -------------------------------------------------- ++ ++#if defined(OS_CHROMEOS) + + const char kAllowTouchpadThreeFingerClickName[] = "Touchpad three-finger-click"; + const char kAllowTouchpadThreeFingerClickDescription[] = +--- a/chrome/browser/flag_descriptions.h ++++ b/chrome/browser/flag_descriptions.h +@@ -1849,13 +1849,19 @@ extern const char kPermissionPromptPersi + + #endif // defined(OS_MACOSX) + +-// Chrome OS ------------------------------------------------------------------ ++// Chrome OS and Linux ------------------------------------------------------------------ + +-#if defined(OS_CHROMEOS) ++#if defined(OS_CHROMEOS) || (defined(OS_LINUX) && !defined(OS_ANDROID)) + + extern const char kAcceleratedMjpegDecodeName[]; + extern const char kAcceleratedMjpegDecodeDescription[]; + ++#endif // defined(OS_CHROMEOS) || (defined(OS_LINUX) && !defined(OS_ANDROID)) ++ ++// Chrome OS ------------------------------------------------------------------------ ++ ++#if defined(OS_CHROMEOS) ++ + extern const char kAllowTouchpadThreeFingerClickName[]; + extern const char kAllowTouchpadThreeFingerClickDescription[]; + +--- a/gpu/config/software_rendering_list.json ++++ b/gpu/config/software_rendering_list.json +@@ -371,11 +371,12 @@ + }, + { + "id": 48, +- "description": "Accelerated video decode is unavailable on Linux", ++ "description": "Accelerated VA-API video decode is not supported on NVIDIA platforms", + "cr_bugs": [137247], + "os": { + "type": "linux" + }, ++ "vendor_id": "0x10de", + "features": [ + "accelerated_video_decode" + ] +--- a/media/media_options.gni ++++ b/media/media_options.gni +@@ -5,6 +5,7 @@ + import("//build/config/chrome_build.gni") + import("//build/config/chromecast_build.gni") + import("//build/config/features.gni") ++import("//media/gpu/args.gni") + import("//testing/libfuzzer/fuzzer_test.gni") + + # Do not expand this list without double-checking with OWNERS, this is a list of +@@ -129,8 +130,9 @@ declare_args() { + # |mojo_media_services|). When enabled, selected mojo paths will be enabled in + # the media pipeline and corresponding services will hosted in the selected + # remote process (e.g. "utility" process, see |mojo_media_host|). +- enable_mojo_media = is_android || is_chromecast || is_chromeos || is_mac || +- is_win || enable_library_cdms ++ enable_mojo_media = ++ is_android || is_chromecast || is_chromeos || is_mac || is_win || ++ enable_library_cdms || (is_desktop_linux && use_vaapi) + + # Enable the TestMojoMediaClient to be used in mojo MediaService. This is for + # testing only and will override the default platform MojoMediaClient, if any. +@@ -200,7 +202,8 @@ if (enable_mojo_media) { + ] + _default_mojo_media_host = "gpu" + } +- } else if (is_chromeos || is_mac || is_win) { ++ } else if (is_chromeos || is_mac || is_win || ++ (is_desktop_linux && use_vaapi)) { + _default_mojo_media_services = [ "video_decoder" ] + _default_mojo_media_host = "gpu" + } +--- a/media/mojo/services/gpu_mojo_media_client.cc ++++ b/media/mojo/services/gpu_mojo_media_client.cc +@@ -54,7 +54,7 @@ namespace media { + namespace { + + #if defined(OS_ANDROID) || defined(OS_CHROMEOS) || defined(OS_MACOSX) || \ +- defined(OS_WIN) ++ defined(OS_WIN) || defined(OS_LINUX) + gpu::CommandBufferStub* GetCommandBufferStub( + base::WeakPtr media_gpu_channel_manager, + base::UnguessableToken channel_token, +@@ -148,7 +148,7 @@ std::unique_ptr GpuMojoMed + android_overlay_factory_cb_, std::move(request_overlay_info_cb), + std::make_unique(gpu_task_runner_, + std::move(get_stub_cb))); +-#elif defined(OS_CHROMEOS) || defined(OS_MACOSX) || defined(OS_WIN) ++#elif defined(OS_CHROMEOS) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) + std::unique_ptr vda_video_decoder = VdaVideoDecoder::Create( + task_runner, gpu_task_runner_, media_log->Clone(), target_color_space, + gpu_preferences_, gpu_workarounds_, diff --git a/patches/inox-patchset/fix-cfi-failures-with-unbundled-libxml.patch b/patches/inox-patchset/fix-cfi-failures-with-unbundled-libxml.patch index aa5ec3f4..282cc4fc 100644 --- a/patches/inox-patchset/fix-cfi-failures-with-unbundled-libxml.patch +++ b/patches/inox-patchset/fix-cfi-failures-with-unbundled-libxml.patch @@ -101,7 +101,7 @@ + free(base); ResourceLoaderOptions fetch_options; - fetch_options.initiator_info.name = FetchInitiatorTypeNames::xml; + fetch_options.initiator_info.name = fetch_initiator_type_names::kXml; --- a/third_party/blink/renderer/core/xml/xslt_unicode_sort.cc +++ b/third_party/blink/renderer/core/xml/xslt_unicode_sort.cc @@ -273,18 +273,18 @@ void XsltUnicodeSortFunction(xsltTransfo