[Pkg-javascript-commits] [pdf.js] 72/139: increase chunk size in SMask composition to 1M pixels

David Prévot taffit at moszumanska.debian.org
Fri Jan 9 21:18:28 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 7d698a46a9dc8cc926708c60a994a04a6ae4cede
Author: fkaelberer <l_l at gmx-topmail.de>
Date:   Wed Dec 3 10:25:53 2014 +0100

    increase chunk size in SMask composition to 1M pixels
---
 src/display/canvas.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/display/canvas.js b/src/display/canvas.js
index 688f643..3bca9b9 100644
--- a/src/display/canvas.js
+++ b/src/display/canvas.js
@@ -661,7 +661,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
     }
 
     // processing image in chunks to save memory
-    var PIXELS_TO_PROCESS = 65536;
+    var PIXELS_TO_PROCESS = 1048576;
     var chunkSize = Math.min(height, Math.ceil(PIXELS_TO_PROCESS / width));
     for (var row = 0; row < height; row += chunkSize) {
       var chunkHeight = Math.min(chunkSize, height - row);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list