blob: 4c54edfdaf91310667d5264a982d8b3e10e37a5f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
--- gpu/config/gpu_control_list.cc.orig 2021-07-15 19:13:40 UTC
+++ gpu/config/gpu_control_list.cc
@@ -18,7 +18,11 @@
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "gpu/config/gpu_util.h"
+#if defined(OS_BSD)
+#include <re2/re2.h>
+#else
#include "third_party/re2/src/re2/re2.h"
+#endif // defined(OS_BSD)
namespace gpu {
namespace {
@@ -276,7 +280,7 @@ bool GpuControlList::More::GLVersionInfoMismatch(
GpuControlList::GLType GpuControlList::More::GetDefaultGLType() {
#if BUILDFLAG(IS_CHROMEOS_ASH)
return kGLTypeGL;
-#elif (defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || \
+#elif (defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || defined(OS_BSD) || \
defined(OS_OPENBSD)
return kGLTypeGL;
#elif defined(OS_MAC)
@@ -783,7 +787,7 @@ GpuControlList::OsType GpuControlList::GetOsType() {
return kOsAndroid;
#elif defined(OS_FUCHSIA)
return kOsFuchsia;
-#elif (defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || \
+#elif (defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || defined(OS_BSD) || \
defined(OS_OPENBSD)
return kOsLinux;
#elif defined(OS_MAC)
|