diff options
author | Gustavo Alvarez | 2016-05-14 21:55:55 +0200 |
---|---|---|
committer | Gustavo Alvarez | 2016-05-14 21:55:55 +0200 |
commit | f21eccf71057e4f033a257864dc9e53b9b5e2de6 (patch) | |
tree | 3f3ac9532caa4bbd69d5df3d204b063a7561c05d | |
parent | 2d05463e31fbc34ab3a4689b0cc700e1147a20b5 (diff) | |
download | aur-f21eccf71057e4f033a257864dc9e53b9b5e2de6.tar.gz |
Update to 52.0.2729.3
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 21 | ||||
-rw-r--r-- | chromium-dev.install | 9 | ||||
-rw-r--r-- | chromium-widevine-r0.patch | 53 | ||||
-rw-r--r-- | chromium-widevine-r1.patch | 10 | ||||
-rw-r--r-- | enable_vaapi_on_linux-r11.diff (renamed from enable_vaapi_on_linux-r8.diff) | 296 |
7 files changed, 226 insertions, 183 deletions
@@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Fri Apr 22 13:22:40 UTC 2016 +# Sat May 14 19:55:33 UTC 2016 pkgbase = chromium-dev pkgdesc = The open-source project behind Google Chrome (Dev Channel) - pkgver = 51.0.2704.19 + pkgver = 52.0.2729.3 pkgrel = 1 url = http://www.chromium.org install = chromium-dev.install @@ -54,24 +54,24 @@ pkgbase = chromium-dev optdepends = ttf-font: For some typography optdepends = libappindicator-gtk3: Needed for show systray icon in the panel in plasma-next (KF5) options = !strip - source = https://commondatastorage.googleapis.com/chromium-browser-official/chromium-51.0.2704.19.tar.xz + source = https://commondatastorage.googleapis.com/chromium-browser-official/chromium-52.0.2729.3.tar.xz source = chromium-launcher-3.tar.gz::https://github.com/foutrelis/chromium-launcher/archive/v3.tar.gz source = chromium-dev.svg source = https://raw.githubusercontent.com/gentoo/gentoo/master/www-client/chromium/files/chromium-system-ffmpeg-r2.patch source = https://raw.githubusercontent.com/gentoo/gentoo/master/www-client/chromium/files/chromium-snapshot-toolchain-r1.patch - source = enable_vaapi_on_linux-r8.diff + source = enable_vaapi_on_linux-r11.diff source = chromium-system-jinja-r9.patch source = minizip.patch::http://pastebin.com/raw/QCqSDam5 - source = chromium-widevine-r0.patch - sha1sums = d1231e521ec8a82e0d3c071050ddc12b0a5af141 + source = chromium-widevine-r1.patch + sha1sums = 8bc0df24abc34feda818cb7d8489849852ee4515 sha1sums = d18f8d96e80be9c31d994cc6362d7d8041c53319 sha1sums = 336976cb66bf8df71fc7f2e92aa723891b6efb53 sha1sums = 450cd81653499eb50f0f7df1b0d4d1c1620365a5 sha1sums = 7b9c1a7e0e581413dbebb0e894f68ce2f2ba0e6a - sha1sums = 69d217a07f2490413d0bb9e069115dbfc6741497 + sha1sums = a94c39fb32f0ca5b68f16dde4e117537c652dcc8 sha1sums = 1063521b4e3bf1bb25b666ef7423968886fe055c sha1sums = bc90b327b05dbecaa88da43211ae0a4ed0c6c57f - sha1sums = fa9ff0ff9049784b4a1ec37292530ae61aece610 + sha1sums = 3032c9aeb68d80d8ef3cb8029be0d06ee402fa7f makedepends_x86_64 = lib32-gcc-libs makedepends_x86_64 = lib32-zlib diff --git a/.gitignore b/.gitignore index 4e3ab79413f0..2caaa019a35b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,6 @@ !PKGBUILD !chromium-dev.install !chromium-dev.svg -!enable_vaapi_on_linux-r8.diff -!chromium-widevine-r0.patch +!enable_vaapi_on_linux-r11.diff +!chromium-widevine-r1.patch !chromium-system-jinja-r9.patch @@ -18,7 +18,7 @@ _use_gtk3=1 # If set 1, then build with GTK3 support, if set 0, then ## -- Package and components information -- ## ############################################## pkgname=chromium-dev -pkgver=51.0.2704.19 +pkgver=52.0.2729.3 _launcher_ver=3 pkgrel=1 pkgdesc="The open-source project behind Google Chrome (Dev Channel)" @@ -81,26 +81,25 @@ source=("https://commondatastorage.googleapis.com/chromium-browser-official/chro 'https://raw.githubusercontent.com/gentoo/gentoo/master/www-client/chromium/files/chromium-system-ffmpeg-r2.patch' 'https://raw.githubusercontent.com/gentoo/gentoo/master/www-client/chromium/files/chromium-snapshot-toolchain-r1.patch' # Misc Patches - 'enable_vaapi_on_linux-r8.diff' + 'enable_vaapi_on_linux-r11.diff' 'chromium-system-jinja-r9.patch' 'minizip.patch::http://pastebin.com/raw/QCqSDam5' # Patch from crbug (chromium bugtracker) - 'chromium-widevine-r0.patch' # https://crbug.com/473866 + 'chromium-widevine-r1.patch' # https://crbug.com/473866 ) -sha1sums=( #"$(curl -sL https://gsdview.appspot.com/chromium-browser-official/?marker=chromium-${pkgver}.tar.x | awk -v FS='<td>"' -v RS='"</td>' '$0=$2' | head -n1)" - "$(curl -sL "https://commondatastorage.googleapis.com/chromium-browser-official/chromium-${pkgver}.tar.xz.hashes" | grep sha1 | cut -d " " -f3)" +sha1sums=( #"$(curl -sL https://gsdview.appspot.com/chromium-browser-official/?marker=chromium-${pkgver}.tar.xz.hashes | awk -v FS='<td>"' -v RS='"</td>' '$0=$2' | head -n1)" + "$(curl -sL https://commondatastorage.googleapis.com/chromium-browser-official/chromium-${pkgver}.tar.xz.hashes | grep sha1 | cut -d " " -f3)" 'd18f8d96e80be9c31d994cc6362d7d8041c53319' '336976cb66bf8df71fc7f2e92aa723891b6efb53' # Patch form Gentoo - #'c24d14029714d2295f3220a7173a5a7362f578a2' '450cd81653499eb50f0f7df1b0d4d1c1620365a5' '7b9c1a7e0e581413dbebb0e894f68ce2f2ba0e6a' # Misc Patches - '69d217a07f2490413d0bb9e069115dbfc6741497' + 'a94c39fb32f0ca5b68f16dde4e117537c652dcc8' '1063521b4e3bf1bb25b666ef7423968886fe055c' 'bc90b327b05dbecaa88da43211ae0a4ed0c6c57f' # Patch from crbug (chromium bugtracker) - 'fa9ff0ff9049784b4a1ec37292530ae61aece610' + '3032c9aeb68d80d8ef3cb8029be0d06ee402fa7f' ) options=('!strip') install=chromium-dev.install @@ -197,7 +196,6 @@ _necesary=('base/third_party/dmg_fp' 'breakpad/src/third_party/curl' 'chrome/third_party/mozilla_security_manager' 'courgette/third_party' - 'crypto/third_party/nss' 'native_client/src/third_party/dlmalloc' 'native_client_sdk/src/libraries/third_party/newlib-extras' 'net/third_party/mozilla_security_manager' @@ -271,6 +269,7 @@ _necesary=('base/third_party/dmg_fp' 'third_party/pdfium/third_party/zlib_v128' 'third_party/polymer' 'third_party/protobuf' + 'third_party/protobuf/third_party/six' 'third_party/qcms' 'third_party/re2' 'third_party/sfntly' @@ -441,13 +440,13 @@ prepare() { patch -p0 -i "${srcdir}/chromium-snapshot-toolchain-r1.patch" # Misc Patches: - patch -p1 -i "${srcdir}/enable_vaapi_on_linux-r8.diff" + patch -p1 -i "${srcdir}/enable_vaapi_on_linux-r11.diff" patch -p0 -i "${srcdir}/chromium-system-jinja-r9.patch" patch -p1 -i "${srcdir}/minizip.patch" # Patch from crbug (chromium bugtracker) # https://crbug.com/473866 - patch -p0 -i "${srcdir}/chromium-widevine-r0.patch" + patch -p0 -i "${srcdir}/chromium-widevine-r1.patch" sed 's|@WIDEVINE_VERSION@|The Cake Is a Lie|g' -i "third_party/widevine/cdm/stub/widevine_cdm_version.h" ## diff --git a/chromium-dev.install b/chromium-dev.install index 8544bdf64fcf..678d71b9813d 100644 --- a/chromium-dev.install +++ b/chromium-dev.install @@ -19,16 +19,9 @@ ${green}==>${all_off} ${bold}This Chromium package no longer supports custom fla } post_install() { - xdg-icon-resource forceupdate --theme hicolor &> /dev/null - update-desktop-database -q _instructions } post_upgrade() { - post_install $1 -} - -post_remove() { - xdg-icon-resource forceupdate --theme hicolor &> /dev/null - update-desktop-database -q + _instructions } diff --git a/chromium-widevine-r0.patch b/chromium-widevine-r0.patch deleted file mode 100644 index 4ae0ab3ec078..000000000000 --- a/chromium-widevine-r0.patch +++ /dev/null @@ -1,53 +0,0 @@ -diff -upr chrome/common/chrome_content_client.cc chrome/common/chrome_content_client.cc ---- chrome/common/chrome_content_client.cc 2016-01-20 22:01:20.000000000 +0200 -+++ chrome/common/chrome_content_client.cc 2016-01-21 20:02:02.788936626 +0200 -@@ -158,7 +158,12 @@ void ComputeBuiltInPlugins(std::vector<c - #if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS) && \ - !defined(WIDEVINE_CDM_IS_COMPONENT) - static bool skip_widevine_cdm_file_check = false; -- if (PathService::Get(chrome::FILE_WIDEVINE_CDM_ADAPTER, &path)) { -+ bool widevine_cdm_present = -+ skip_widevine_cdm_file_check || -+ (PathService::Get(chrome::FILE_WIDEVINE_CDM, &path) && -+ base::PathExists(path)); -+ if (widevine_cdm_present && -+ PathService::Get(chrome::FILE_WIDEVINE_CDM_ADAPTER, &path)) { - if (skip_widevine_cdm_file_check || base::PathExists(path)) { - content::PepperPluginInfo widevine_cdm; - widevine_cdm.is_out_of_process = true; -diff -upr chrome/common/chrome_paths.cc chrome/common/chrome_paths.cc ---- chrome/common/chrome_paths.cc 2016-01-20 22:01:20.000000000 +0200 -+++ chrome/common/chrome_paths.cc 2016-01-21 19:18:51.287978456 +0200 -@@ -375,6 +375,11 @@ bool PathProvider(int key, base::FilePat - return false; - cur = cur.AppendASCII(kWidevineCdmAdapterFileName); - break; -+ case chrome::FILE_WIDEVINE_CDM: -+ if (!GetInternalPluginsDirectory(&cur)) -+ return false; -+ cur = cur.AppendASCII(kWidevineCdmFileName); -+ break; - #endif // defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS) - case chrome::FILE_RESOURCES_PACK: - #if defined(OS_MACOSX) && !defined(OS_IOS) -diff -upr chrome/common/chrome_paths.h chrome/common/chrome_paths.h ---- chrome/common/chrome_paths.h 2016-01-14 03:49:22.000000000 +0200 -+++ chrome/common/chrome_paths.h 2016-01-21 19:18:51.287978456 +0200 -@@ -99,6 +99,7 @@ enum { - DIR_COMPONENT_WIDEVINE_CDM, // Directory that contains component-updated - // Widevine CDM files. - FILE_WIDEVINE_CDM_ADAPTER, // Full path to the Widevine CDM adapter file. -+ FILE_WIDEVINE_CDM, // Full path to the Widevine CDM file. - FILE_RESOURCES_PACK, // Full path to the .pak file containing - // binary data (e.g., html files and images - // used by internal pages). -diff -upr third_party/widevine/cdm/stub/widevine_cdm_version.h third_party/widevine/cdm/stub/widevine_cdm_version.h ---- third_party/widevine/cdm/stub/widevine_cdm_version.h 2016-01-14 01:05:17.000000000 +0200 -+++ third_party/widevine/cdm/stub/widevine_cdm_version.h 2016-01-21 19:18:51.287978456 +0200 -@@ -12,4 +12,6 @@ - - #define WIDEVINE_CDM_AVAILABLE - -+#define WIDEVINE_CDM_VERSION_STRING "@WIDEVINE_VERSION@" -+ - #endif // WIDEVINE_CDM_VERSION_H_ diff --git a/chromium-widevine-r1.patch b/chromium-widevine-r1.patch new file mode 100644 index 000000000000..cf14eba47741 --- /dev/null +++ b/chromium-widevine-r1.patch @@ -0,0 +1,10 @@ +diff -upr third_party/widevine/cdm/stub/widevine_cdm_version.h third_party/widevine/cdm/stub/widevine_cdm_version.h +--- third_party/widevine/cdm/stub/widevine_cdm_version.h 2016-01-14 01:05:17.000000000 +0200 ++++ third_party/widevine/cdm/stub/widevine_cdm_version.h 2016-01-21 19:18:51.287978456 +0200 +@@ -12,4 +12,6 @@ + + #define WIDEVINE_CDM_AVAILABLE + ++#define WIDEVINE_CDM_VERSION_STRING "@WIDEVINE_VERSION@" ++ + #endif // WIDEVINE_CDM_VERSION_H_ diff --git a/enable_vaapi_on_linux-r8.diff b/enable_vaapi_on_linux-r11.diff index 519f7940223c..f45eddcd25e4 100644 --- a/enable_vaapi_on_linux-r8.diff +++ b/enable_vaapi_on_linux-r11.diff @@ -1,15 +1,26 @@ ---- chromium-51.0.2704.7/content/common/gpu/media/gpu_video_decode_accelerator_factory_impl.cc.orig 2016-04-14 21:02:04.000000000 +0200 -+++ chromium-51.0.2704.7/content/common/gpu/media/gpu_video_decode_accelerator_factory_impl.cc 2016-04-15 16:40:24.917138658 +0200 -@@ -13,7 +13,7 @@ - #include "content/common/gpu/media/dxva_video_decode_accelerator_win.h" +--- orig/media/gpu/gpu_video_decode_accelerator_factory_impl.cc ++++ mod/media/gpu/gpu_video_decode_accelerator_factory_impl.cc +@@ -13,17 +13,14 @@ + #include "media/gpu/dxva_video_decode_accelerator_win.h" #elif defined(OS_MACOSX) - #include "content/common/gpu/media/vt_video_decode_accelerator_mac.h" + #include "media/gpu/vt_video_decode_accelerator_mac.h" -#elif defined(OS_CHROMEOS) -+#elif defined(OS_CHROMEOS) || defined(OS_LINUX) - #if defined(USE_V4L2_CODEC) - #include "content/common/gpu/media/v4l2_device.h" - #include "content/common/gpu/media/v4l2_slice_video_decode_accelerator.h" -@@ -78,7 +78,7 @@ +-#if defined(USE_V4L2_CODEC) ++#elif defined(OS_CHROMEOS) && defined(USE_V4L2_CODEC) + #include "media/gpu/v4l2_device.h" + #include "media/gpu/v4l2_slice_video_decode_accelerator.h" + #include "media/gpu/v4l2_video_decode_accelerator.h" + #include "ui/gl/gl_surface_egl.h" +-#endif +-#if defined(ARCH_CPU_X86_FAMILY) ++#elif (defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)) || defined(OS_LINUX) + #include "media/gpu/vaapi_video_decode_accelerator.h" + #include "ui/gl/gl_implementation.h" +-#endif + #elif defined(OS_ANDROID) + #include "media/gpu/android_video_decode_accelerator.h" + #endif +@@ -78,7 +75,7 @@ #if defined(OS_WIN) capabilities.supported_profiles = DXVAVideoDecodeAccelerator::GetSupportedProfiles(); @@ -18,7 +29,7 @@ media::VideoDecodeAccelerator::SupportedProfiles vda_profiles; #if defined(USE_V4L2_CODEC) vda_profiles = V4L2VideoDecodeAccelerator::GetSupportedProfiles(); -@@ -125,7 +125,7 @@ +@@ -129,7 +126,7 @@ &GpuVideoDecodeAcceleratorFactoryImpl::CreateV4L2VDA, &GpuVideoDecodeAcceleratorFactoryImpl::CreateV4L2SVDA, #endif @@ -27,28 +38,28 @@ &GpuVideoDecodeAcceleratorFactoryImpl::CreateVaapiVDA, #endif #if defined(OS_MACOSX) -@@ -194,7 +194,7 @@ +@@ -194,7 +191,7 @@ } #endif -#if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) +#if (defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)) || defined(OS_LINUX) - scoped_ptr<media::VideoDecodeAccelerator> + std::unique_ptr<media::VideoDecodeAccelerator> GpuVideoDecodeAcceleratorFactoryImpl::CreateVaapiVDA( const gpu::GpuPreferences& gpu_preferences) const { ---- chromium-51.0.2704.7/content/common/gpu/media/gpu_video_decode_accelerator_factory_impl.h.orig 2016-04-15 16:30:24.365900056 +0200 -+++ chromium-51.0.2704.7/content/common/gpu/media/gpu_video_decode_accelerator_factory_impl.h 2016-04-15 16:37:53.679361457 +0200 -@@ -89,7 +89,7 @@ - scoped_ptr<media::VideoDecodeAccelerator> CreateV4L2SVDA( +--- orig/media/gpu/gpu_video_decode_accelerator_factory_impl.h ++++ mod/media/gpu/gpu_video_decode_accelerator_factory_impl.h +@@ -95,7 +95,7 @@ + std::unique_ptr<media::VideoDecodeAccelerator> CreateV4L2SVDA( const gpu::GpuPreferences& gpu_preferences) const; #endif -#if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) +#if (defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)) || defined(OS_LINUX) - scoped_ptr<media::VideoDecodeAccelerator> CreateVaapiVDA( + std::unique_ptr<media::VideoDecodeAccelerator> CreateVaapiVDA( const gpu::GpuPreferences& gpu_preferences) const; #endif ---- chromium-51.0.2704.7/content/common/gpu/media/gpu_video_decode_accelerator.cc.orig 2016-04-14 21:02:04.000000000 +0200 -+++ chromium-51.0.2704.7/content/common/gpu/media/gpu_video_decode_accelerator.cc 2016-04-15 16:48:27.885330806 +0200 +--- orig/media/gpu/ipc/service/gpu_video_decode_accelerator.cc ++++ mod/media/gpu/ipc/service/gpu_video_decode_accelerator.cc @@ -57,7 +57,7 @@ return true; } @@ -67,29 +78,30 @@ bind_image_cb_ = base::Bind(&BindImage, stub_->AsWeakPtr()); #endif get_gles2_decoder_cb_ = base::Bind(&GetGLES2Decoder, stub_->AsWeakPtr()); ---- dev.vivid.orig/content/content_common.gypi 2015-06-02 15:12:59.295303719 -0400 -+++ dev.vivid/content/content_common.gypi 2015-06-02 15:12:59.289303797 -0400 -@@ -826,7 +826,7 @@ + +--- orig/media/media_gpu.gypi ++++ mod/media/media_gpu.gypi +@@ -869,7 +869,7 @@ }, ], }], - ['chromeos==1', { + ['chromeos==1 or desktop_linux==1', { 'sources': [ - 'common/gpu/media/accelerated_video_decoder.h', - 'common/gpu/media/h264_decoder.cc', -@@ -875,7 +875,7 @@ - 'common/gpu/media/tegra_v4l2_device.h', + 'gpu/accelerated_video_decoder.h', + 'gpu/h264_decoder.cc', +@@ -925,7 +925,7 @@ + 'gpu/tegra_v4l2_device.h', ], }], - ['target_arch != "arm" and chromeos == 1', { -+ ['target_arch != "arm" and (chromeos == 1 or desktop_linux == 1)', { ++ ['(target_arch != "arm" and chromeos == 1) or desktop_linux == 1', { 'dependencies': [ '../media/media.gyp:media', '../third_party/libyuv/libyuv.gyp:libyuv', ---- dev.vivid.orig/content/content_gpu.gypi 2015-06-02 15:12:59.295303719 -0400 -+++ dev.vivid/content/content_gpu.gypi 2015-06-02 15:12:59.289303797 -0400 -@@ -36,7 +36,7 @@ +--- orig/content/content_gpu.gypi ++++ mod/content/content_gpu.gypi +@@ -41,7 +41,7 @@ ], }, }], @@ -98,53 +110,63 @@ 'include_dirs': [ '<(DEPTH)/third_party/libva', ], ---- dev.vivid.orig/content/content_tests.gypi 2015-06-02 15:12:59.295303719 -0400 -+++ dev.vivid/content/content_tests.gypi 2015-06-02 15:12:59.289303797 -0400 -@@ -1651,7 +1651,7 @@ - }, - ] +--- orig/media/media.gyp ++++ mod/media/media.gyp +@@ -1784,7 +1784,7 @@ + ], }], + - ['chromeos==1 and target_arch != "arm"', { -+ ['(chromeos==1 or desktop_linux==1) and target_arch != "arm"', { ++ ['desktop_linux==1 or (chromeos==1 and target_arch != "arm")', { 'targets': [ { 'target_name': 'vaapi_jpeg_decoder_unittest', ---- dev.vivid.orig/content/public/common/content_switches.cc 2015-06-02 15:12:59.295303719 -0400 -+++ dev.vivid/content/public/common/content_switches.cc 2015-06-02 15:12:59.290303784 -0400 -@@ -962,7 +962,7 @@ - // Disable web audio API. - const char kDisableWebAudio[] = "disable-webaudio"; - --#if defined(OS_CHROMEOS) -+#if defined(OS_CHROMEOS) || defined(OS_LINUX) +--- orig/content/public/common/content_switches.cc ++++ mod/content/public/common/content_switches.cc +@@ -963,7 +963,9 @@ const char kEnableAudioSupportForDesktop + #if defined(OS_CHROMEOS) // Disables panel fitting (used for mirror mode). const char kDisablePanelFitting[] = "disable-panel-fitting"; - ---- dev.vivid.orig/content/public/common/content_switches.h 2015-06-02 15:12:59.295303719 -0400 -+++ dev.vivid/content/public/common/content_switches.h 2015-06-02 15:12:59.290303784 -0400 -@@ -273,7 +273,7 @@ - - CONTENT_EXPORT extern const char kDisableWebAudio[]; - --#if defined(OS_CHROMEOS) ++#endif + +#if defined(OS_CHROMEOS) || defined(OS_LINUX) + // Disables VA-API accelerated video encode. + const char kDisableVaapiAcceleratedVideoEncode[] = + "disable-vaapi-accelerated-video-encode"; +--- orig/content/public/common/content_switches.h ++++ mod/content/public/common/content_switches.h +@@ -278,6 +278,8 @@ CONTENT_EXPORT extern const char kSyncIn + + #if defined(OS_CHROMEOS) CONTENT_EXPORT extern const char kDisablePanelFitting[]; ++#endif ++#if defined(OS_CHROMEOS) || defined(OS_LINUX) CONTENT_EXPORT extern const char kDisableVaapiAcceleratedVideoEncode[]; #endif ---- dev.vivid.orig/media/media.gyp 2015-06-02 15:12:59.295303719 -0400 -+++ dev.vivid/media/media.gyp 2015-06-02 15:12:59.290303784 -0400 -@@ -708,7 +708,7 @@ + +--- orig/media/media.gyp ++++ mod/media/media.gyp +@@ -734,7 +734,7 @@ ], }], # For VaapiVideoEncodeAccelerator. - ['target_arch != "arm" and chromeos == 1', { -+ ['target_arch != "arm" and (chromeos == 1 or desktop_linux == 1)', { ++ ['(target_arch != "arm" and chromeos == 1) or desktop_linux == 1', { 'sources': [ 'filters/h264_bitstream_buffer.cc', 'filters/h264_bitstream_buffer.h', ---- dev.vivid.orig/gpu/config/software_rendering_list_json.cc 2015-06-02 15:12:59.295303719 -0400 -+++ dev.vivid/gpu/config/software_rendering_list_json.cc 2015-06-02 15:12:59.290303784 -0400 -@@ -475,17 +475,6 @@ +@@ -1355,7 +1355,7 @@ + 'cdm/cdm_adapter_unittest.cc', + ], + }], +- ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', { ++ ['(target_arch != "arm" and chromeos == 1) or desktop_linux == 1 and use_x11 == 1', { + 'sources': [ + 'filters/h264_bitstream_buffer_unittest.cc', + ], +--- orig/gpu/config/software_rendering_list_json.cc ++++ mod/gpu/config/software_rendering_list_json.cc +@@ -484,17 +484,6 @@ const char kSoftwareRenderingListJson[] ] }, { @@ -162,52 +184,40 @@ "id": 49, "description": "NVidia GeForce GT 650M can cause the system to hang with flash 3D", "cr_bugs": [140175], -@@ -1034,6 +1023,11 @@ - "type": "android" - }, - "gl_renderer": ".*Google.*" -+ }, -+ { -+ "os": { -+ "type": "linux" -+ } - } - ], - "features": [ ---- dev.vivid.orig/content/common/sandbox_linux/bpf_gpu_policy_linux.cc 2015-06-02 15:12:59.295303719 -0400 -+++ dev.vivid/content/common/sandbox_linux/bpf_gpu_policy_linux.cc 2015-06-02 15:12:59.291303771 -0400 -@@ -21,6 +21,8 @@ - #include "base/logging.h" +--- orig/content/common/sandbox_linux/bpf_gpu_policy_linux.cc ++++ mod/content/common/sandbox_linux/bpf_gpu_policy_linux.cc +@@ -22,6 +22,8 @@ + #include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "build/build_config.h" +// Auto-generated for dlopen libva libraries -+#include "content/common/gpu/media/va_stubs.h" ++#include "out/Release/gen/va/media/gpu/va_stubs.h" #include "content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h" #include "content/common/sandbox_linux/sandbox_seccomp_bpf_linux.h" #include "content/common/set_process_title.h" -@@ -31,6 +33,8 @@ +@@ -32,6 +34,8 @@ #include "sandbox/linux/syscall_broker/broker_file_permission.h" #include "sandbox/linux/syscall_broker/broker_process.h" #include "sandbox/linux/system_headers/linux_syscalls.h" +#include "third_party/libva/va/va.h" +#include "third_party/libva/va/va_x11.h" - + using sandbox::arch_seccomp_data; using sandbox::bpf_dsl::Allow; -@@ -40,6 +44,11 @@ +@@ -41,6 +45,11 @@ using sandbox::syscall_broker::BrokerFil using sandbox::syscall_broker::BrokerProcess; using sandbox::SyscallSets; - -+using content_common_gpu_media::kModuleVa; -+using content_common_gpu_media::kModuleVa_x11; -+using content_common_gpu_media::InitializeStubs; -+using content_common_gpu_media::StubPathMap; + ++using media_gpu::kModuleVa; ++using media_gpu::kModuleVa_x11; ++using media_gpu::InitializeStubs; ++using media_gpu::StubPathMap; + namespace content { - + namespace { -@@ -94,7 +103,7 @@ - +@@ -95,7 +104,7 @@ inline bool UseLibV4L2() { + bool IsAcceleratedVaapiVideoEncodeEnabled() { bool accelerated_encode_enabled = false; -#if defined(OS_CHROMEOS) @@ -215,7 +225,7 @@ const base::CommandLine& command_line = *base::CommandLine::ForCurrentProcess(); accelerated_encode_enabled = -@@ -295,27 +304,41 @@ +@@ -300,27 +309,41 @@ bool GpuProcessPolicy::PreSandboxHook() // inside the sandbox, so preload them now. if (IsAcceleratedVaapiVideoEncodeEnabled() || IsAcceleratedVideoDecodeEnabled()) { @@ -229,7 +239,7 @@ + VLOG(1) << "Failed to initialize stubs"; + return false; + } - + - if (IsArchitectureX86_64()) { - I965DrvVideoPath = "/usr/lib64/va/drivers/i965_drv_video.so"; - I965HybridDrvVideoPath = "/usr/lib64/va/drivers/hybrid_drv_video.so"; @@ -252,7 +262,7 @@ + VLOG(1) << "Failed to call vaGetDisplay()"; + return false; } - + - dlopen(I965DrvVideoPath, RTLD_NOW|RTLD_GLOBAL|RTLD_NODELETE); - if (I965HybridDrvVideoPath) - dlopen(I965HybridDrvVideoPath, RTLD_NOW|RTLD_GLOBAL|RTLD_NODELETE); @@ -272,12 +282,12 @@ + } + } // end of IsAcceleratedVaapiVideoEncodeEnabled() || IsAcceleratedVideoDecodeEnabled() + } // end of IsArchitectureX86_64() || IsArchitectureI386() - + return true; } ---- chromium-50.0.2652.0/chrome/browser/about_flags.cc 2016-02-17 00:01:07.000000000 +0100 -+++ chromium-50.0.2652.0/chrome/browser/about_flags.cc.new 2016-02-17 18:41:33.115828319 +0100 -@@ -859,7 +859,7 @@ +--- orig/chrome/browser/about_flags.cc ++++ mod/chrome/browser/about_flags.cc +@@ -841,7 +841,7 @@ const FeatureEntry kFeatureEntries[] = { "disable-accelerated-video-decode", IDS_FLAGS_ACCELERATED_VIDEO_DECODE_NAME, IDS_FLAGS_ACCELERATED_VIDEO_DECODE_DESCRIPTION, @@ -286,9 +296,9 @@ SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedVideoDecode), }, #if defined(USE_ASH) ---- dev.vivid.orig/content/common/gpu/media/vaapi_wrapper.cc 2015-06-02 15:12:59.295303719 -0400 -+++ dev.vivid/content/common/gpu/media/vaapi_wrapper.cc 2015-06-02 15:12:59.293303745 -0400 -@@ -146,7 +146,7 @@ +--- orig/media/gpu/vaapi_wrapper.cc ++++ mod/media/gpu/vaapi_wrapper.cc +@@ -184,7 +184,7 @@ scoped_refptr<VaapiWrapper> VaapiWrapper VAProfile va_profile, const base::Closure& report_error_to_uma_cb) { if (!profile_infos_.Get().IsProfileSupported(mode, va_profile)) { @@ -296,8 +306,31 @@ + VLOG(1) << "Unsupported va_profile: " << va_profile; return nullptr; } - -@@ -378,7 +378,7 @@ + +@@ -339,15 +339,17 @@ VaapiWrapper::GetSupportedProfileInfosFo + bool VaapiWrapper::VaInitialize(const base::Closure& report_error_to_uma_cb) { + static bool vaapi_functions_initialized = PostSandboxInitialization(); + if (!vaapi_functions_initialized) { +- bool running_on_chromeos = false; +-#if defined(OS_CHROMEOS) ++ bool error_level_logging = false; ++#if defined(OS_LINUX) ++ error_level_logging = true; ++#elif defined(OS_CHROMEOS) + // When chrome runs on linux with chromeos=1, do not log error message + // without VAAPI libraries. +- running_on_chromeos = base::SysInfo::IsRunningOnChromeOS(); ++ error_level_logging = base::SysInfo::IsRunningOnChromeOS(); + #endif + static const char kErrorMsg[] = "Failed to initialize VAAPI libs"; +- if (running_on_chromeos) +- LOG(ERROR) << kErrorMsg; ++ if (error_level_logging) ++ VLOG(1) << kErrorMsg; + else + DVLOG(1) << kErrorMsg; + return false; +@@ -415,7 +417,7 @@ bool VaapiWrapper::IsEntrypointSupported if (std::find(supported_entrypoints.begin(), supported_entrypoints.end(), entrypoint) == supported_entrypoints.end()) { @@ -306,7 +339,7 @@ return false; } return true; -@@ -402,8 +402,8 @@ +@@ -439,8 +441,8 @@ bool VaapiWrapper::AreAttribsSupported_L if (attribs[i].type != required_attribs[i].type || (attribs[i].value & required_attribs[i].value) != required_attribs[i].value) { @@ -317,3 +350,64 @@ return false; } } +--- orig/media/gpu/vaapi_video_decode_accelerator.cc ++++ mod/media/gpu/vaapi_video_decode_accelerator.cc +@@ -333,17 +333,17 @@ bool VaapiVideoDecodeAccelerator::Initia + + base::AutoLock auto_lock(lock_); + DCHECK_EQ(state_, kUninitialized); +- DVLOG(2) << "Initializing VAVDA, profile: " << profile; ++ VLOG(1) << "Initializing VAVDA, profile: " << profile; + + #if defined(USE_X11) + if (gfx::GetGLImplementation() != gfx::kGLImplementationDesktopGL) { +- DVLOG(1) << "HW video decode acceleration not available without " ++ VLOG(1) << "HW video decode acceleration not available without " + "DesktopGL (GLX)."; + return false; + } + #elif defined(USE_OZONE) + if (gfx::GetGLImplementation() != gfx::kGLImplementationEGLGLES2) { +- DVLOG(1) << "HW video decode acceleration not available without " ++ VLOG(1) << "HW video decode acceleration not available without " + << "EGLGLES2."; + return false; + } +@@ -353,7 +353,7 @@ bool VaapiVideoDecodeAccelerator::Initia + VaapiWrapper::kDecode, profile, base::Bind(&ReportToUMA, VAAPI_ERROR)); + + if (!vaapi_wrapper_.get()) { +- DVLOG(1) << "Failed initializing VAAPI for profile " << profile; ++ VLOG(1) << "Failed initializing VAAPI for profile " << profile; + return false; + } + +@@ -370,7 +370,7 @@ bool VaapiVideoDecodeAccelerator::Initia + vp9_accelerator_.reset(new VaapiVP9Accelerator(this, vaapi_wrapper_.get())); + decoder_.reset(new VP9Decoder(vp9_accelerator_.get())); + } else { +- DLOG(ERROR) << "Unsupported profile " << profile; ++ VLOG(1) << "Unsupported profile " << profile; + return false; + } + +--- orig/content/gpu/gpu_main.cc ++++ mod/content/gpu/gpu_main.cc +@@ -73,7 +73,7 @@ + #include "content/common/sandbox_mac.h" + #endif + +-#if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) ++#if (defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)) || defined(OS_LINUX) + #include "media/gpu/vaapi_wrapper.h" + #endif + +@@ -248,7 +248,7 @@ int GpuMain(const MainFunctionParams& pa + GetGpuInfoFromCommandLine(gpu_info, command_line); + gpu_info.in_process_gpu = false; + +-#if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) ++#if (defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)) || defined(OS_LINUX) + media::VaapiWrapper::PreSandboxInitialization(); + #endif + |