Commit Graph

485 Commits

Author SHA1 Message Date
Chris Jones
a85c31b2c0 Merge pull request #45 from jviereck/master
WebWorker support
2011-06-23 15:21:10 -07:00
Julian Viereck
8cd986f15a Small rebase tidyup + cleanup 2011-06-23 23:55:14 +02:00
Julian Viereck
d1b75dd633 Replace tic & toc by console.time/timeEnd 2011-06-23 23:33:25 +02:00
Julian Viereck
3bef1534b4 Reverts parts of 60f4d16360: Use old font-is-loaded mechanism + some code refactoring to add bindDOM and bindWorker. 2011-06-23 23:33:25 +02:00
Julian Viereck
d6239571e9 Clear the main canvas right before the next rendering begins. Keeps the canvas from beeing blank for a few ms 2011-06-23 23:33:25 +02:00
Julian Viereck
4b27045d2e Ensure divs used to make fonts load are not visible 2011-06-23 23:33:25 +02:00
Julian Viereck
f256716022 Fix WebWorker logging and add separate timing for fonts. 2011-06-23 23:33:25 +02:00
Julian Viereck
f32dfa9414 Fix sending image data to main thread 2011-06-23 23:33:24 +02:00
Julian Viereck
da7f555fd7 Change postMessage to send only one object that holds the action and data. 2011-06-23 23:33:24 +02:00
Julian Viereck
a3d815074d First pass on review: worker.js -> pdf_worker.js, Font.bind cleanup + other stuff 2011-06-23 23:33:24 +02:00
Julian Viereck
4281f799e5 Move client code into worker_client.js. Cleanup + comments + 2-space-indention 2011-06-23 23:33:24 +02:00
Julian Viereck
08405fa618 Fix putImageData. Needs to be copied byte by byte. 2011-06-23 23:33:24 +02:00
Julian Viereck
0746c7db59 Add PatternProxy; makes page 13 work 2011-06-23 23:33:24 +02:00
Julian Viereck
22bdd50a98 Merge ImageCanvasProxy and CanvasProxy. Add support for rendering multiple canvas objects on the worker and assemble them again on the main thread. 2011-06-23 23:33:24 +02:00
Julian Viereck
000d640258 Replace ImageCanvas by ScratchCanvas 2011-06-23 23:33:23 +02:00
Julian Viereck
50d902d9eb Make the ProxyCanvas be more a canvas - provide a ctx object to interact through 2011-06-23 23:33:23 +02:00
Julian Viereck
fe7c8b52f6 Add very simple GradientProxy support - makes page 11 render. 2011-06-23 23:33:23 +02:00
Julian Viereck
2c17af3720 Add JpegStreamProxy - doesnt seem to be used anywhere in the example.pdf file 2011-06-23 23:33:23 +02:00
Julian Viereck
e2cd5facbd Fix font loading issue by using a hidden DOM font node 2011-06-23 23:33:23 +02:00
Julian Viereck
52a117d32a Fixing some smaller bugs & do some cleanup. viewer_worker.html UI is now 2011-06-23 23:33:23 +02:00
Julian Viereck
39ac389a7e Get working for not real images 2011-06-23 23:33:22 +02:00
Julian Viereck
fc007b99d0 Introduce ImageCanvas to handle canvas rendering in WebWorker 2011-06-23 23:33:22 +02:00
Julian Viereck
61b76c7e87 Make fonts getting loaded by a very nasty hack 2011-06-23 23:33:22 +02:00
Julian Viereck
e15328800a Most working, but once you add the font-css file to the web page, there is no font drawn at all 2011-06-23 23:32:24 +02:00
Julian Viereck
986ef148c4 Backup work 2011-06-23 23:30:54 +02:00
Andreas Gal
819664f051 Merge pull request #63 from sbarman/uncompressedflate
Uncompressed flate
2011-06-23 12:05:38 -07:00
sbarman
fe25d0acc1 Merge branch 'master' into uncompressedflate 2011-06-23 09:42:52 -07:00
sbarman
18afc896f6 fix for uncompressed flatestream blocks 2011-06-23 09:41:59 -07:00
Andreas Gal
02375bd448 Merge pull request #62 from sbarman/master
FakeStream to simulate filters which have not been implemented
2011-06-23 09:06:48 -07:00
sbarman
3f2bbbe919 Merge branch 'master' of github.com:andreasgal/pdf.js 2011-06-23 08:05:00 -07:00
Andreas Gal
6513511589 Merge pull request #61 from vingtetun/master
Fix some spacing issues with ligatures, hinting, ...
2011-06-22 21:00:36 -07:00
Chris Jones
1532e86dcb fix bug in testing multiple browsers 2011-06-22 20:47:37 -07:00
Vivien Nicolas
b54164d2a9 Use the real content of the string to measure it's size 2011-06-23 05:38:05 +02:00
sbarman
d610397d1e fake stream for unimplemented filters 2011-06-22 19:20:03 -07:00
Chris Jones
57e7e798a6 fix strict-mode violations in chrome 2011-06-22 18:50:38 -07:00
Chris Jones
2ad4889868 remove debugging code 2011-06-22 18:40:20 -07:00
Chris Jones
4ae16721fa actually wait for fonts to be loaded, and write out a log of failed eq comparisons 2011-06-22 18:37:58 -07:00
Andreas Gal
5585c6a5fe Merge pull request #53 from vingtetun/master
Merge TTF font rewriting to pass the font sanitization pass.
2011-06-22 11:42:06 -07:00
Chris Jones
20b0fb9dc0 add TODO() for Shading Pattern 2011-06-22 02:37:59 -07:00
Vivien Nicolas
fdf4db3365 Merge remote branch 'upstream/master' 2011-06-22 11:31:24 +02:00
Vivien Nicolas
a772c9a2e2 Fill more gaps for Format 6 dense array 2011-06-22 11:25:00 +02:00
Chris Jones
452550ea72 TODO() for 4-component-per-pixel images 2011-06-22 02:23:15 -07:00
Chris Jones
ea9f916ffe TODO() for radial shading 2011-06-22 02:17:45 -07:00
Chris Jones
abcda6e47d band-aid lack of Indexed color space 2011-06-22 02:10:08 -07:00
Vivien Nicolas
e0c98ba3c6 Enhance the converter code by filling Format 6 dense array gaps 2011-06-22 10:56:31 +02:00
Chris Jones
5dc5455959 deal with apparent lack of FontDescriptor for standard fonts 2011-06-22 01:50:43 -07:00
Chris Jones
7f582fb322 add support for test "master mode" and finish impl of eq tests 2011-06-22 01:35:46 -07:00
Chris Jones
f151a8d630 don't let getPage() errors break the test slave 2011-06-22 00:05:45 -07:00
Andreas Gal
6c31e56448 fix typo 2011-06-22 02:36:34 -04:00
Andreas Gal
d1809be1ec fix other cases of reading this.buffer before ensureBuffer, too 2011-06-22 02:35:42 -04:00