summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-gpu_ipc_service_gpu__init.cc
diff options
context:
space:
mode:
authorRobert Nagy <robert@openbsd.org>2022-03-29 22:42:38 +0200
committerRene Ladan <rene@FreeBSD.org>2022-03-29 23:12:41 +0200
commitd2c7aaaca13965ed2f7b6d3bd4930b5561fdf682 (patch)
treeaf8ff48b5ed19039f09ff491783c4d806738009f /www/chromium/files/patch-gpu_ipc_service_gpu__init.cc
parentsysutils/py-salt: Fix TCP transport (diff)
www/chromium: update to 100.0.4896.60
Enable some more unit tests. Security: ab2d7f62-af9d-11ec-a0b8-3065ec8fd3ec (cherry picked from commit 1e683edf9a258d43c95b485ad96f5c39860770cb)
Diffstat (limited to 'www/chromium/files/patch-gpu_ipc_service_gpu__init.cc')
-rw-r--r--www/chromium/files/patch-gpu_ipc_service_gpu__init.cc44
1 files changed, 13 insertions, 31 deletions
diff --git a/www/chromium/files/patch-gpu_ipc_service_gpu__init.cc b/www/chromium/files/patch-gpu_ipc_service_gpu__init.cc
index 6ea83eae1ce1..291f1791a3d3 100644
--- a/www/chromium/files/patch-gpu_ipc_service_gpu__init.cc
+++ b/www/chromium/files/patch-gpu_ipc_service_gpu__init.cc
@@ -1,33 +1,15 @@
---- gpu/ipc/service/gpu_init.cc.orig 2022-02-28 16:54:41 UTC
+--- gpu/ipc/service/gpu_init.cc.orig 2022-03-25 21:59:56 UTC
+++ gpu/ipc/service/gpu_init.cc
-@@ -122,7 +122,7 @@ void InitializePlatformOverlaySettings(GPUInfo* gpu_in
- }
-
- #if BUILDFLAG(IS_CHROMEOS_LACROS) || \
-- (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMECAST))
-+ (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMECAST)) && !BUILDFLAG(IS_BSD)
- bool CanAccessNvidiaDeviceFile() {
- bool res = true;
- base::ScopedBlockingCall scoped_blocking_call(FROM_HERE,
-@@ -220,7 +220,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
- device_perf_info_ = device_perf_info;
- }
-
--#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) && !BUILDFLAG(IS_BSD)
- if (gpu_info_.gpu.vendor_id == 0x10de && // NVIDIA
- gpu_info_.gpu.driver_vendor == "NVIDIA" && !CanAccessNvidiaDeviceFile())
- return false;
-@@ -284,7 +284,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
- delayed_watchdog_enable = true;
+@@ -278,7 +278,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
+ enable_watchdog = false;
#endif
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
- // PreSandbox is mainly for resource handling and not related to the GPU
- // driver, it doesn't need the GPU watchdog. The loadLibrary may take long
- // time that killing and restarting the GPU process will not help.
-@@ -324,7 +324,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
+ bool gpu_sandbox_start_early = gpu_preferences_.gpu_sandbox_start_early;
+ #else // !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS))
+ // For some reasons MacOSX's VideoToolbox might crash when called after
+@@ -328,7 +328,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
}
bool attempted_startsandbox = false;
@@ -36,8 +18,8 @@
// On Chrome OS ARM Mali, GPU driver userspace creates threads when
// initializing a GL context, so start the sandbox early.
// TODO(zmo): Need to collect OS version before this.
-@@ -373,7 +373,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
- }
+@@ -377,7 +377,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
+
if (gl_initialized && gl_use_swiftshader_ &&
!gl::IsSoftwareGLImplementation(gl::GetGLImplementationParts())) {
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
@@ -45,7 +27,7 @@
VLOG(1) << "Quit GPU process launch to fallback to SwiftShader cleanly "
<< "on Linux";
return false;
-@@ -407,7 +407,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
+@@ -410,7 +410,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
}
}
@@ -54,7 +36,7 @@
// The ContentSandboxHelper is currently the only one implementation of
// GpuSandboxHelper and it has no dependency. Except on Linux where
// VaapiWrapper checks the GL implementation to determine which display
-@@ -460,7 +460,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
+@@ -469,7 +469,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
command_line, gpu_feature_info_,
gpu_preferences_.disable_software_rasterizer, false);
if (gl_use_swiftshader_) {
@@ -63,7 +45,7 @@
VLOG(1) << "Quit GPU process launch to fallback to SwiftShader cleanly "
<< "on Linux";
return false;
-@@ -566,7 +566,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
+@@ -591,7 +591,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
InitializePlatformOverlaySettings(&gpu_info_, gpu_feature_info_);
@@ -72,7 +54,7 @@
// Driver may create a compatibility profile context when collect graphics
// information on Linux platform. Try to collect graphics information
// based on core profile context after disabling platform extensions.
-@@ -799,7 +799,7 @@ void GpuInit::InitializeInProcess(base::CommandLine* c
+@@ -822,7 +822,7 @@ void GpuInit::InitializeInProcess(base::CommandLine* c
InitializePlatformOverlaySettings(&gpu_info_, gpu_feature_info_);