[Pkg-javascript-commits] [pdf.js] 164/210: Fewer lookups in CanvasGraphics_constructPath
David Prévot
taffit at moszumanska.debian.org
Thu Jun 5 14:21:13 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch upstream
in repository pdf.js.
commit cf5ff3d327cd70dc8de63b8db90df491bfb89faa
Author: p01 <p01 at opera.com>
Date: Thu May 15 16:10:32 2014 +0200
Fewer lookups in CanvasGraphics_constructPath
---
src/display/canvas.js | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/display/canvas.js b/src/display/canvas.js
index 646f8a3..3455c3f 100644
--- a/src/display/canvas.js
+++ b/src/display/canvas.js
@@ -983,10 +983,10 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
ctx.lineTo(x, y);
break;
case OPS.curveTo:
- ctx.bezierCurveTo(args[j], args[j + 1], args[j + 2], args[j + 3],
- args[j + 4], args[j + 5]);
x = args[j + 4];
y = args[j + 5];
+ ctx.bezierCurveTo(args[j], args[j + 1], args[j + 2], args[j + 3],
+ x, y);
j += 6;
break;
case OPS.curveTo2:
@@ -997,10 +997,9 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
j += 4;
break;
case OPS.curveTo3:
- ctx.bezierCurveTo(args[j], args[j + 1], args[j + 2], args[j + 3],
- args[j + 2], args[j + 3]);
x = args[j + 2];
y = args[j + 3];
+ ctx.bezierCurveTo(args[j], args[j + 1], x, y, x, y);
j += 4;
break;
case OPS.closePath:
--
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