mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -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/
29 lines
1.1 KiB
C++
29 lines
1.1 KiB
C++
--- media/gpu/buffer_validation.cc.orig 2025-01-27 17:37:37 UTC
|
|
+++ media/gpu/buffer_validation.cc
|
|
@@ -15,7 +15,7 @@
|
|
#include "ui/gfx/geometry/size.h"
|
|
#include "ui/gfx/gpu_memory_buffer.h"
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
@@ -23,7 +23,7 @@ bool GetFileSize(const int fd, size_t* size) {
|
|
namespace media {
|
|
|
|
bool GetFileSize(const int fd, size_t* size) {
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
if (fd < 0) {
|
|
VLOG(1) << "Invalid file descriptor";
|
|
return false;
|
|
@@ -77,7 +77,7 @@ bool VerifyGpuMemoryBufferHandle(
|
|
VLOG(1) << "Unsupported: " << pixel_format;
|
|
return false;
|
|
}
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
const size_t num_planes = media::VideoFrame::NumPlanes(pixel_format);
|
|
if (num_planes != gmb_handle.native_pixmap_handle.planes.size() ||
|
|
num_planes == 0) {
|