зеркало из https://github.com/mozilla/gecko-dev.git
Bug 702770 - Expose GfxInfo properties in about:support. r=jrmuizel
This commit is contained in:
Родитель
760569d977
Коммит
46123098e0
|
@ -180,6 +180,14 @@ function populateGraphicsSection() {
|
|||
]));
|
||||
}
|
||||
}
|
||||
|
||||
function pushLiteralInfoRow(table, name, value)
|
||||
{
|
||||
table.push(createParentElement("tr", [
|
||||
createHeader(name),
|
||||
createElement("td", value),
|
||||
]));
|
||||
}
|
||||
|
||||
function errorMessageForFeature(feature) {
|
||||
var errorMessage;
|
||||
|
@ -308,6 +316,15 @@ function populateGraphicsSection() {
|
|||
pushFeatureInfoRow(trGraphics, "webglRenderer", webglfeature, webglenabled, webglrenderer);
|
||||
|
||||
appendChildren(graphics_tbody, trGraphics);
|
||||
|
||||
// display registered graphics properties
|
||||
let graphics_info_properties = document.getElementById("graphics-info-properties");
|
||||
var info = gfxInfo.getInfo();
|
||||
let trGraphicsProperties = [];
|
||||
for (var property in info) {
|
||||
pushLiteralInfoRow(trGraphicsProperties, property, info[property]);
|
||||
}
|
||||
appendChildren(graphics_info_properties, trGraphicsProperties);
|
||||
|
||||
// display any failures that have occurred
|
||||
let graphics_failures_tbody = document.getElementById("graphics-failures-tbody");
|
||||
|
@ -318,6 +335,8 @@ function populateGraphicsSection() {
|
|||
);
|
||||
appendChildren(graphics_failures_tbody, trGraphicsFailures);
|
||||
|
||||
|
||||
|
||||
} // end if (gfxInfo)
|
||||
|
||||
let windows = Services.ww.getWindowEnumerator();
|
||||
|
|
|
@ -225,6 +225,11 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tbody id="graphics-info-properties">
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tbody id="graphics-failures-tbody">
|
||||
</tbody>
|
||||
|
|
Загрузка…
Ссылка в новой задаче