Issue #1242 - Reinstate GPU Accelerated Windows entry in about:support

This resolves #1242.
This commit is contained in:
wolfbeast 2019-11-19 03:40:50 +01:00 • committed by Roy Tam
commit 8ee4a445b0
2 changed files with 22 additions and 0 deletions

View file

@ -278,6 +278,18 @@ var snapshotFormatters = {
? data.windowLayerManagerType
: "BasicLayers (" + strings.GetStringFromName("mainThreadNoOMTC") + ")";
addRow("features", "compositing", compositor);
let acceleratedWindows = data.numAcceleratedWindows + "/" + data.numTotalWindows;
if (data.windowLayerManagerType) {
acceleratedWindows += " " + data.windowLayerManagerType;
}
if (data.windowLayerManagerRemote) {
acceleratedWindows += " (OMTC)";
}
if (data.numAcceleratedWindowsMessage) {
acceleratedWindows += " " + localizedMsg(data.numAcceleratedWindowsMessage);
}
addRow("features", "acceleratedWindows", acceleratedWindows);
delete data.windowLayerManagerRemote;
delete data.windowLayerManagerType;
delete data.numTotalWindows;