mirror of
https://git.freebsd.org/ports.git
synced 2025-05-08 03:40:46 -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/
38 lines
1.6 KiB
C++
38 lines
1.6 KiB
C++
--- content/renderer/render_thread_impl.cc.orig 2025-04-06 11:53:44 UTC
|
|
+++ content/renderer/render_thread_impl.cc
|
|
@@ -211,6 +211,8 @@
|
|
|
|
#if BUILDFLAG(IS_APPLE)
|
|
#include <malloc/malloc.h>
|
|
+#elif BUILDFLAG(IS_BSD)
|
|
+#include <stdlib.h>
|
|
#else
|
|
#include <malloc.h>
|
|
#endif
|
|
@@ -1043,7 +1045,7 @@ media::GpuVideoAcceleratorFactories* RenderThreadImpl:
|
|
kGpuStreamIdMedia, kGpuStreamPriorityMedia);
|
|
|
|
const bool enable_video_decode_accelerator =
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
base::FeatureList::IsEnabled(media::kAcceleratedVideoDecodeLinux) &&
|
|
#endif // BUILDFLAG(IS_LINUX)
|
|
!cmd_line->HasSwitch(switches::kDisableAcceleratedVideoDecode) &&
|
|
@@ -1052,7 +1054,7 @@ media::GpuVideoAcceleratorFactories* RenderThreadImpl:
|
|
gpu::kGpuFeatureStatusEnabled);
|
|
|
|
const bool enable_video_encode_accelerator =
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
base::FeatureList::IsEnabled(media::kAcceleratedVideoEncodeLinux) &&
|
|
#else
|
|
!cmd_line->HasSwitch(switches::kDisableAcceleratedVideoEncode) &&
|
|
@@ -1845,7 +1847,7 @@ RenderThreadImpl::CreateMediaMojoCodecFactory(
|
|
bool enable_video_encode_accelerator) {
|
|
mojo::PendingRemote<media::mojom::VideoEncodeAcceleratorProvider>
|
|
vea_provider;
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
if (base::FeatureList::IsEnabled(media::kUseOutOfProcessVideoEncoding)) {
|
|
BindHostReceiver(vea_provider.InitWithNewPipeAndPassReceiver());
|
|
} else {
|