mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Add an option to enable/disable hardware acceleration (bug 1902012)
This commit is contained in:
parent
341ff40e74
commit
ff6180a4c9
13 changed files with 62 additions and 12 deletions
|
@ -439,6 +439,7 @@ const PDFViewerApplication = {
|
|||
)
|
||||
: null;
|
||||
|
||||
const enableHWA = AppOptions.get("enableHWA");
|
||||
const pdfViewer = new PDFViewer({
|
||||
container,
|
||||
viewer,
|
||||
|
@ -465,6 +466,7 @@ const PDFViewerApplication = {
|
|||
pageColors,
|
||||
mlManager: this.mlManager,
|
||||
abortSignal: this._globalAbortController.signal,
|
||||
enableHWA,
|
||||
});
|
||||
this.pdfViewer = pdfViewer;
|
||||
|
||||
|
@ -480,6 +482,7 @@ const PDFViewerApplication = {
|
|||
linkService: pdfLinkService,
|
||||
pageColors,
|
||||
abortSignal: this._globalAbortController.signal,
|
||||
enableHWA,
|
||||
});
|
||||
pdfRenderingQueue.setThumbnailViewer(this.pdfThumbnailViewer);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue