-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web worker integration. #692
Conversation
…oesnt have a document to attach the canvas to
…tform + has no mask
…ttern as toIR is called all the time
var w = imgData.width; | ||
var h = imgData.height; | ||
// scale the image to the unit square | ||
ctx.scale(1 / w, -1 / h); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a few line spaces where it makes sense? They are free! :)
The thing is, that the new code base make an early decision depending on if the object has an
The |
return null; | ||
}; | ||
constructor.shadingFromIR = function pattern_shadingFromIR(ctx, raw) { | ||
var obj = window[raw[0]]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
window!!! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Julian, can you please fix this hack? We thought of adding a switch
but we don't know the possible class names. This might need to be conceptually revisited, not sure.
@pdfjsbot test |
Processing command test by user brendandahl. Queue size: 0 Live script output is available (after queueing is done) at: http://184.73.87.52:8989/2487205.txt [bot:processed:2487205] |
ERROR(s) found Output:
Bot response time: 29.94 mins |
startIdx = gfx.executeIRQueue(IRQueue, startIdx, next); | ||
if (startIdx == length) { | ||
self.stats.render = Date.now(); | ||
if (callback) callback(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a problem but I usually prefer to this kind of expression in 2 lines.
I have a few other nits but nothing that can't be fixed later. The architecture of all this is going to change later but this work will be tracked in #issue 690, let's push the f**** button! congrats guys! |
Web worker integration (disabled by default)
This merges all of Julian's web worker code from pull request #635. Some notable things:
See and use #690 for further discussion on ideas to streamline this code. Use this issue if you see anything you really don't want do go into master.
And of course a huge thanks to Julian for doing this!