116 lines
4.5 KiB
Diff
116 lines
4.5 KiB
Diff
From e04b52fc9b12f0725e76b889161ea45c776e6da5 Mon Sep 17 00:00:00 2001
|
|
From: Akarshan Biswas <akarshanbiswas@fedoraproject.org>
|
|
Date: Fri, 20 Sep 2019 19:55:45 +0530
|
|
Subject: [PATCH] Enable VAAPI on Linux
|
|
|
|
---
|
|
chrome/browser/about_flags.cc | 8 ++++----
|
|
chrome/browser/flag_descriptions.cc | 9 ++++++---
|
|
chrome/browser/flag_descriptions.h | 10 ++++++++--
|
|
gpu/config/software_rendering_list.json | 3 ++-
|
|
4 files changed, 20 insertions(+), 10 deletions(-)
|
|
|
|
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
|
|
index e608f06a2..c0776db45 100644
|
|
--- a/chrome/browser/about_flags.cc
|
|
+++ b/chrome/browser/about_flags.cc
|
|
@@ -1738,7 +1738,7 @@ const FeatureEntry kFeatureEntries[] = {
|
|
"disable-accelerated-video-decode",
|
|
flag_descriptions::kAcceleratedVideoDecodeName,
|
|
flag_descriptions::kAcceleratedVideoDecodeDescription,
|
|
- kOsMac | kOsWin | kOsCrOS | kOsAndroid,
|
|
+ kOsMac | kOsWin | kOsCrOS | kOsAndroid | kOsLinux,
|
|
SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedVideoDecode),
|
|
},
|
|
{
|
|
@@ -2216,12 +2216,12 @@ const FeatureEntry kFeatureEntries[] = {
|
|
FEATURE_VALUE_TYPE(service_manager::features::kXRSandbox)},
|
|
#endif // !defined(OS_ANDROID)
|
|
#endif // ENABLE_VR
|
|
-#if defined(OS_CHROMEOS)
|
|
+#if defined(OS_CHROMEOS) || defined(OS_LINUX)
|
|
{"disable-accelerated-mjpeg-decode",
|
|
flag_descriptions::kAcceleratedMjpegDecodeName,
|
|
- flag_descriptions::kAcceleratedMjpegDecodeDescription, kOsCrOS,
|
|
+ flag_descriptions::kAcceleratedMjpegDecodeDescription, kOsCrOS | kOsLinux,
|
|
SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedMjpegDecode)},
|
|
-#endif // OS_CHROMEOS
|
|
+#endif // OS_CHROMEOS | OS_LINUX
|
|
{"system-keyboard-lock", flag_descriptions::kSystemKeyboardLockName,
|
|
flag_descriptions::kSystemKeyboardLockDescription, kOsDesktop,
|
|
FEATURE_VALUE_TYPE(features::kSystemKeyboardLock)},
|
|
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
|
|
index d27bbb28f..1c6542bdd 100644
|
|
--- a/chrome/browser/flag_descriptions.cc
|
|
+++ b/chrome/browser/flag_descriptions.cc
|
|
@@ -3071,16 +3071,19 @@ const char kMacSystemMediaPermissionsInfoUiDescription[] =
|
|
|
|
#endif
|
|
|
|
-// Chrome OS -------------------------------------------------------------------
|
|
-
|
|
-#if defined(OS_CHROMEOS)
|
|
+// Chrome OS and Linux -------------------------------------------------------------------
|
|
|
|
+#if defined(OS_CHROMEOS) || (defined(OS_LINUX) && !defined(OS_ANDROID))
|
|
const char kAcceleratedMjpegDecodeName[] =
|
|
"Hardware-accelerated mjpeg decode for captured frame";
|
|
const char kAcceleratedMjpegDecodeDescription[] =
|
|
"Enable hardware-accelerated mjpeg decode for captured frame where "
|
|
"available.";
|
|
+#endif
|
|
|
|
+// Chrome OS -----------------------------------------------------------------------------
|
|
+
|
|
+#if defined(OS_CHROMEOS)
|
|
const char kAggregatedMlAppRankingName[] = "Rank suggested apps with ML.";
|
|
const char kAggregatedMlAppRankingDescription[] =
|
|
"Use the aggregated ML model to rank the suggested apps.";
|
|
diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
|
|
index 1f8899de1..06544e079 100644
|
|
--- a/chrome/browser/flag_descriptions.h
|
|
+++ b/chrome/browser/flag_descriptions.h
|
|
@@ -1822,13 +1822,19 @@ extern const char kPermissionPromptPersistenceToggleDescription[];
|
|
|
|
#endif // defined(OS_MACOSX)
|
|
|
|
-// Chrome OS ------------------------------------------------------------------
|
|
+// Chrome OS and Linux ---------------------------------------------------------
|
|
|
|
-#if defined(OS_CHROMEOS)
|
|
+#if defined(OS_CHROMEOS) || (defined(OS_LINUX) && !defined(OS_ANDROID))
|
|
|
|
extern const char kAcceleratedMjpegDecodeName[];
|
|
extern const char kAcceleratedMjpegDecodeDescription[];
|
|
|
|
+#endif
|
|
+
|
|
+// Chrome OS -------------------------------------------------------------------
|
|
+
|
|
+#if defined(OS_CHROMEOS)
|
|
+
|
|
extern const char kAggregatedMlAppRankingName[];
|
|
extern const char kAggregatedMlAppRankingDescription[];
|
|
|
|
diff --git a/gpu/config/software_rendering_list.json b/gpu/config/software_rendering_list.json
|
|
index ea1294e4c..bc52cbc8f 100644
|
|
--- a/gpu/config/software_rendering_list.json
|
|
+++ b/gpu/config/software_rendering_list.json
|
|
@@ -334,11 +334,12 @@
|
|
},
|
|
{
|
|
"id": 48,
|
|
- "description": "Accelerated video decode is unavailable on Linux",
|
|
+ "description": "Accelerated VA-API video decode is not supported on NVIDIA platforms",
|
|
"cr_bugs": [137247],
|
|
"os": {
|
|
"type": "linux"
|
|
},
|
|
+ "vendor_id": "0x10de",
|
|
"features": [
|
|
"accelerated_video_decode"
|
|
]
|
|
--
|
|
2.21.0
|
|
|