Bug 1760887 - Expose FEATURE_VP8_HW_DECODE and FEATURE_VP9_HW_DECODE to the downloadable blocklist. r=gfx-reviewers,jnicol

Differential Revision: https://phabricator.services.mozilla.com/D141803
This commit is contained in:
Andrew Osmond 2022-03-22 21:21:22 +00:00
Родитель 50ee84d294
Коммит 21e4a3df8a
1 изменённых файлов: 9 добавлений и 4 удалений

Просмотреть файл

@ -209,9 +209,10 @@ static const char* GetPrefNameForFeature(int32_t aFeature) {
name = BLOCKLIST_PREF_BRANCH "dx.p016";
break;
case nsIGfxInfo::FEATURE_VP8_HW_DECODE:
name = BLOCKLIST_PREF_BRANCH "vp8.hw-decode";
break;
case nsIGfxInfo::FEATURE_VP9_HW_DECODE:
// We don't provide prefs for these features as these are
// not handling downloadable blocklist.
name = BLOCKLIST_PREF_BRANCH "vp9.hw-decode";
break;
case nsIGfxInfo::FEATURE_GL_SWIZZLE:
name = BLOCKLIST_PREF_BRANCH "gl.swizzle";
@ -472,8 +473,12 @@ static int32_t BlocklistFeatureToGfxFeature(const nsAString& aFeature) {
if (aFeature.EqualsLiteral("DX_NV12")) {
return nsIGfxInfo::FEATURE_DX_NV12;
}
// We do not support FEATURE_VP8_HW_DECODE and FEATURE_VP9_HW_DECODE
// in downloadable blocklist.
if (aFeature.EqualsLiteral("VP8_HW_DECODE")) {
return nsIGfxInfo::FEATURE_VP8_HW_DECODE;
}
if (aFeature.EqualsLiteral("VP9_HW_DECODE")) {
return nsIGfxInfo::FEATURE_VP9_HW_DECODE;
}
if (aFeature.EqualsLiteral("GL_SWIZZLE")) {
return nsIGfxInfo::FEATURE_GL_SWIZZLE;
}