Bug 749428 - Expose OMTC status in about:support. r=jrmuizel

This commit is contained in:
Matt Woodrow 2013-05-22 11:36:38 +08:00
parent 14e553db2b
commit b70a68033a
3 changed files with 6 additions and 0 deletions

View File

@ -112,6 +112,8 @@ let snapshotFormatters = {
data.numAcceleratedWindows + "/" + data.numTotalWindows;
if (data.windowLayerManagerType)
out.acceleratedWindows += " " + data.windowLayerManagerType;
if (data.windowLayerManagerRemote)
out.acceleratedWindows += " (OMTC)";
if (data.numAcceleratedWindowsMessage)
out.acceleratedWindows +=
" " + localizedMsg(data.numAcceleratedWindowsMessage);

View File

@ -228,6 +228,7 @@ let dataProviders = {
getInterface(Ci.nsIDOMWindowUtils);
try {
data.windowLayerManagerType = winUtils.layerManagerType;
data.windowLayerManagerRemote = winUtils.layerManagerRemote;
}
catch (e) {
continue;

View File

@ -144,6 +144,9 @@ const SNAPSHOT_SCHEMA = {
windowLayerManagerType: {
type: "string",
},
windowLayerManagerRemote: {
type: "boolean",
},
numAcceleratedWindowsMessage: {
type: "array",
},