Skip to content

Commit

Permalink
Merge pull request #18255 from calixteman/disable_hwa_only_for_mc
Browse files Browse the repository at this point in the history
Only disable HWA in m-c build and for local dev
  • Loading branch information
calixteman authored Jun 16, 2024
2 parents 56c3965 + 52a06e6 commit 06800cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion extensions/chromium/preferences_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@
"default": false
},
"enableHWA": {
"title": "Enable hardware acceleration",
"description": "Whether to enable hardware acceleration.",
"type": "boolean",
"default": false
"default": true
},
"enableML": {
"type": "boolean",
Expand Down
2 changes: 1 addition & 1 deletion web/app_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ const defaultOptions = {
},
enableHWA: {
/** @type {boolean} */
value: false,
value: typeof PDFJSDev !== "undefined" && !PDFJSDev.test("MOZCENTRAL"),
kind: OptionKind.API + OptionKind.VIEWER + OptionKind.PREFERENCE,
},
enableXfa: {
Expand Down

0 comments on commit 06800cd

Please sign in to comment.