mirror of
https://git.freebsd.org/ports.git
synced 2025-06-22 13:10:31 -04:00
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://electronjs.org/
56 lines
2.2 KiB
C++
56 lines
2.2 KiB
C++
--- content/browser/utility_process_host.cc.orig 2023-06-07 04:52:06 UTC
|
|
+++ content/browser/utility_process_host.cc
|
|
@@ -59,7 +59,7 @@
|
|
#include "content/browser/v8_snapshot_files.h"
|
|
#endif
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
#include "base/files/file_util.h"
|
|
#include "base/files/scoped_file.h"
|
|
#include "base/pickle.h"
|
|
@@ -69,7 +69,7 @@
|
|
#include "media/capture/capture_switches.h"
|
|
#endif
|
|
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
#include "base/task/sequenced_task_runner.h"
|
|
#include "components/viz/host/gpu_client.h"
|
|
#include "media/capture/capture_switches.h"
|
|
@@ -80,7 +80,7 @@ namespace content {
|
|
|
|
namespace {
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
base::ScopedFD PassNetworkContextParentDirs(
|
|
std::vector<base::FilePath> network_context_parent_dirs) {
|
|
base::Pickle pickle;
|
|
@@ -129,7 +129,7 @@ UtilityProcessHost::UtilityProcessHost(std::unique_ptr
|
|
started_(false),
|
|
name_(u"utility process"),
|
|
file_data_(std::make_unique<ChildProcessLauncherFileData>()),
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
gpu_client_(nullptr, base::OnTaskRunnerDeleter(nullptr)),
|
|
#endif
|
|
client_(std::move(client)) {
|
|
@@ -429,7 +429,7 @@ bool UtilityProcessHost::StartProcess() {
|
|
file_data_->files_to_preload.merge(GetV8SnapshotFilesToPreload());
|
|
#endif // BUILDFLAG(IS_POSIX)
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
// The network service should have access to the parent directories
|
|
// necessary for its usage.
|
|
if (sandbox_type_ == sandbox::mojom::Sandbox::kNetwork) {
|
|
@@ -440,7 +440,7 @@ bool UtilityProcessHost::StartProcess() {
|
|
}
|
|
#endif // BUILDFLAG(IS_LINUX)
|
|
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
if (metrics_name_ == video_capture::mojom::VideoCaptureService::Name_) {
|
|
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
|
|
switches::kDisableVideoCaptureUseGpuMemoryBuffer) &&
|