summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-19 03:40:50 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-19 03:40:50 +0100
commit4f6a779e0c05599a2c01155d2599595bad279bcf (patch)
tree81de09b7f9c171875b0f1328b4eff79408c3ff22
parent47ca6f108f25b7181b88a458a3e92f82ad4f411e (diff)
downloadUXP-4f6a779e0c05599a2c01155d2599595bad279bcf.tar
UXP-4f6a779e0c05599a2c01155d2599595bad279bcf.tar.gz
UXP-4f6a779e0c05599a2c01155d2599595bad279bcf.tar.lz
UXP-4f6a779e0c05599a2c01155d2599595bad279bcf.tar.xz
UXP-4f6a779e0c05599a2c01155d2599595bad279bcf.zip
Issue #1242 - Reinstate GPU Accelerated Windows entry in about:support
This resolves #1242.
-rw-r--r--toolkit/content/aboutSupport.js12
-rw-r--r--toolkit/locales/en-US/chrome/global/aboutSupport.properties10
2 files changed, 22 insertions, 0 deletions
diff --git a/toolkit/content/aboutSupport.js b/toolkit/content/aboutSupport.js
index 06470f966..5c889c18f 100644
--- a/toolkit/content/aboutSupport.js
+++ b/toolkit/content/aboutSupport.js
@@ -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;
diff --git a/toolkit/locales/en-US/chrome/global/aboutSupport.properties b/toolkit/locales/en-US/chrome/global/aboutSupport.properties
index be9ce5f33..1a8760c4e 100644
--- a/toolkit/locales/en-US/chrome/global/aboutSupport.properties
+++ b/toolkit/locales/en-US/chrome/global/aboutSupport.properties
@@ -27,6 +27,16 @@ crashesTimeDays=#1 day ago;#1 days ago
# #1 number of pending crash reports
pendingReports=All Crash Reports (including #1 pending crash in the given time range);All Crash Reports (including #1 pending crashes in the given time range)
+# LOCALIZATION NOTE In the following strings, "Direct2D", "DirectWrite" and "ClearType"
+# are proper nouns and should not be translated. Feel free to leave english strings if
+# there are no good translations, these are only used in about:support
+
+# LOCALIZATION NOTE: This can be localized with a more generic term, like
+# "Graphics-accelerated Windows". It describes a number of windows, e.g.:
+# "GPU Accelerated Windows: 2/2 (Direct3D 9)"
+# "GPU Accelerated Windows: 0/2"
+acceleratedWindows = GPU Accelerated Windows
+
# LOCALIZATION NOTE (rawDataCopied) Text displayed in a mobile "Toast" to user when the
# raw data is successfully copied to the clipboard via button press.
rawDataCopied=Raw data copied to clipboard