mirror of
https://git.freebsd.org/ports.git
synced 2025-06-30 09:00:33 -04:00
Changelog: - https://github.com/electron/electron/releases/tag/v22.0.2 - https://github.com/electron/electron/releases/tag/v22.0.3 - https://github.com/electron/electron/releases/tag/v22.1.0 PR: 269194 Reported by: Yonas Yanfa <yonas.yanfa@gmail.com> Approved by: mikael (maintainer)
47 lines
2.1 KiB
C++
47 lines
2.1 KiB
C++
--- content/gpu/gpu_main.cc.orig 2023-01-30 07:58:58 UTC
|
|
+++ content/gpu/gpu_main.cc
|
|
@@ -87,7 +87,7 @@
|
|
#include "sandbox/win/src/sandbox.h"
|
|
#endif
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
#include "content/gpu/gpu_sandbox_hook_linux.h"
|
|
#include "sandbox/policy/linux/sandbox_linux.h"
|
|
#include "sandbox/policy/sandbox_type.h"
|
|
@@ -109,7 +109,7 @@ namespace content {
|
|
|
|
namespace {
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
bool StartSandboxLinux(gpu::GpuWatchdogThread*,
|
|
const gpu::GPUInfo*,
|
|
const gpu::GpuPreferences&);
|
|
@@ -171,7 +171,7 @@ class ContentSandboxHelper : public gpu::GpuSandboxHel
|
|
bool EnsureSandboxInitialized(gpu::GpuWatchdogThread* watchdog_thread,
|
|
const gpu::GPUInfo* gpu_info,
|
|
const gpu::GpuPreferences& gpu_prefs) override {
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
return StartSandboxLinux(watchdog_thread, gpu_info, gpu_prefs);
|
|
#elif BUILDFLAG(IS_WIN)
|
|
return StartSandboxWindows(sandbox_info_);
|
|
@@ -272,7 +272,7 @@ int GpuMain(MainFunctionParams parameters) {
|
|
std::make_unique<base::SingleThreadTaskExecutor>(
|
|
gpu_preferences.message_pump_type);
|
|
}
|
|
-#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
#error "Unsupported Linux platform."
|
|
#elif BUILDFLAG(IS_MAC)
|
|
// Cross-process CoreAnimation requires a CFRunLoop to function at all, and
|
|
@@ -406,7 +406,7 @@ int GpuMain(MainFunctionParams parameters) {
|
|
|
|
namespace {
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
bool StartSandboxLinux(gpu::GpuWatchdogThread* watchdog_thread,
|
|
const gpu::GPUInfo* gpu_info,
|
|
const gpu::GpuPreferences& gpu_prefs) {
|