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: Wed, 09 Aug 2017 14:30:11
Message-Id: 1502288996.c0643d5f577ef12288c702ac0fa086818b243567.floppym@gentoo
1 commit: c0643d5f577ef12288c702ac0fa086818b243567
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 9 14:29:56 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 9 14:29:56 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0643d5f
7
8 www-client/chromium: remove old patches
9
10 Package-Manager: Portage-2.3.6_p23, Repoman-2.3.3_p1
11
12 www-client/chromium/files/chromium-57-gcc4.patch | 22 ------
13 www-client/chromium/files/chromium-clang-r1.patch | 11 ---
14 .../chromium/files/chromium-dma-buf-r2.patch | 20 -----
15 .../chromium/files/chromium-gn-bootstrap-r10.patch | 18 -----
16 .../chromium/files/chromium-gn-bootstrap-r11.patch | 27 -------
17 .../chromium/files/chromium-gn-bootstrap-r12.patch | 10 ---
18 .../chromium/files/chromium-gn-bootstrap-r13.patch | 18 -----
19 .../chromium/files/chromium-gn-bootstrap-r2.patch | 13 ----
20 .../chromium/files/chromium-gn-bootstrap-r3.patch | 13 ----
21 .../chromium/files/chromium-gn-bootstrap-r4.patch | 21 -----
22 .../chromium/files/chromium-gn-bootstrap-r5.patch | 11 ---
23 .../chromium/files/chromium-gn-bootstrap-r6.patch | 18 -----
24 .../chromium/files/chromium-gn-bootstrap-r7.patch | 16 ----
25 .../chromium/files/chromium-gn-bootstrap-r9.patch | 20 -----
26 .../chromium/files/chromium-system-ffmpeg-r4.patch | 48 ------------
27 .../chromium/files/chromium-system-ffmpeg-r5.patch | 66 ----------------
28 .../files/chromium-system-harfbuzz-r1.patch | 25 ------
29 .../chromium/files/chromium-system-icu-r2.patch | 89 ----------------------
30 .../files/chromium-system-libjpeg-r1.patch | 9 ---
31 .../chromium/files/chromium-system-libpng-r1.patch | 18 -----
32 .../files/chromium-system-libwebp-r1.patch | 9 ---
33 .../chromium/files/chromium-system-opus-r1.patch | 20 -----
34 22 files changed, 522 deletions(-)
35
36 diff --git a/www-client/chromium/files/chromium-57-gcc4.patch b/www-client/chromium/files/chromium-57-gcc4.patch
37 deleted file mode 100644
38 index 044c8f41b9f..00000000000
39 --- a/www-client/chromium/files/chromium-57-gcc4.patch
40 +++ /dev/null
41 @@ -1,22 +0,0 @@
42 ---- a/chrome/browser/ui/libgtkui/gtk_ui.cc
43 -+++ b/chrome/browser/ui/libgtkui/gtk_ui.cc
44 -@@ -676,7 +676,7 @@
45 - : nullptr);
46 - }
47 -
48 -- return gtk_border;
49 -+ return std::move(gtk_border);
50 - }
51 -
52 - void GtkUi::AddWindowButtonOrderObserver(
53 ---- a/third_party/webrtc/modules/desktop_capture/screen_capturer_x11.cc
54 -+++ b/third_party/webrtc/modules/desktop_capture/screen_capturer_x11.cc
55 -@@ -412,7 +412,7 @@ std::unique_ptr<DesktopCapturer> DesktopCapturer::CreateRawScreenCapturer(
56 - return nullptr;
57 - }
58 -
59 -- return capturer;
60 -+ return std::move(capturer);
61 - }
62 -
63 - } // namespace webrtc
64
65 diff --git a/www-client/chromium/files/chromium-clang-r1.patch b/www-client/chromium/files/chromium-clang-r1.patch
66 deleted file mode 100644
67 index ea593200cf7..00000000000
68 --- a/www-client/chromium/files/chromium-clang-r1.patch
69 +++ /dev/null
70 @@ -1,11 +0,0 @@
71 ---- a/base/containers/flat_set.h.orig 2017-04-28 14:39:24.143751606 +0000
72 -+++ b/base/containers/flat_set.h 2017-04-28 14:39:33.815953089 +0000
73 -@@ -5,6 +5,8 @@
74 - #ifndef BASE_CONTAINERS_FLAT_SET_H_
75 - #define BASE_CONTAINERS_FLAT_SET_H_
76 -
77 -+#include <functional>
78 -+
79 - #include "base/containers/flat_tree.h"
80 -
81 - namespace base {
82
83 diff --git a/www-client/chromium/files/chromium-dma-buf-r2.patch b/www-client/chromium/files/chromium-dma-buf-r2.patch
84 deleted file mode 100644
85 index 2de680cf031..00000000000
86 --- a/www-client/chromium/files/chromium-dma-buf-r2.patch
87 +++ /dev/null
88 @@ -1,20 +0,0 @@
89 ---- a/ui/gfx/linux/client_native_pixmap_dmabuf.cc.orig 2017-04-28 10:27:57.890505336 +0000
90 -+++ b/ui/gfx/linux/client_native_pixmap_dmabuf.cc 2017-04-28 10:28:17.726916569 +0000
91 -@@ -19,9 +19,6 @@
92 - #include "base/strings/stringprintf.h"
93 - #include "base/trace_event/trace_event.h"
94 -
95 --#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
96 --#include <linux/dma-buf.h>
97 --#else
98 - #include <linux/types.h>
99 -
100 - struct dma_buf_sync {
101 -@@ -36,7 +33,6 @@
102 -
103 - #define DMA_BUF_BASE 'b'
104 - #define DMA_BUF_IOCTL_SYNC _IOW(DMA_BUF_BASE, 0, struct dma_buf_sync)
105 --#endif
106 -
107 - namespace gfx {
108 -
109
110 diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r10.patch b/www-client/chromium/files/chromium-gn-bootstrap-r10.patch
111 deleted file mode 100644
112 index f27fe374eb4..00000000000
113 --- a/www-client/chromium/files/chromium-gn-bootstrap-r10.patch
114 +++ /dev/null
115 @@ -1,18 +0,0 @@
116 ---- a/tools/gn/bootstrap/bootstrap.py
117 -+++ b/tools/gn/bootstrap/bootstrap.py
118 -@@ -447,6 +447,7 @@ def write_gn_ninja(path, root_gen_dir, options):
119 - 'base/metrics/field_trial_param_associator.cc',
120 - 'base/metrics/histogram.cc',
121 - 'base/metrics/histogram_base.cc',
122 -+ 'base/metrics/histogram_functions.cc',
123 - 'base/metrics/histogram_samples.cc',
124 - 'base/metrics/metrics_hashes.cc',
125 - 'base/metrics/persistent_histogram_allocator.cc',
126 -@@ -509,6 +510,7 @@ def write_gn_ninja(path, root_gen_dir, options):
127 - 'base/third_party/icu/icu_utf.cc',
128 - 'base/third_party/nspr/prtime.cc',
129 - 'base/threading/post_task_and_reply_impl.cc',
130 -+ 'base/threading/sequence_local_storage_map.cc',
131 - 'base/threading/sequenced_task_runner_handle.cc',
132 - 'base/threading/sequenced_worker_pool.cc',
133 - 'base/threading/simple_thread.cc',
134
135 diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r11.patch b/www-client/chromium/files/chromium-gn-bootstrap-r11.patch
136 deleted file mode 100644
137 index a2171a2c6e8..00000000000
138 --- a/www-client/chromium/files/chromium-gn-bootstrap-r11.patch
139 +++ /dev/null
140 @@ -1,27 +0,0 @@
141 ---- a/tools/gn/bootstrap/bootstrap.py
142 -+++ b/tools/gn/bootstrap/bootstrap.py
143 -@@ -447,6 +447,7 @@ def write_gn_ninja(path, root_gen_dir, options):
144 - 'base/metrics/field_trial_param_associator.cc',
145 - 'base/metrics/histogram.cc',
146 - 'base/metrics/histogram_base.cc',
147 -+ 'base/metrics/histogram_functions.cc',
148 - 'base/metrics/histogram_samples.cc',
149 - 'base/metrics/metrics_hashes.cc',
150 - 'base/metrics/persistent_histogram_allocator.cc',
151 -@@ -509,6 +510,7 @@ def write_gn_ninja(path, root_gen_dir, options):
152 - 'base/third_party/icu/icu_utf.cc',
153 - 'base/third_party/nspr/prtime.cc',
154 - 'base/threading/post_task_and_reply_impl.cc',
155 -+ 'base/threading/sequence_local_storage_map.cc',
156 - 'base/threading/sequenced_task_runner_handle.cc',
157 - 'base/threading/sequenced_worker_pool.cc',
158 - 'base/threading/simple_thread.cc',
159 -@@ -533,7 +535,7 @@ def write_gn_ninja(path, root_gen_dir, options):
160 - 'base/trace_event/heap_profiler_allocation_context_tracker.cc',
161 - 'base/trace_event/heap_profiler_allocation_register.cc',
162 - 'base/trace_event/heap_profiler_event_filter.cc',
163 -- 'base/trace_event/heap_profiler_heap_dump_writer.cc',
164 -+ 'base/trace_event/heap_profiler_event_writer.cc',
165 - 'base/trace_event/heap_profiler_serialization_state.cc',
166 - 'base/trace_event/heap_profiler_stack_frame_deduplicator.cc',
167 - 'base/trace_event/heap_profiler_string_deduplicator.cc',
168
169 diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r12.patch b/www-client/chromium/files/chromium-gn-bootstrap-r12.patch
170 deleted file mode 100644
171 index b5da93ec0d7..00000000000
172 --- a/www-client/chromium/files/chromium-gn-bootstrap-r12.patch
173 +++ /dev/null
174 @@ -1,10 +0,0 @@
175 ---- a/tools/gn/bootstrap/bootstrap.py.orig 2017-07-12 20:37:42.619009003 +0000
176 -+++ b/tools/gn/bootstrap/bootstrap.py 2017-07-12 20:37:58.495342632 +0000
177 -@@ -467,7 +467,6 @@
178 - 'base/process/process_metrics.cc',
179 - 'base/profiler/scoped_profile.cc',
180 - 'base/profiler/scoped_tracker.cc',
181 -- 'base/profiler/tracked_time.cc',
182 - 'base/rand_util.cc',
183 - 'base/run_loop.cc',
184 - 'base/sequence_token.cc',
185
186 diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r13.patch b/www-client/chromium/files/chromium-gn-bootstrap-r13.patch
187 deleted file mode 100644
188 index abb67a80621..00000000000
189 --- a/www-client/chromium/files/chromium-gn-bootstrap-r13.patch
190 +++ /dev/null
191 @@ -1,18 +0,0 @@
192 ---- a/tools/gn/bootstrap/bootstrap.py
193 -+++ b/tools/gn/bootstrap/bootstrap.py
194 -@@ -467,7 +467,6 @@ def write_gn_ninja(path, root_gen_dir, options):
195 - 'base/process/process_metrics.cc',
196 - 'base/profiler/scoped_profile.cc',
197 - 'base/profiler/scoped_tracker.cc',
198 -- 'base/profiler/tracked_time.cc',
199 - 'base/rand_util.cc',
200 - 'base/run_loop.cc',
201 - 'base/sequence_token.cc',
202 -@@ -567,6 +566,7 @@ def write_gn_ninja(path, root_gen_dir, options):
203 - 'base/tracked_objects.cc',
204 - 'base/tracking_info.cc',
205 - 'base/unguessable_token.cc',
206 -+ 'base/value_iterators.cc',
207 - 'base/values.cc',
208 - 'base/vlog.cc',
209 - ])
210
211 diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r2.patch b/www-client/chromium/files/chromium-gn-bootstrap-r2.patch
212 deleted file mode 100644
213 index 76287e1a56e..00000000000
214 --- a/www-client/chromium/files/chromium-gn-bootstrap-r2.patch
215 +++ /dev/null
216 @@ -1,13 +0,0 @@
217 -Index: tools/gn/bootstrap/bootstrap.py
218 -diff --git a/tools/gn/bootstrap/bootstrap.py b/tools/gn/bootstrap/bootstrap.py
219 -index 38cfb117d29c3895291379f00d8dc8c8b0727474..679170e610f8292bcbeb76508fd247d322a69c79 100755
220 ---- a/tools/gn/bootstrap/bootstrap.py
221 -+++ b/tools/gn/bootstrap/bootstrap.py
222 -@@ -385,6 +385,7 @@ def write_gn_ninja(path, root_gen_dir, options):
223 - 'base/base_switches.cc',
224 - 'base/build_time.cc',
225 - 'base/callback_internal.cc',
226 -+ 'base/callback_helpers.cc',
227 - 'base/command_line.cc',
228 - 'base/debug/activity_tracker.cc',
229 - 'base/debug/alias.cc',
230
231 diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r3.patch b/www-client/chromium/files/chromium-gn-bootstrap-r3.patch
232 deleted file mode 100644
233 index f214059d1cb..00000000000
234 --- a/www-client/chromium/files/chromium-gn-bootstrap-r3.patch
235 +++ /dev/null
236 @@ -1,13 +0,0 @@
237 -Index: tools/gn/bootstrap/bootstrap.py
238 -diff --git a/tools/gn/bootstrap/bootstrap.py b/tools/gn/bootstrap/bootstrap.py
239 -index 75e2eb4cce3ae9554c0a25193712683ac221f6c0..10dd512c085d6476fa40d28b04100dccec30b64f 100755
240 ---- a/tools/gn/bootstrap/bootstrap.py
241 -+++ b/tools/gn/bootstrap/bootstrap.py
242 -@@ -472,6 +472,7 @@ def write_gn_ninja(path, root_gen_dir, options):
243 - 'base/task_scheduler/post_task.cc',
244 - 'base/task_scheduler/priority_queue.cc',
245 - 'base/task_scheduler/scheduler_lock_impl.cc',
246 -+ 'base/task_scheduler/scheduler_single_thread_task_runner_manager.cc',
247 - 'base/task_scheduler/scheduler_worker.cc',
248 - 'base/task_scheduler/scheduler_worker_pool_impl.cc',
249 - 'base/task_scheduler/scheduler_worker_pool_params.cc',
250
251 diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r4.patch b/www-client/chromium/files/chromium-gn-bootstrap-r4.patch
252 deleted file mode 100644
253 index 5849154b393..00000000000
254 --- a/www-client/chromium/files/chromium-gn-bootstrap-r4.patch
255 +++ /dev/null
256 @@ -1,21 +0,0 @@
257 -Index: tools/gn/bootstrap/bootstrap.py
258 -diff --git a/tools/gn/bootstrap/bootstrap.py b/tools/gn/bootstrap/bootstrap.py
259 -index 9bad2b4e6eed9a0208c300079dfff34b1f8f31f2..0bc2e4fb8701f08e6f2d5306f03c17a2f63dbd4e 100755
260 ---- a/tools/gn/bootstrap/bootstrap.py
261 -+++ b/tools/gn/bootstrap/bootstrap.py
262 -@@ -526,6 +526,7 @@ def write_gn_ninja(path, root_gen_dir, options):
263 - 'base/trace_event/process_memory_totals.cc',
264 - 'base/trace_event/trace_buffer.cc',
265 - 'base/trace_event/trace_config.cc',
266 -+ 'base/trace_event/trace_config_category_filter.cc',
267 - 'base/trace_event/trace_event_argument.cc',
268 - 'base/trace_event/trace_event_filter.cc',
269 - 'base/trace_event/trace_event_impl.cc',
270 -@@ -612,6 +613,7 @@ def write_gn_ninja(path, root_gen_dir, options):
271 - 'base/process/internal_linux.cc',
272 - 'base/process/memory_linux.cc',
273 - 'base/process/process_handle_linux.cc',
274 -+ 'base/process/process_info_linux.cc',
275 - 'base/process/process_iterator_linux.cc',
276 - 'base/process/process_linux.cc',
277 - 'base/process/process_metrics_linux.cc',
278
279 diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r5.patch b/www-client/chromium/files/chromium-gn-bootstrap-r5.patch
280 deleted file mode 100644
281 index 5e95036086e..00000000000
282 --- a/www-client/chromium/files/chromium-gn-bootstrap-r5.patch
283 +++ /dev/null
284 @@ -1,11 +0,0 @@
285 ---- a/tools/gn/bootstrap/bootstrap.py.orig 2017-04-28 11:27:52.844988762 +0000
286 -+++ b/tools/gn/bootstrap/bootstrap.py 2017-04-28 11:29:12.698642585 +0000
287 -@@ -503,6 +503,8 @@
288 - 'base/threading/thread_restrictions.cc',
289 - 'base/threading/thread_task_runner_handle.cc',
290 - 'base/threading/worker_pool.cc',
291 -+ 'base/time/default_tick_clock.cc',
292 -+ 'base/time/tick_clock.cc',
293 - 'base/time/time.cc',
294 - 'base/timer/elapsed_timer.cc',
295 - 'base/timer/timer.cc',
296
297 diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r6.patch b/www-client/chromium/files/chromium-gn-bootstrap-r6.patch
298 deleted file mode 100644
299 index ef450ae7c0d..00000000000
300 --- a/www-client/chromium/files/chromium-gn-bootstrap-r6.patch
301 +++ /dev/null
302 @@ -1,18 +0,0 @@
303 ---- a/tools/gn/bootstrap/bootstrap.py.orig 2017-05-05 10:28:25.450118804 +0000
304 -+++ b/tools/gn/bootstrap/bootstrap.py 2017-05-05 10:29:39.339673530 +0000
305 -@@ -546,6 +546,7 @@
306 - 'base/trace_event/memory_infra_background_whitelist.cc',
307 - 'base/trace_event/memory_peak_detector.cc',
308 - 'base/trace_event/memory_tracing_observer.cc',
309 -+ 'base/trace_event/memory_usage_estimator.cc',
310 - 'base/trace_event/process_memory_dump.cc',
311 - 'base/trace_event/process_memory_maps.cc',
312 - 'base/trace_event/process_memory_totals.cc',
313 -@@ -629,6 +630,7 @@
314 - 'tool': 'cxx',
315 - }
316 - static_libraries['base']['sources'].extend([
317 -+ 'base/memory/shared_memory_handle_posix.cc',
318 - 'base/memory/shared_memory_posix.cc',
319 - 'base/memory/shared_memory_tracker.cc',
320 - 'base/nix/xdg_util.cc',
321
322 diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r7.patch b/www-client/chromium/files/chromium-gn-bootstrap-r7.patch
323 deleted file mode 100644
324 index 4fa1d9d4956..00000000000
325 --- a/www-client/chromium/files/chromium-gn-bootstrap-r7.patch
326 +++ /dev/null
327 @@ -1,16 +0,0 @@
328 -Index: tools/gn/bootstrap/bootstrap.py
329 -diff --git a/tools/gn/bootstrap/bootstrap.py b/tools/gn/bootstrap/bootstrap.py
330 -index 5e624eab4fc4294f054bece4fcbd179cd4ce996f..c52779ef4327df3e6adb76b77bc7735e2724bedc 100755
331 ---- a/tools/gn/bootstrap/bootstrap.py
332 -+++ b/tools/gn/bootstrap/bootstrap.py
333 -@@ -600,7 +601,9 @@ def write_gn_ninja(path, root_gen_dir, options):
334 - 'base/threading/platform_thread_posix.cc',
335 - 'base/threading/thread_local_storage_posix.cc',
336 - 'base/threading/worker_pool_posix.cc',
337 -- 'base/time/time_posix.cc',
338 -+ 'base/time/time_conversion_posix.cc',
339 -+ 'base/time/time_exploded_posix.cc',
340 -+ 'base/time/time_now_posix.cc',
341 - 'base/trace_event/heap_profiler_allocation_register_posix.cc',
342 - ])
343 - static_libraries['libevent'] = {
344
345 diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r9.patch b/www-client/chromium/files/chromium-gn-bootstrap-r9.patch
346 deleted file mode 100644
347 index 0fc6cc160f1..00000000000
348 --- a/www-client/chromium/files/chromium-gn-bootstrap-r9.patch
349 +++ /dev/null
350 @@ -1,20 +0,0 @@
351 -diff --git a/tools/gn/bootstrap/bootstrap.py b/tools/gn/bootstrap/bootstrap.py
352 -index e806761..dd564ac 100755
353 ---- a/tools/gn/bootstrap/bootstrap.py
354 -+++ b/tools/gn/bootstrap/bootstrap.py
355 -@@ -410,6 +410,7 @@
356 - 'base/debug/dump_without_crashing.cc',
357 - 'base/debug/stack_trace.cc',
358 - 'base/debug/task_annotator.cc',
359 -+ 'base/debug/thread_heap_usage_tracker.cc',
360 - 'base/environment.cc',
361 - 'base/feature_list.cc',
362 - 'base/files/file.cc',
363 -@@ -507,7 +508,6 @@
364 - 'base/third_party/dmg_fp/g_fmt.cc',
365 - 'base/third_party/icu/icu_utf.cc',
366 - 'base/third_party/nspr/prtime.cc',
367 -- 'base/threading/non_thread_safe_impl.cc',
368 - 'base/threading/post_task_and_reply_impl.cc',
369 - 'base/threading/sequenced_task_runner_handle.cc',
370 - 'base/threading/sequenced_worker_pool.cc',
371
372 diff --git a/www-client/chromium/files/chromium-system-ffmpeg-r4.patch b/www-client/chromium/files/chromium-system-ffmpeg-r4.patch
373 deleted file mode 100644
374 index 3abfc163e8a..00000000000
375 --- a/www-client/chromium/files/chromium-system-ffmpeg-r4.patch
376 +++ /dev/null
377 @@ -1,48 +0,0 @@
378 ---- a/media/ffmpeg/ffmpeg_common.h.orig 2016-09-09 13:16:07.757294768 +0000
379 -+++ b/media/ffmpeg/ffmpeg_common.h 2016-09-09 13:16:41.705989273 +0000
380 -@@ -22,10 +22,6 @@
381 -
382 - // Include FFmpeg header files.
383 - extern "C" {
384 --// Disable deprecated features which result in spammy compile warnings. This
385 --// list of defines must mirror those in the 'defines' section of FFmpeg's
386 --// BUILD.gn file or the headers below will generate different structures!
387 --#define FF_API_CONVERGENCE_DURATION 0
388 - // Upstream libavcodec/utils.c still uses the deprecated
389 - // av_dup_packet(), causing deprecation warnings.
390 - // The normal fix for such things is to disable the feature as below,
391 -@@ -35,7 +35,6 @@
392 - MSVC_PUSH_DISABLE_WARNING(4244);
393 - #include <libavcodec/avcodec.h>
394 - #include <libavformat/avformat.h>
395 --#include <libavformat/internal.h>
396 - #include <libavformat/avio.h>
397 - #include <libavutil/avutil.h>
398 - #include <libavutil/imgutils.h>
399 ---- a/media/filters/ffmpeg_demuxer.cc.orig 2016-09-09 14:21:40.185828912 +0000
400 -+++ b/media/filters/ffmpeg_demuxer.cc 2016-09-09 14:21:52.894089352 +0000
401 -@@ -1185,24 +1185,6 @@
402 - // If no estimate is found, the stream entry will be kInfiniteDuration.
403 - std::vector<base::TimeDelta> start_time_estimates(format_context->nb_streams,
404 - kInfiniteDuration);
405 -- const AVFormatInternal* internal = format_context->internal;
406 -- if (internal && internal->packet_buffer &&
407 -- format_context->start_time != static_cast<int64_t>(AV_NOPTS_VALUE)) {
408 -- struct AVPacketList* packet_buffer = internal->packet_buffer;
409 -- while (packet_buffer != internal->packet_buffer_end) {
410 -- DCHECK_LT(static_cast<size_t>(packet_buffer->pkt.stream_index),
411 -- start_time_estimates.size());
412 -- const AVStream* stream =
413 -- format_context->streams[packet_buffer->pkt.stream_index];
414 -- if (packet_buffer->pkt.pts != static_cast<int64_t>(AV_NOPTS_VALUE)) {
415 -- const base::TimeDelta packet_pts =
416 -- ConvertFromTimeBase(stream->time_base, packet_buffer->pkt.pts);
417 -- if (packet_pts < start_time_estimates[stream->index])
418 -- start_time_estimates[stream->index] = packet_pts;
419 -- }
420 -- packet_buffer = packet_buffer->next;
421 -- }
422 -- }
423 -
424 - std::unique_ptr<MediaTracks> media_tracks(new MediaTracks());
425 -
426
427 diff --git a/www-client/chromium/files/chromium-system-ffmpeg-r5.patch b/www-client/chromium/files/chromium-system-ffmpeg-r5.patch
428 deleted file mode 100644
429 index cf82dd1bb40..00000000000
430 --- a/www-client/chromium/files/chromium-system-ffmpeg-r5.patch
431 +++ /dev/null
432 @@ -1,66 +0,0 @@
433 ---- a/media/ffmpeg/ffmpeg_common.h.orig 2017-04-07 18:17:22.623538889 +0000
434 -+++ b/media/ffmpeg/ffmpeg_common.h 2017-04-07 18:18:16.780656283 +0000
435 -@@ -23,10 +23,12 @@
436 -
437 - // Include FFmpeg header files.
438 - extern "C" {
439 -+#if !defined(USE_SYSTEM_FFMPEG)
440 - // Disable deprecated features which result in spammy compile warnings. This
441 - // list of defines must mirror those in the 'defines' section of FFmpeg's
442 - // BUILD.gn file or the headers below will generate different structures!
443 - #define FF_API_CONVERGENCE_DURATION 0
444 -+#endif // !defined(USE_SYSTEM_FFMPEG)
445 - // Upstream libavcodec/utils.c still uses the deprecated
446 - // av_dup_packet(), causing deprecation warnings.
447 - // The normal fix for such things is to disable the feature as below,
448 -@@ -40,7 +42,9 @@
449 - MSVC_PUSH_DISABLE_WARNING(4244);
450 - #include <libavcodec/avcodec.h>
451 - #include <libavformat/avformat.h>
452 -+#if !defined(USE_SYSTEM_FFMPEG)
453 - #include <libavformat/internal.h>
454 -+#endif // !defined(USE_SYSTEM_FFMPEG)
455 - #include <libavformat/avio.h>
456 - #include <libavutil/avutil.h>
457 - #include <libavutil/imgutils.h>
458 ---- a/media/filters/ffmpeg_demuxer.cc.orig 2017-04-07 18:15:14.776901183 +0000
459 -+++ b/media/filters/ffmpeg_demuxer.cc 2017-04-07 18:15:54.813727201 +0000
460 -@@ -1223,6 +1223,7 @@
461 - // If no estimate is found, the stream entry will be kInfiniteDuration.
462 - std::vector<base::TimeDelta> start_time_estimates(format_context->nb_streams,
463 - kInfiniteDuration);
464 -+#if !defined(USE_SYSTEM_FFMPEG)
465 - const AVFormatInternal* internal = format_context->internal;
466 - if (internal && internal->packet_buffer &&
467 - format_context->start_time != static_cast<int64_t>(AV_NOPTS_VALUE)) {
468 -@@ -1246,6 +1247,7 @@
469 - packet_buffer = packet_buffer->next;
470 - }
471 - }
472 -+#endif // !defined(USE_SYSTEM_FFMPEG)
473 -
474 - std::unique_ptr<MediaTracks> media_tracks(new MediaTracks());
475 -
476 ---- a/build/linux/unbundle/ffmpeg.gn.orig 2017-04-07 18:18:55.793461226 +0000
477 -+++ b/build/linux/unbundle/ffmpeg.gn 2017-04-07 18:20:13.883072465 +0000
478 -@@ -13,6 +13,10 @@
479 - ]
480 - }
481 -
482 -+config("using_system_ffmpeg") {
483 -+ defines = [ "USE_SYSTEM_FFMPEG=1" ]
484 -+}
485 -+
486 - shim_headers("ffmpeg_shim") {
487 - root_path = "."
488 - headers = [
489 -@@ -26,5 +30,8 @@
490 - deps = [
491 - ":ffmpeg_shim",
492 - ]
493 -- public_configs = [ ":system_ffmpeg" ]
494 -+ public_configs = [
495 -+ ":system_ffmpeg",
496 -+ ":using_system_ffmpeg",
497 -+ ]
498 - }
499
500 diff --git a/www-client/chromium/files/chromium-system-harfbuzz-r1.patch b/www-client/chromium/files/chromium-system-harfbuzz-r1.patch
501 deleted file mode 100644
502 index 616dae026c6..00000000000
503 --- a/www-client/chromium/files/chromium-system-harfbuzz-r1.patch
504 +++ /dev/null
505 @@ -1,25 +0,0 @@
506 ---- a/build/linux/unbundle/harfbuzz-ng.gn.orig 2017-05-23 20:53:36.592001223 +0000
507 -+++ b/build/linux/unbundle/harfbuzz-ng.gn 2017-05-23 20:56:18.595309433 +0000
508 -@@ -17,7 +17,21 @@
509 - headers = [ "hb.h" ]
510 - }
511 -
512 --source_set("harfbuzz-ng") {
513 -+group("harfbuzz-ng") {
514 -+ public_deps = [
515 -+ ":harfbuzz-ng-ft",
516 -+ ":harfbuzz-ng-without-freetype",
517 -+ ]
518 -+}
519 -+
520 -+source_set("harfbuzz-ng-ft") {
521 -+ deps = [
522 -+ ":harfbuzz_shim",
523 -+ ]
524 -+ public_configs = [ ":system_harfbuzz" ]
525 -+}
526 -+
527 -+source_set("harfbuzz-ng-without-freetype") {
528 - deps = [
529 - ":harfbuzz_shim",
530 - ]
531
532 diff --git a/www-client/chromium/files/chromium-system-icu-r2.patch b/www-client/chromium/files/chromium-system-icu-r2.patch
533 deleted file mode 100644
534 index e095442ec79..00000000000
535 --- a/www-client/chromium/files/chromium-system-icu-r2.patch
536 +++ /dev/null
537 @@ -1,89 +0,0 @@
538 -Update header list for unbundling ICU 59
539 -
540 -Bug: https://bugs.gentoo.org/619796#c2
541 -
542 ---- a/build/linux/unbundle/icu.gn
543 -+++ b/build/linux/unbundle/icu.gn
544 -@@ -78,7 +78,6 @@ shim_headers("icui18n_shim") {
545 - "unicode/fpositer.h",
546 - "unicode/gender.h",
547 - "unicode/gregocal.h",
548 -- "unicode/locdspnm.h",
549 - "unicode/measfmt.h",
550 - "unicode/measunit.h",
551 - "unicode/measure.h",
552 -@@ -113,15 +112,12 @@ shim_headers("icui18n_shim") {
553 - "unicode/ucol.h",
554 - "unicode/ucoleitr.h",
555 - "unicode/ucsdet.h",
556 -- "unicode/ucurr.h",
557 - "unicode/udat.h",
558 - "unicode/udateintervalformat.h",
559 - "unicode/udatpg.h",
560 -- "unicode/udisplaycontext.h",
561 - "unicode/ufieldpositer.h",
562 - "unicode/uformattable.h",
563 - "unicode/ugender.h",
564 -- "unicode/uldnames.h",
565 - "unicode/ulocdata.h",
566 - "unicode/umsg.h",
567 - "unicode/unirepl.h",
568 -@@ -130,6 +126,7 @@ shim_headers("icui18n_shim") {
569 - "unicode/upluralrules.h",
570 - "unicode/uregex.h",
571 - "unicode/uregion.h",
572 -+ "unicode/ureldatefmt.h",
573 - "unicode/usearch.h",
574 - "unicode/uspoof.h",
575 - "unicode/utmscale.h",
576 -@@ -151,10 +148,13 @@ shim_headers("icuuc_shim") {
577 - "unicode/bytestrie.h",
578 - "unicode/bytestriebuilder.h",
579 - "unicode/caniter.h",
580 -+ "unicode/casemap.h",
581 -+ "unicode/char16ptr.h",
582 - "unicode/chariter.h",
583 - "unicode/dbbi.h",
584 - "unicode/docmain.h",
585 - "unicode/dtintrv.h",
586 -+ "unicode/edits.h",
587 - "unicode/enumset.h",
588 - "unicode/errorcode.h",
589 - "unicode/filteredbrk.h",
590 -@@ -163,6 +163,7 @@ shim_headers("icuuc_shim") {
591 - "unicode/idna.h",
592 - "unicode/listformatter.h",
593 - "unicode/localpointer.h",
594 -+ "unicode/locdspnm.h",
595 - "unicode/locid.h",
596 - "unicode/messagepattern.h",
597 - "unicode/normalizer2.h",
598 -@@ -176,12 +177,14 @@ shim_headers("icuuc_shim") {
599 - "unicode/rep.h",
600 - "unicode/resbund.h",
601 - "unicode/schriter.h",
602 -+ "unicode/simpleformatter.h",
603 - "unicode/std_string.h",
604 - "unicode/strenum.h",
605 - "unicode/stringpiece.h",
606 - "unicode/stringtriebuilder.h",
607 - "unicode/symtable.h",
608 - "unicode/ubidi.h",
609 -+ "unicode/ubiditransform.h",
610 - "unicode/ubrk.h",
611 - "unicode/ucasemap.h",
612 - "unicode/ucat.h",
613 -@@ -195,10 +198,13 @@ shim_headers("icuuc_shim") {
614 - "unicode/ucnv_err.h",
615 - "unicode/ucnvsel.h",
616 - "unicode/uconfig.h",
617 -+ "unicode/ucurr.h",
618 - "unicode/udata.h",
619 -+ "unicode/udisplaycontext.h",
620 - "unicode/uenum.h",
621 - "unicode/uidna.h",
622 - "unicode/uiter.h",
623 -+ "unicode/uldnames.h",
624 - "unicode/ulistformatter.h",
625 - "unicode/uloc.h",
626 - "unicode/umachine.h",
627
628 diff --git a/www-client/chromium/files/chromium-system-libjpeg-r1.patch b/www-client/chromium/files/chromium-system-libjpeg-r1.patch
629 deleted file mode 100644
630 index 3c5d0f7d151..00000000000
631 --- a/www-client/chromium/files/chromium-system-libjpeg-r1.patch
632 +++ /dev/null
633 @@ -1,9 +0,0 @@
634 ---- a/build/linux/unbundle/libjpeg.gn.orig 2017-04-07 18:43:28.687843142 +0000
635 -+++ b/build/linux/unbundle/libjpeg.gn 2017-04-07 18:43:47.156224137 +0000
636 -@@ -21,3 +21,6 @@
637 -
638 - source_set("simd_asm") {
639 - }
640 -+
641 -+config("libjpeg_config") {
642 -+}
643
644 diff --git a/www-client/chromium/files/chromium-system-libpng-r1.patch b/www-client/chromium/files/chromium-system-libpng-r1.patch
645 deleted file mode 100644
646 index 7c329c71f7d..00000000000
647 --- a/www-client/chromium/files/chromium-system-libpng-r1.patch
648 +++ /dev/null
649 @@ -1,18 +0,0 @@
650 ---- a/build/linux/unbundle/libpng.gn.orig 2017-05-17 09:57:24.487799547 +0000
651 -+++ b/build/linux/unbundle/libpng.gn 2017-05-17 09:57:47.680282784 +0000
652 -@@ -5,7 +5,7 @@
653 - import("//build/config/linux/pkg_config.gni")
654 - import("//build/shim_headers.gni")
655 -
656 --pkg_config("system_libpng") {
657 -+pkg_config("libpng_config") {
658 - packages = [ "libpng" ]
659 - }
660 -
661 -@@ -21,5 +21,5 @@
662 - deps = [
663 - ":libpng_shim",
664 - ]
665 -- public_configs = [ ":system_libpng" ]
666 -+ public_configs = [ ":libpng_config" ]
667 - }
668
669 diff --git a/www-client/chromium/files/chromium-system-libwebp-r1.patch b/www-client/chromium/files/chromium-system-libwebp-r1.patch
670 deleted file mode 100644
671 index cf8beabea24..00000000000
672 --- a/www-client/chromium/files/chromium-system-libwebp-r1.patch
673 +++ /dev/null
674 @@ -1,9 +0,0 @@
675 ---- a/build/linux/unbundle/libwebp.gn.orig 2017-05-17 10:12:50.147089090 +0000
676 -+++ b/build/linux/unbundle/libwebp.gn 2017-05-17 10:13:02.763351884 +0000
677 -@@ -6,5 +6,6 @@
678 - libs = [
679 - "webp",
680 - "webpdemux",
681 -+ "webpmux",
682 - ]
683 - }
684
685 diff --git a/www-client/chromium/files/chromium-system-opus-r1.patch b/www-client/chromium/files/chromium-system-opus-r1.patch
686 deleted file mode 100644
687 index d1a9a131a32..00000000000
688 --- a/www-client/chromium/files/chromium-system-opus-r1.patch
689 +++ /dev/null
690 @@ -1,20 +0,0 @@
691 ---- a/build/linux/unbundle/opus.gn.orig 2017-05-05 13:40:51.267582823 +0000
692 -+++ b/build/linux/unbundle/opus.gn 2017-05-05 13:41:38.156561667 +0000
693 -@@ -5,7 +5,7 @@
694 - import("//build/config/linux/pkg_config.gni")
695 - import("//build/shim_headers.gni")
696 -
697 --pkg_config("system_opus") {
698 -+pkg_config("opus_config") {
699 - packages = [ "opus" ]
700 - }
701 -
702 -@@ -23,7 +23,7 @@
703 - deps = [
704 - ":opus_shim",
705 - ]
706 -- public_configs = [ ":system_opus" ]
707 -+ public_configs = [ ":opus_config" ]
708 - }
709 -
710 - source_set("opus_compare") {