Merge pull request #18255 from calixteman/disable_hwa_only_for_mc

Only disable HWA in m-c build and for local dev
This commit is contained in:
calixteman 2024-06-16 21:47:34 +02:00 committed by GitHub
commit 06800cd966
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -46,9 +46,10 @@
"default": false "default": false
}, },
"enableHWA": { "enableHWA": {
"title": "Enable hardware acceleration",
"description": "Whether to enable hardware acceleration.", "description": "Whether to enable hardware acceleration.",
"type": "boolean", "type": "boolean",
"default": false "default": true
}, },
"enableML": { "enableML": {
"type": "boolean", "type": "boolean",

View File

@ -312,7 +312,7 @@ const defaultOptions = {
}, },
enableHWA: { enableHWA: {
/** @type {boolean} */ /** @type {boolean} */
value: false, value: typeof PDFJSDev !== "undefined" && !PDFJSDev.test("MOZCENTRAL"),
kind: OptionKind.API + OptionKind.VIEWER + OptionKind.PREFERENCE, kind: OptionKind.API + OptionKind.VIEWER + OptionKind.PREFERENCE,
}, },
enableXfa: { enableXfa: {