aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-content_browser_gpu_compositor__util.cc
blob: c1b41fea3c81a7ae88f027bbf5cacd197a6278a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- content/browser/gpu/compositor_util.cc.orig	2021-05-12 22:05:52 UTC
+++ content/browser/gpu/compositor_util.cc
@@ -127,11 +127,11 @@ const GpuFeatureData GetGpuFeatureData(
     {"video_decode",
      SafeGetFeatureStatus(gpu_feature_info,
                           gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE),
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
      !base::FeatureList::IsEnabled(media::kVaapiVideoDecodeLinux),
 #else
      command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode),
-#endif  // defined(OS_LINUX)
+#endif  // defined(OS_LINUX) || defined(OS_BSD)
      DisableInfo::Problem(
          "Accelerated video decode has been disabled, either via blocklist, "
          "about:flags or the command line."),