зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
50ee84d294
Коммит
21e4a3df8a
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче