Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/chromium/files/
Date: Mon, 02 Oct 2017 21:26:52
Message-Id: 1506979607.644e800117e287881c134deb2732fe43c0532847.floppym@gentoo
1 commit: 644e800117e287881c134deb2732fe43c0532847
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Sun Oct 1 17:36:12 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 2 21:26:47 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=644e8001
7
8 www-client/chromium: remove unused patches
9
10 Closes: https://github.com/gentoo/gentoo/pull/5833
11
12 .../files/chromium-FORTIFY_SOURCE-r1.patch | 29 ---
13 .../chromium/files/chromium-FORTIFY_SOURCE.patch | 27 ---
14 .../chromium/files/chromium-dma-buf-r1.patch | 21 --
15 .../chromium/files/chromium-gn-bootstrap-r15.patch | 11 -
16 .../chromium/files/chromium-gn-bootstrap-r16.patch | 11 -
17 .../chromium/files/chromium-gn-bootstrap-r18.patch | 19 --
18 .../chromium/files/chromium-gn-bootstrap-r8.patch | 13 --
19 .../chromium/files/chromium-major-minor.patch | 97 ---------
20 .../chromium/files/chromium-system-ffmpeg-r6.patch | 43 ----
21 .../chromium/files/chromium-system-icu-r1.patch | 224 ---------------------
22 .../chromium/files/chromium-system-icu-r2.patch | 10 -
23 .../chromium/files/chromium-system-zlib-r1.patch | 22 --
24 www-client/chromium/files/skia-avx2.patch | 15 --
25 13 files changed, 542 deletions(-)
26
27 diff --git a/www-client/chromium/files/chromium-FORTIFY_SOURCE-r1.patch b/www-client/chromium/files/chromium-FORTIFY_SOURCE-r1.patch
28 deleted file mode 100644
29 index d92863dd819..00000000000
30 --- a/www-client/chromium/files/chromium-FORTIFY_SOURCE-r1.patch
31 +++ /dev/null
32 @@ -1,29 +0,0 @@
33 -Drop _FORTIFY_SOURCE=2 from defines
34 -
35 -Gentoo toolchains enable this by default. Removing this prevents spammy
36 -warnings about the macro being redefined.
37 -
38 ---- a/build/config/compiler/BUILD.gn
39 -+++ b/build/config/compiler/BUILD.gn
40 -@@ -1161,21 +1161,6 @@
41 - "__STDC_FORMAT_MACROS",
42 - ]
43 -
44 -- if (!is_debug && !using_sanitizer &&
45 -- (!is_linux || !is_clang || is_official_build) &&
46 -- current_cpu != "s390x" && current_cpu != "s390" &&
47 -- current_cpu != "ppc64" && current_cpu != "ppc64") {
48 -- # _FORTIFY_SOURCE isn't really supported by Clang now, see
49 -- # http://llvm.org/bugs/show_bug.cgi?id=16821.
50 -- # It seems to work fine with Ubuntu 12 headers though, so use it in
51 -- # official builds.
52 -- #
53 -- # Non-chromium code is not guaranteed to compile cleanly with
54 -- # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are
55 -- # disabled, so only do that for Release build.
56 -- defines += [ "_FORTIFY_SOURCE=2" ]
57 -- }
58 --
59 - if (is_mac || is_ios) {
60 - cflags_objc = [ "-Wobjc-missing-property-synthesis" ]
61 - cflags_objcc = [ "-Wobjc-missing-property-synthesis" ]
62
63 diff --git a/www-client/chromium/files/chromium-FORTIFY_SOURCE.patch b/www-client/chromium/files/chromium-FORTIFY_SOURCE.patch
64 deleted file mode 100644
65 index c6477d69087..00000000000
66 --- a/www-client/chromium/files/chromium-FORTIFY_SOURCE.patch
67 +++ /dev/null
68 @@ -1,27 +0,0 @@
69 -Drop _FORTIFY_SOURCE=2 from defines
70 -
71 -Gentoo toolchains enable this by default. Removing this prevents spammy
72 -warnings about the macro being redefined.
73 -
74 ---- a/build/config/compiler/BUILD.gn
75 -+++ b/build/config/compiler/BUILD.gn
76 -@@ -1069,19 +1069,6 @@ config("chromium_code") {
77 - "__STDC_FORMAT_MACROS",
78 - ]
79 -
80 -- if (!is_debug && !using_sanitizer &&
81 -- (!is_linux || !is_clang || is_official_build)) {
82 -- # _FORTIFY_SOURCE isn't really supported by Clang now, see
83 -- # http://llvm.org/bugs/show_bug.cgi?id=16821.
84 -- # It seems to work fine with Ubuntu 12 headers though, so use it in
85 -- # official builds.
86 -- #
87 -- # Non-chromium code is not guaranteed to compile cleanly with
88 -- # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are
89 -- # disabled, so only do that for Release build.
90 -- defines += [ "_FORTIFY_SOURCE=2" ]
91 -- }
92 --
93 - if (is_mac || is_ios) {
94 - cflags_objc = [ "-Wobjc-missing-property-synthesis" ]
95 - cflags_objcc = [ "-Wobjc-missing-property-synthesis" ]
96
97 diff --git a/www-client/chromium/files/chromium-dma-buf-r1.patch b/www-client/chromium/files/chromium-dma-buf-r1.patch
98 deleted file mode 100644
99 index 6cc8d087d3f..00000000000
100 --- a/www-client/chromium/files/chromium-dma-buf-r1.patch
101 +++ /dev/null
102 @@ -1,21 +0,0 @@
103 ---- a/ui/gfx/linux/client_native_pixmap_dmabuf.cc.orig 2017-03-29 15:08:58.079790070 +0000
104 -+++ b/ui/gfx/linux/client_native_pixmap_dmabuf.cc 2017-03-29 15:09:10.068039324 +0000
105 -@@ -17,7 +17,6 @@
106 - #include "base/strings/stringprintf.h"
107 - #include "base/trace_event/trace_event.h"
108 -
109 --#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0)
110 - #include <linux/types.h>
111 -
112 - struct local_dma_buf_sync {
113 -@@ -35,10 +34,6 @@
114 - #define LOCAL_DMA_BUF_IOCTL_SYNC \
115 - _IOW(LOCAL_DMA_BUF_BASE, 0, struct local_dma_buf_sync)
116 -
117 --#else
118 --#include <linux/dma-buf.h>
119 --#endif
120 --
121 - namespace gfx {
122 -
123 - namespace {
124
125 diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r15.patch b/www-client/chromium/files/chromium-gn-bootstrap-r15.patch
126 deleted file mode 100644
127 index 726dca2e903..00000000000
128 --- a/www-client/chromium/files/chromium-gn-bootstrap-r15.patch
129 +++ /dev/null
130 @@ -1,11 +0,0 @@
131 ---- a/tools/gn/bootstrap/bootstrap.py
132 -+++ b/tools/gn/bootstrap/bootstrap.py
133 -@@ -550,8 +550,6 @@ def write_gn_ninja(path, root_gen_dir, options):
134 - 'base/trace_event/memory_peak_detector.cc',
135 - 'base/trace_event/memory_usage_estimator.cc',
136 - 'base/trace_event/process_memory_dump.cc',
137 -- 'base/trace_event/process_memory_maps.cc',
138 -- 'base/trace_event/process_memory_totals.cc',
139 - 'base/trace_event/sharded_allocation_register.cc',
140 - 'base/trace_event/trace_buffer.cc',
141 - 'base/trace_event/trace_config.cc',
142
143 diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r16.patch b/www-client/chromium/files/chromium-gn-bootstrap-r16.patch
144 deleted file mode 100644
145 index a2b4394d251..00000000000
146 --- a/www-client/chromium/files/chromium-gn-bootstrap-r16.patch
147 +++ /dev/null
148 @@ -1,11 +0,0 @@
149 ---- a/tools/gn/bootstrap/bootstrap.py.orig 2017-08-19 09:47:46.919341766 +0000
150 -+++ b/tools/gn/bootstrap/bootstrap.py 2017-08-19 09:48:07.307745292 +0000
151 -@@ -348,7 +348,7 @@
152 - '-pipe',
153 - '-fno-exceptions'
154 - ])
155 -- cflags_cc.extend(['-std=c++11', '-Wno-c++11-narrowing'])
156 -+ cflags_cc.extend(['-std=c++14', '-Wno-c++11-narrowing'])
157 - if is_aix:
158 - cflags.extend(['-maix64'])
159 - ldflags.extend([ '-maix64 -Wl,-bbigtoc' ])
160
161 diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r18.patch b/www-client/chromium/files/chromium-gn-bootstrap-r18.patch
162 deleted file mode 100644
163 index 8c9c27121cd..00000000000
164 --- a/www-client/chromium/files/chromium-gn-bootstrap-r18.patch
165 +++ /dev/null
166 @@ -1,19 +0,0 @@
167 ---- a/tools/gn/bootstrap/bootstrap.py
168 -+++ b/tools/gn/bootstrap/bootstrap.py
169 -@@ -481,8 +481,6 @@ def write_gn_ninja(path, root_gen_dir, options):
170 - 'base/process/process_handle.cc',
171 - 'base/process/process_iterator.cc',
172 - 'base/process/process_metrics.cc',
173 -- 'base/profiler/scoped_profile.cc',
174 -- 'base/profiler/scoped_tracker.cc',
175 - 'base/rand_util.cc',
176 - 'base/run_loop.cc',
177 - 'base/sequence_token.cc',
178 -@@ -579,7 +577,6 @@ def write_gn_ninja(path, root_gen_dir, options):
179 - 'base/trace_event/trace_log_constants.cc',
180 - 'base/trace_event/tracing_agent.cc',
181 - 'base/tracked_objects.cc',
182 -- 'base/tracking_info.cc',
183 - 'base/unguessable_token.cc',
184 - 'base/value_iterators.cc',
185 - 'base/values.cc',
186
187 diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r8.patch b/www-client/chromium/files/chromium-gn-bootstrap-r8.patch
188 deleted file mode 100644
189 index d9f389aaf58..00000000000
190 --- a/www-client/chromium/files/chromium-gn-bootstrap-r8.patch
191 +++ /dev/null
192 @@ -1,13 +0,0 @@
193 -Index: tools/gn/bootstrap/bootstrap.py
194 -diff --git a/tools/gn/bootstrap/bootstrap.py b/tools/gn/bootstrap/bootstrap.py
195 -index 6f2f5b1264519ea38cc36fb0b7e2cc24c378ca7a..0b03d2626b358fb90ab39d737679ee47bd60303b 100755
196 ---- a/tools/gn/bootstrap/bootstrap.py
197 -+++ b/tools/gn/bootstrap/bootstrap.py
198 -@@ -487,6 +487,7 @@ def write_gn_ninja(path, root_gen_dir, options):
199 - 'base/sys_info.cc',
200 - 'base/task_runner.cc',
201 - 'base/task_scheduler/delayed_task_manager.cc',
202 -+ 'base/task_scheduler/environment_config.cc',
203 - 'base/task_scheduler/post_task.cc',
204 - 'base/task_scheduler/priority_queue.cc',
205 - 'base/task_scheduler/scheduler_lock_impl.cc',
206
207 diff --git a/www-client/chromium/files/chromium-major-minor.patch b/www-client/chromium/files/chromium-major-minor.patch
208 deleted file mode 100644
209 index ab8a701c6c1..00000000000
210 --- a/www-client/chromium/files/chromium-major-minor.patch
211 +++ /dev/null
212 @@ -1,97 +0,0 @@
213 -From 11e48b29d00fdd714c3ff3f8ebe0d51a2c4ce61c Mon Sep 17 00:00:00 2001
214 -From: Dongseong Hwang <dongseong.hwang@×××××.com>
215 -Date: Tue, 11 Jul 2017 17:20:06 +0000
216 -Subject: [PATCH] ozone: drm: Remove the debug details when dmabuf mmap fails.
217 -
218 -As we fixed mmap failure, remove the redundant crash reports.
219 -The CL adding the info: crrev.com/2710183005
220 -
221 -BUG=629521
222 -
223 -Change-Id: I8de9f16a3fce4a42500fe9c5e2843615940e184e
224 -Reviewed-on: https://chromium-review.googlesource.com/565805
225 -Reviewed-by: Daniele Castagna <dcastagna@××××××××.org>
226 -Reviewed-by: Robert Sesek <rsesek@××××××××.org>
227 -Reviewed-by: Dongseong Hwang <dongseong.hwang@×××××.com>
228 -Commit-Queue: Dongseong Hwang <dongseong.hwang@×××××.com>
229 -Cr-Commit-Position: refs/heads/master@{#485662}
230 ----
231 - chrome/common/crash_keys.cc | 5 -----
232 - ui/gfx/linux/client_native_pixmap_dmabuf.cc | 28 +++-------------------------
233 - 2 files changed, 3 insertions(+), 30 deletions(-)
234 -
235 -diff --git a/chrome/common/crash_keys.cc b/chrome/common/crash_keys.cc
236 -index c4b563e0309b..2f1efe6f2334 100644
237 ---- a/chrome/common/crash_keys.cc
238 -+++ b/chrome/common/crash_keys.cc
239 -@@ -153,11 +153,6 @@ size_t RegisterChromeCrashKeys() {
240 - {kInputEventFilterSendFailure, kSmallSize},
241 - #if defined(OS_CHROMEOS)
242 - {kNumberOfUsers, kSmallSize},
243 -- // Temporary for https://crbug.com/629521
244 -- {"mmap_params", kSmallSize},
245 -- {"buffer_size", kSmallSize},
246 -- {"errno", kSmallSize},
247 -- {"number_of_fds", kSmallSize},
248 - #endif
249 - #if defined(OS_MACOSX)
250 - {mac::kFirstNSException, kMediumSize},
251 -diff --git a/ui/gfx/linux/client_native_pixmap_dmabuf.cc b/ui/gfx/linux/client_native_pixmap_dmabuf.cc
252 -index 4927daf3a61d..e532686a4f5b 100644
253 ---- a/ui/gfx/linux/client_native_pixmap_dmabuf.cc
254 -+++ b/ui/gfx/linux/client_native_pixmap_dmabuf.cc
255 -@@ -11,11 +11,9 @@
256 - #include <sys/mman.h>
257 - #include <xf86drm.h>
258 -
259 --#include "base/debug/crash_logging.h"
260 - #include "base/memory/ptr_util.h"
261 - #include "base/posix/eintr_wrapper.h"
262 - #include "base/process/memory.h"
263 --#include "base/process/process_metrics.h"
264 - #include "base/strings/stringprintf.h"
265 - #include "base/trace_event/trace_event.h"
266 -
267 -@@ -87,36 +85,16 @@ ClientNativePixmapDmaBuf::ClientNativePixmapDmaBuf(
268 - if (mmap_error == ENOMEM)
269 - base::TerminateBecauseOutOfMemory(map_size);
270 -
271 -- // TODO(dcastagna): Remove the following diagnostic information and the
272 -- // associated crash keys once crbug.com/629521 is fixed.
273 - bool fd_valid = fcntl(dmabuf_fd_.get(), F_GETFD) != -1 ||
274 - logging::GetLastSystemErrorCode() != EBADF;
275 -- int minor = -1;
276 -- int major = -1;
277 -- struct stat buf;
278 -- if (!fstat(dmabuf_fd_.get(), &buf)) {
279 -- minor = minor(buf.st_dev);
280 -- major = major(buf.st_dev);
281 -- }
282 --
283 - std::string mmap_params = base::StringPrintf(
284 - "(addr=nullptr, length=%zu, prot=(PROT_READ | PROT_WRITE), "
285 -- "flags=MAP_SHARED, fd=%d[valid=%d, minor=%d, major=%d], offset=0)",
286 -- map_size, dmabuf_fd_.get(), fd_valid, minor, major);
287 -+ "flags=MAP_SHARED, fd=%d[valid=%d], offset=0)",
288 -+ map_size, dmabuf_fd_.get(), fd_valid);
289 - std::string errno_str = logging::SystemErrorCodeToString(mmap_error);
290 -- std::unique_ptr<base::ProcessMetrics> process_metrics(
291 -- base::ProcessMetrics::CreateCurrentProcessMetrics());
292 -- std::string number_of_fds =
293 -- base::StringPrintf("%d", process_metrics->GetOpenFdCount());
294 -- base::debug::ScopedCrashKey params_crash_key("mmap_params", mmap_params);
295 -- base::debug::ScopedCrashKey size_crash_key("buffer_size", size.ToString());
296 -- base::debug::ScopedCrashKey errno_crash_key("errno", errno_str);
297 -- base::debug::ScopedCrashKey number_of_fds_crash_key("number_of_fds",
298 -- number_of_fds);
299 - LOG(ERROR) << "Failed to mmap dmabuf; mmap_params: " << mmap_params
300 - << ", buffer_size: (" << size.ToString()
301 -- << "), errno: " << errno_str
302 -- << " , number_of_fds: " << number_of_fds;
303 -+ << "), errno: " << errno_str;
304 - LOG(ERROR) << "NativePixmapHandle:";
305 - LOG(ERROR) << "Number of fds: " << handle.fds.size();
306 - LOG(ERROR) << "Number of planes: " << handle.planes.size();
307 ---
308 -2.13.3
309 -
310
311 diff --git a/www-client/chromium/files/chromium-system-ffmpeg-r6.patch b/www-client/chromium/files/chromium-system-ffmpeg-r6.patch
312 deleted file mode 100644
313 index d2e0157bfe3..00000000000
314 --- a/www-client/chromium/files/chromium-system-ffmpeg-r6.patch
315 +++ /dev/null
316 @@ -1,43 +0,0 @@
317 ---- a/media/ffmpeg/ffmpeg_common.h.orig 2017-04-07 18:17:22.623538889 +0000
318 -+++ b/media/ffmpeg/ffmpeg_common.h 2017-04-07 18:18:16.780656283 +0000
319 -@@ -23,10 +23,12 @@
320 -
321 - // Include FFmpeg header files.
322 - extern "C" {
323 -+#if !defined(USE_SYSTEM_FFMPEG)
324 - // Disable deprecated features which result in spammy compile warnings. This
325 - // list of defines must mirror those in the 'defines' section of FFmpeg's
326 - // BUILD.gn file or the headers below will generate different structures!
327 - #define FF_API_CONVERGENCE_DURATION 0
328 -+#endif // !defined(USE_SYSTEM_FFMPEG)
329 - // Upstream libavcodec/utils.c still uses the deprecated
330 - // av_dup_packet(), causing deprecation warnings.
331 - // The normal fix for such things is to disable the feature as below,
332 -@@ -40,7 +42,9 @@
333 - MSVC_PUSH_DISABLE_WARNING(4244);
334 - #include <libavcodec/avcodec.h>
335 - #include <libavformat/avformat.h>
336 -+#if !defined(USE_SYSTEM_FFMPEG)
337 - #include <libavformat/internal.h>
338 -+#endif // !defined(USE_SYSTEM_FFMPEG)
339 - #include <libavformat/avio.h>
340 - #include <libavutil/avutil.h>
341 - #include <libavutil/imgutils.h>
342 ---- a/media/filters/ffmpeg_demuxer.cc.orig 2017-04-07 18:15:14.776901183 +0000
343 -+++ b/media/filters/ffmpeg_demuxer.cc 2017-04-07 18:15:54.813727201 +0000
344 -@@ -1223,6 +1223,7 @@
345 - // If no estimate is found, the stream entry will be kInfiniteDuration.
346 - std::vector<base::TimeDelta> start_time_estimates(format_context->nb_streams,
347 - kInfiniteDuration);
348 -+#if !defined(USE_SYSTEM_FFMPEG)
349 - const AVFormatInternal* internal = format_context->internal;
350 - if (internal && internal->packet_buffer &&
351 - format_context->start_time != static_cast<int64_t>(AV_NOPTS_VALUE)) {
352 -@@ -1246,6 +1247,7 @@
353 - packet_buffer = packet_buffer->next;
354 - }
355 - }
356 -+#endif // !defined(USE_SYSTEM_FFMPEG)
357 -
358 - std::unique_ptr<MediaTracks> media_tracks(new MediaTracks());
359 -
360
361 diff --git a/www-client/chromium/files/chromium-system-icu-r1.patch b/www-client/chromium/files/chromium-system-icu-r1.patch
362 deleted file mode 100644
363 index 6356467c21c..00000000000
364 --- a/www-client/chromium/files/chromium-system-icu-r1.patch
365 +++ /dev/null
366 @@ -1,224 +0,0 @@
367 -Index: third_party/WebKit/Source/platform/text/CharacterEmoji.cpp
368 -diff --git a/third_party/WebKit/Source/platform/text/CharacterEmoji.cpp b/third_party/WebKit/Source/platform/text/CharacterEmoji.cpp
369 -index af051b46589bed421afd1da1e44623820c8f9136..60059d25dd808a0a55481d9bec3020b95175e45c 100644
370 ---- a/third_party/WebKit/Source/platform/text/CharacterEmoji.cpp
371 -+++ b/third_party/WebKit/Source/platform/text/CharacterEmoji.cpp
372 -@@ -192,26 +192,26 @@ static void applyPatternAndFreeze(icu::UnicodeSet* unicodeSet,
373 - DCHECK_EQ(err, U_ZERO_ERROR);
374 - }
375 -
376 --bool Character::isEmoji(UChar32 ch) {
377 -- return Character::isEmojiTextDefault(ch) ||
378 -- Character::isEmojiEmojiDefault(ch);
379 -+bool Character::IsEmoji(UChar32 ch) {
380 -+ return Character::IsEmojiTextDefault(ch) ||
381 -+ Character::IsEmojiEmojiDefault(ch);
382 - }
383 -
384 --bool Character::isEmojiTextDefault(UChar32 ch) {
385 -+bool Character::IsEmojiTextDefault(UChar32 ch) {
386 - DEFINE_STATIC_LOCAL(icu::UnicodeSet, emojiTextSet, ());
387 - if (emojiTextSet.isEmpty())
388 - applyPatternAndFreeze(&emojiTextSet, kEmojiTextPattern);
389 -- return emojiTextSet.contains(ch) && !isEmojiEmojiDefault(ch);
390 -+ return emojiTextSet.contains(ch) && !IsEmojiEmojiDefault(ch);
391 - }
392 -
393 --bool Character::isEmojiEmojiDefault(UChar32 ch) {
394 -+bool Character::IsEmojiEmojiDefault(UChar32 ch) {
395 - DEFINE_STATIC_LOCAL(icu::UnicodeSet, emojiEmojiSet, ());
396 - if (emojiEmojiSet.isEmpty())
397 - applyPatternAndFreeze(&emojiEmojiSet, kEmojiEmojiPattern);
398 - return emojiEmojiSet.contains(ch);
399 - }
400 -
401 --bool Character::isEmojiModifierBase(UChar32 ch) {
402 -+bool Character::IsEmojiModifierBase(UChar32 ch) {
403 - DEFINE_STATIC_LOCAL(icu::UnicodeSet, emojieModifierBaseSet, ());
404 - if (emojieModifierBaseSet.isEmpty())
405 - applyPatternAndFreeze(&emojieModifierBaseSet, kEmojiModifierBasePattern);
406 -Index: third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.cpp
407 -diff --git a/third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.cpp b/third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.cpp
408 -index 55c4d36e8c217680da9131aac063e38ad3b1fe3d..f3000190d4473daf39f0bc7fe5c262c21ecca4a0 100644
409 ---- a/third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.cpp
410 -+++ b/third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.cpp
411 -@@ -20,7 +20,7 @@
412 - namespace blink {
413 -
414 - #if defined(USING_SYSTEM_ICU)
415 --static void generate(FILE*) {}
416 -+static void Generate(FILE*) {}
417 - #else
418 -
419 - const UChar32 kMaxCodepoint = 0x10FFFF;
420 -Index: third_party/WebKit/Source/platform/wtf/text/TextCodecICU.cpp
421 -diff --git a/third_party/WebKit/Source/platform/wtf/text/TextCodecICU.cpp b/third_party/WebKit/Source/platform/wtf/text/TextCodecICU.cpp
422 -index 6d6f6f10e73dd6a413221d1e7f2d1e2a2d674e8b..ddf01cd9e2207bace2a0c4cab461750e86e0bf0d 100644
423 ---- a/third_party/WebKit/Source/platform/wtf/text/TextCodecICU.cpp
424 -+++ b/third_party/WebKit/Source/platform/wtf/text/TextCodecICU.cpp
425 -@@ -63,16 +63,16 @@ void TextCodecICU::RegisterEncodingNames(EncodingNameRegistrar registrar) {
426 - // apart; ICU treats these names as synonyms.
427 - registrar("ISO-8859-8-I", "ISO-8859-8-I");
428 -
429 -- int32_t num_encodings = ucnv_countAvailable();
430 -- for (int32_t i = 0; i < num_encodings; ++i) {
431 -+ int32_t nuencoding_s = ucnv_countAvailable();
432 -+ for (int32_t i = 0; i < nuencoding_s; ++i) {
433 - const char* name = ucnv_getAvailableName(i);
434 - UErrorCode error = U_ZERO_ERROR;
435 - #if !defined(USING_SYSTEM_ICU)
436 - const char* primary_standard = "HTML";
437 - const char* secondary_standard = "MIME";
438 - #else
439 -- const char* primaryStandard = "MIME";
440 -- const char* secondaryStandard = "IANA";
441 -+ const char* primary_standard = "MIME";
442 -+ const char* secondary_standard = "IANA";
443 - #endif
444 - const char* standard_name =
445 - ucnv_getStandardName(name, primary_standard, &error);
446 -@@ -94,20 +94,21 @@ void TextCodecICU::RegisterEncodingNames(EncodingNameRegistrar registrar) {
447 - // encoding for encoding GB_2312-80 and several others. So, we need to
448 - // override this behavior, too.
449 - #if defined(USING_SYSTEM_ICU)
450 -- if (!strcmp(standardName, "GB2312") || !strcmp(standardName, "GB_2312-80"))
451 -- standardName = "GBK";
452 -+ if (!strcmp(standard_name, "GB2312") || !strcmp(standard_name, "GB_2312-80")) {
453 -+ standard_name = "GBK";
454 - // Similarly, EUC-KR encodings all map to an extended version, but
455 - // per HTML5, the canonical name still should be EUC-KR.
456 -- else if (!strcmp(standardName, "EUC-KR") ||
457 -- !strcmp(standardName, "KSC_5601") ||
458 -- !strcmp(standardName, "cp1363"))
459 -- standardName = "EUC-KR";
460 -+ } else if (!strcmp(standard_name, "EUC-KR") ||
461 -+ !strcmp(standard_name, "KSC_5601") ||
462 -+ !strcmp(standard_name, "cp1363")) {
463 -+ standard_name = "EUC-KR";
464 - // And so on.
465 -- else if (!strcasecmp(standardName, "iso-8859-9"))
466 -+ } else if (!strcasecmp(standard_name, "iso-8859-9")) {
467 - // This name is returned in different case by ICU 3.2 and 3.6.
468 -- standardName = "windows-1254";
469 -- else if (!strcmp(standardName, "TIS-620"))
470 -- standardName = "windows-874";
471 -+ standard_name = "windows-1254";
472 -+ } else if (!strcmp(standard_name, "TIS-620")) {
473 -+ standard_name = "windows-874";
474 -+ }
475 - #endif
476 -
477 - registrar(standard_name, standard_name);
478 -@@ -229,8 +230,8 @@ void TextCodecICU::RegisterCodecs(TextCodecRegistrar registrar) {
479 - // See comment above in registerEncodingNames.
480 - registrar("ISO-8859-8-I", Create, 0);
481 -
482 -- int32_t num_encodings = ucnv_countAvailable();
483 -- for (int32_t i = 0; i < num_encodings; ++i) {
484 -+ int32_t nuencoding_s = ucnv_countAvailable();
485 -+ for (int32_t i = 0; i < nuencoding_s; ++i) {
486 - const char* name = ucnv_getAvailableName(i);
487 - UErrorCode error = U_ZERO_ERROR;
488 - const char* standard_name = ucnv_getStandardName(name, "MIME", &error);
489 -@@ -272,7 +273,7 @@ void TextCodecICU::CreateICUConverter() const {
490 - DCHECK(!converter_icu_);
491 -
492 - #if defined(USING_SYSTEM_ICU)
493 -- const char* name = m_encoding.name();
494 -+ const char* name = encoding_.GetName();
495 - m_needsGBKFallbacks =
496 - name[0] == 'G' && name[1] == 'B' && name[2] == 'K' && !name[3];
497 - #endif
498 -@@ -393,16 +394,16 @@ String TextCodecICU::Decode(const char* bytes,
499 - // Chrome's copy of ICU does not have the issue described below.
500 - return result.ToString();
501 - #else
502 -- String resultString = result.toString();
503 -+ String resultString = result.ToString();
504 -
505 - // <http://bugs.webkit.org/show_bug.cgi?id=17014>
506 - // Simplified Chinese pages use the code A3A0 to mean "full-width space", but
507 - // ICU decodes it as U+E5E5.
508 -- if (!strcmp(m_encoding.name(), "GBK")) {
509 -- if (!strcasecmp(m_encoding.name(), "gb18030"))
510 -- resultString.replace(0xE5E5, ideographicSpaceCharacter);
511 -+ if (!strcmp(encoding_.GetName(), "GBK")) {
512 -+ if (!strcasecmp(encoding_.GetName(), "gb18030"))
513 -+ resultString.Replace(0xE5E5, ideographicSpaceCharacter);
514 - // Make GBK compliant to the encoding spec and align with GB18030
515 -- resultString.replace(0x01F9, 0xE7C8);
516 -+ resultString.Replace(0x01F9, 0xE7C8);
517 - // FIXME: Once https://www.w3.org/Bugs/Public/show_bug.cgi?id=28740#c3
518 - // is resolved, add U+1E3F => 0xE7C7.
519 - }
520 -@@ -506,7 +507,7 @@ static void gbkCallbackEscape(const void* context,
521 - ucnv_cbFromUWriteUChars(fromUArgs, &source, source + 1, 0, err);
522 - return;
523 - }
524 -- numericEntityCallback(context, fromUArgs, codeUnits, length, codePoint,
525 -+ NumericEntityCallback(context, fromUArgs, codeUnits, length, codePoint,
526 - reason, err);
527 - }
528 -
529 -@@ -525,7 +526,7 @@ static void gbkCssEscapedEntityCallack(const void* context,
530 - ucnv_cbFromUWriteUChars(fromUArgs, &source, source + 1, 0, err);
531 - return;
532 - }
533 -- cssEscapedEntityCallback(context, fromUArgs, codeUnits, length, codePoint,
534 -+ CssEscapedEntityCallback(context, fromUArgs, codeUnits, length, codePoint,
535 - reason, err);
536 - return;
537 - }
538 -@@ -548,7 +549,7 @@ static void gbkUrlEscapedEntityCallack(const void* context,
539 - ucnv_cbFromUWriteUChars(fromUArgs, &source, source + 1, 0, err);
540 - return;
541 - }
542 -- urlEscapedEntityCallback(context, fromUArgs, codeUnits, length, codePoint,
543 -+ UrlEscapedEntityCallback(context, fromUArgs, codeUnits, length, codePoint,
544 - reason, err);
545 - return;
546 - }
547 -@@ -622,7 +623,7 @@ CString TextCodecICU::EncodeInternal(const TextCodecInput& input,
548 - 0, 0, &err);
549 - #else
550 - ucnv_setFromUCallBack(
551 -- m_converterICU, m_needsGBKFallbacks ? gbkCallbackSubstitute
552 -+ converter_icu_, m_needsGBKFallbacks ? gbkCallbackSubstitute
553 - : UCNV_FROM_U_CALLBACK_SUBSTITUTE,
554 - 0, 0, 0, &err);
555 - #endif
556 -@@ -633,8 +634,8 @@ CString TextCodecICU::EncodeInternal(const TextCodecInput& input,
557 - &err);
558 - #else
559 - ucnv_setFromUCallBack(
560 -- m_converterICU,
561 -- m_needsGBKFallbacks ? gbkCallbackEscape : numericEntityCallback, 0, 0,
562 -+ converter_icu_,
563 -+ m_needsGBKFallbacks ? gbkCallbackEscape : NumericEntityCallback, 0, 0,
564 - 0, &err);
565 - #endif
566 - break;
567 -@@ -643,9 +644,9 @@ CString TextCodecICU::EncodeInternal(const TextCodecInput& input,
568 - ucnv_setFromUCallBack(converter_icu_, UrlEscapedEntityCallback, 0, 0, 0,
569 - &err);
570 - #else
571 -- ucnv_setFromUCallBack(m_converterICU,
572 -+ ucnv_setFromUCallBack(converter_icu_,
573 - m_needsGBKFallbacks ? gbkUrlEscapedEntityCallack
574 -- : urlEscapedEntityCallback,
575 -+ : UrlEscapedEntityCallback,
576 - 0, 0, 0, &err);
577 - #endif
578 - break;
579 -@@ -654,9 +655,9 @@ CString TextCodecICU::EncodeInternal(const TextCodecInput& input,
580 - ucnv_setFromUCallBack(converter_icu_, CssEscapedEntityCallback, 0, 0, 0,
581 - &err);
582 - #else
583 -- ucnv_setFromUCallBack(m_converterICU,
584 -+ ucnv_setFromUCallBack(converter_icu_,
585 - m_needsGBKFallbacks ? gbkCssEscapedEntityCallack
586 -- : cssEscapedEntityCallback,
587 -+ : CssEscapedEntityCallback,
588 - 0, 0, 0, &err);
589 - #endif
590 - break;
591
592 diff --git a/www-client/chromium/files/chromium-system-icu-r2.patch b/www-client/chromium/files/chromium-system-icu-r2.patch
593 deleted file mode 100644
594 index 5c12bbb7cf6..00000000000
595 --- a/www-client/chromium/files/chromium-system-icu-r2.patch
596 +++ /dev/null
597 @@ -1,10 +0,0 @@
598 ---- a/build/linux/unbundle/icu.gn
599 -+++ b/build/linux/unbundle/icu.gn
600 -@@ -16,6 +16,7 @@ config("icu_config") {
601 - defines = [
602 - "USING_SYSTEM_ICU=1",
603 - "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC",
604 -+ "UCHAR_TYPE=uint16_t",
605 - ]
606 - }
607 -
608
609 diff --git a/www-client/chromium/files/chromium-system-zlib-r1.patch b/www-client/chromium/files/chromium-system-zlib-r1.patch
610 deleted file mode 100644
611 index 23ee934b522..00000000000
612 --- a/www-client/chromium/files/chromium-system-zlib-r1.patch
613 +++ /dev/null
614 @@ -1,22 +0,0 @@
615 ---- a/gpu/command_buffer/service/memory_program_cache.cc
616 -+++ b/gpu/command_buffer/service/memory_program_cache.cc
617 -@@ -226,7 +226,7 @@ bool ProgramBinaryExtensionsAvailable() {
618 - // Returns an empty vector if compression fails.
619 - std::vector<uint8_t> CompressData(const std::vector<uint8_t>& data) {
620 - auto start_time = base::TimeTicks::Now();
621 -- Cr_z_uLongf compressed_size = compressBound(data.size());
622 -+ uLongf compressed_size = compressBound(data.size());
623 - std::vector<uint8_t> compressed_data(compressed_size);
624 - // Level indicates a trade-off between compression and speed. Level 1
625 - // indicates fastest speed (with worst compression).
626 -@@ -256,8 +256,8 @@ std::vector<uint8_t> DecompressData(const std::vector<uint8_t>& data,
627 - size_t max_size_bytes) {
628 - auto start_time = base::TimeTicks::Now();
629 - std::vector<uint8_t> decompressed_data(decompressed_size);
630 -- Cr_z_uLongf decompressed_size_out =
631 -- static_cast<Cr_z_uLongf>(decompressed_size);
632 -+ uLongf decompressed_size_out =
633 -+ static_cast<uLongf>(decompressed_size);
634 - auto result = uncompress(decompressed_data.data(), &decompressed_size_out,
635 - data.data(), data.size());
636 -
637
638 diff --git a/www-client/chromium/files/skia-avx2.patch b/www-client/chromium/files/skia-avx2.patch
639 deleted file mode 100644
640 index a1b530990c0..00000000000
641 --- a/www-client/chromium/files/skia-avx2.patch
642 +++ /dev/null
643 @@ -1,15 +0,0 @@
644 -Disable AVX2 code to prevent build failure with GCC
645 -
646 -Bug: https://bugs.gentoo.org/608640
647 -
648 ---- a/third_party/skia/include/core/SkPreConfig.h
649 -+++ b/third_party/skia/include/core/SkPreConfig.h
650 -@@ -125,7 +125,7 @@
651 - // These checks must be done in descending order to ensure we set the highest
652 - // available SSE level.
653 - #if defined(__AVX2__)
654 -- #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_AVX2
655 -+ #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_AVX
656 - #elif defined(__AVX__)
657 - #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_AVX
658 - #elif defined(__SSE4_2__)