patches/debian_buster: Update for 72.0.3626.81

This commit is contained in:
xsmile
2019-01-31 15:05:41 +01:00
parent 9bbeb8e67b
commit 2144b55636
38 changed files with 182 additions and 266 deletions
+10
View File
@@ -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 <stddef.h>
#include <string.h>
+#include <limits>
#include "base/logging.h"
@@ -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)
+1 -1
View File
@@ -13,7 +13,7 @@ author: Michael Gilbert <mgilbert@debian.org>
# 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.
+4 -4
View File
@@ -3,19 +3,19 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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" ]
}
}
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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);
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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",
+1 -1
View File
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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/
+10 -10
View File
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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 <mgilbert@debian.org>
--- 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 <mgilbert@debian.org>
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 <mgilbert@debian.org>
"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 <mgilbert@debian.org>
- 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 @@
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -430,7 +430,7 @@ group("gn_all") {
@@ -449,7 +449,7 @@ group("gn_all") {
]
}
+11 -11
View File
@@ -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")) ||
@@ -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);
}
+2 -2
View File
@@ -3,8 +3,8 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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",
@@ -1,21 +0,0 @@
description: AutocompleteMatch cannot copy construct from a nullptr
author: Michael Gilbert <mgilbert@debian.org>
--- 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() {
}
@@ -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 @@
</message>
<message name="IDS_ERRORPAGES_SUGGESTION_CHECK_CONNECTION_BODY" desc="When a page fails to load, sometimes we suggest checking the network connections. This contains details below the suggestion.">
Check any cables and reboot any routers, modems, or other network
@@ -1,14 +0,0 @@
description: add constexpr to methods where it is required
author: Michael Gilbert <mgilbert@debian.org>
--- 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<double>::infinity());
}
- double InSecondsF() const { return delta_; }
+ constexpr double InSecondsF() const { return delta_; }
double InMillisecondsF() const { return delta_ * 1000; }
bool is_max() const {
@@ -1,21 +0,0 @@
description: constructor of Algorithm needs to be public
author: Michael Gilbert <mgilbert@debian.org>
--- 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 {
@@ -1,8 +1,8 @@
description: arraysize macro fails for zero length array, add one character
author: Michael Gilbert <mgilbert@debian.org>
--- 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 <mgilbert@debian.org>
-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.
@@ -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
+13
View File
@@ -0,0 +1,13 @@
description: add include needed for memset
author: Michael Gilbert <mgilbert@debian.org>
--- 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 <memory>
#include <string>
+#include <cstring>
#include <utility>
#include "modules/desktop_capture/desktop_frame.h"
@@ -12,12 +12,3 @@ author: Michael Gilbert <mgilbert@debian.org>
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",
]
+10 -10
View File
@@ -12,7 +12,7 @@ author: Michael Gilbert <mgilbert@debian.org>
"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 <mgilbert@debian.org>
"//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 <mgilbert@debian.org>
#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 <mgilbert@debian.org>
- 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<content::RenderFrameHost*>*
registry) {
@@ -1,15 +0,0 @@
description: upstream tries to use a unique_ptr that has already been moved
author: Michael Gilbert <mgilbert@debian.org>
--- 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<CoordinationUnitBase> 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
+15 -15
View File
@@ -1,18 +1,18 @@
description: use polymer from chromium's top level third_party directory
author: Michael Gilbert <mgilbert@debian.org>
--- 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",
-14
View File
@@ -1,14 +0,0 @@
description: size_t is not in scope by default in gcc 6
author: Michael Gilbert <mgilbert@debian.org>
--- 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<SubsampleEntry>& subsamples,
- size_t input_size);
+ std::size_t input_size);
} // namespace media
@@ -4,7 +4,7 @@ author: Olivier Tilloy <olivier.tilloy@canonical.com>
--- 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:
+1 -1
View File
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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([
+4 -4
View File
@@ -3,15 +3,15 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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)
+3 -3
View File
@@ -4,8 +4,8 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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 <type_traits> // for remove_reference<>::...
#include <utility> // for move
#include <type_traits>
#include <utility>
-#include "base/third_party/libevent/event.h"
+#include <event.h>
@@ -25,7 +25,7 @@ author: Michael Gilbert <mgilbert@debian.org>
#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',
+3 -3
View File
@@ -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;
}
@@ -10,7 +10,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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) {
@@ -1,43 +0,0 @@
description: update api to support harfbuzz 2.1
author: Michael Gilbert <mgilbert@debian.org>
--- 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<hb_codepoint_t*>(first_glyph);
Vector<Glyph, 256> 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);
+2 -2
View File
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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 <mgilbert@debian.org>
"//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" ]
}
+3 -3
View File
@@ -35,7 +35,7 @@ author: Michael Gilbert <mgilbert@debian.org>
}
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 <mgilbert@debian.org>
- "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',
+9 -9
View File
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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 <mgilbert@debian.org>
--- 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::span<con
@@ -513,7 +511,6 @@ bool CJPX_Decoder::Init(pdfium::span<con
return false;
m_Image = pTempImage;
- m_Image->pdfium_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<con
@@ -550,7 +547,7 @@ bool CJPX_Decoder::StartDecode() {
// TODO(palmer): Using |opj_free| here resolves the crash described in
// https://crbug.com/737033, but ultimately we need to harmonize the
// memory allocation strategy across OpenJPEG and its PDFium callers.
@@ -100,7 +100,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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 <mgilbert@debian.org>
"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_" ]
+44 -16
View File
@@ -16,7 +16,7 @@ author: Michael Gilbert <mgilbert@debian.org>
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 <limits>
#include <vector>
@@ -31,7 +31,14 @@ author: Michael Gilbert <mgilbert@debian.org>
#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 <mgilbert@debian.org>
- // 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<int>::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 <mgilbert@debian.org>
// 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<int64_t>(
- 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 <mgilbert@debian.org>
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<uint8_t>(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 <mgilbert@debian.org>
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 <mgilbert@debian.org>
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;
+1 -1
View File
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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",
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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 <mgilbert@debian.org>
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<viz::HitTestRegionList> H
return base::nullopt;
base::Optional<viz::HitTestRegionList> 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
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- 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<Browser::Bounds> window_bounds) {
@@ -14,7 +14,7 @@ author: Michael Gilbert <mgilbert@debian.org>
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.