]> git.parisson.com Git - pdf.js.git/commitdiff
Add comments for the kExecutionTime/Check in CanvasGraphics
authorJulian Viereck <julian.viereck@gmail.com>
Sun, 2 Oct 2011 10:19:45 +0000 (12:19 +0200)
committerJulian Viereck <julian.viereck@gmail.com>
Sun, 2 Oct 2011 10:19:45 +0000 (12:19 +0200)
pdf.js

diff --git a/pdf.js b/pdf.js
index 8968f761392074873f7ad71fc81495e2023b9650..77d2ea9c4e672ec2f036567b874a152a86781279 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -4843,7 +4843,11 @@ function ScratchCanvas(width, height) {
 }
 
 var CanvasGraphics = (function() {
+  // Defines the time the executeIRQueue gone be executing
+  // before it stops and shedules a continue of execution.
   var kExecutionTime = 50;
+  // Number of IR commands to execute before checking
+  // if we execute longer then `kExecutionTime`.
   var kExecutionTimeCheck = 500;
 
   function constructor(canvasCtx, imageCanvas) {