Bug 1642014 - Expose HW_COMPOSITING feature to telemetry. r=aosmond

FEATURE_FAILURE_D3D11_NEED_HWCOMP is one of the main reasons
people get the basic compositor. This will let us dig into
why we get FEATURE_FAILURE_D3D11_NEED_HWCOMP.

Differential Revision: https://phabricator.services.mozilla.com/D77554
This commit is contained in:
Jeff Muizelaar 2020-05-29 22:35:13 +00:00
Родитель 6d5ab04a9d
Коммит 9a078db557
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -1604,6 +1604,10 @@ bool GfxInfoBase::BuildFeatureStateLog(JSContext* aCx,
void GfxInfoBase::DescribeFeatures(JSContext* aCx, JS::Handle<JSObject*> aObj) {
JS::Rooted<JSObject*> obj(aCx);
gfx::FeatureState& hwCompositing =
gfxConfig::GetFeature(gfx::Feature::HW_COMPOSITING);
InitFeatureObject(aCx, aObj, "hwCompositing", hwCompositing, &obj);
gfx::FeatureState& gpuProcess =
gfxConfig::GetFeature(gfx::Feature::GPU_PROCESS);
InitFeatureObject(aCx, aObj, "gpuProcess", gpuProcess, &obj);