From 78547e83c296b5c12f5468f024a87c55d1ab1080 Mon Sep 17 00:00:00 2001 From: Ponchale Date: Thu, 5 Dec 2024 13:30:36 -0500 Subject: [PATCH] Enable hardware acceleration in pdf.js on Windows r=pdfjs-reviewers,robwu --- modules/libpref/init/all.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 2cbb7362129..3c6cd223066 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -197,6 +197,10 @@ pref("pdfjs.enableHighlightEditor", true); pref("pdfjs.enableHighlightFloatingButton", false); #endif +#if defined(XP_WIN) +pref("pdfjs.enableHWA", true); +#endif + // Disable support for MathML pref("mathml.disabled", false);