mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Introduce ImageCanvas to handle canvas rendering in WebWorker
This commit is contained in:
parent
d9424a7135
commit
b151516416
3 changed files with 37 additions and 13 deletions
|
@ -14,9 +14,9 @@ function CanvasProxy(width, height) {
|
|||
"arc",
|
||||
"fillText",
|
||||
"strokeText",
|
||||
"drawImage",
|
||||
"getImageData",
|
||||
"putImageData",
|
||||
// "drawImage",
|
||||
// "getImageData",
|
||||
// "putImageData",
|
||||
"createImageData",
|
||||
"drawWindow",
|
||||
"save",
|
||||
|
@ -50,6 +50,7 @@ function CanvasProxy(width, height) {
|
|||
"$restoreCurrentX",
|
||||
"$showText"
|
||||
];
|
||||
|
||||
function buildFuncCall(name) {
|
||||
return function() {
|
||||
// console.log("funcCall", name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue