opnsense-ports/devel/electron32/files/patch-content_gpu_gpu__child__thread.cc
Franco Fichtner fd3bf1794a */*: sync with upstream
Taken from: FreeBSD
2024-09-23 09:02:17 +02:00

21 lines
756 B
C++

--- content/gpu/gpu_child_thread.cc.orig 2024-04-15 20:33:57 UTC
+++ content/gpu/gpu_child_thread.cc
@@ -58,7 +58,7 @@
#include "third_party/skia/include/ports/SkFontConfigInterface.h"
#endif
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
#include "content/child/sandboxed_process_thread_type_handler.h"
#endif
@@ -142,7 +142,8 @@ void GpuChildThread::Init(const base::TimeTicks& proce
viz_main_.gpu_service()->set_start_time(process_start_time);
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+// XXX BSD
+#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && !BUILDFLAG(IS_BSD)
SandboxedProcessThreadTypeHandler::NotifyMainChildThreadCreated();
#endif