mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Previously, when we created a shading pattern canvas we created it as the same size as the page. This was good for caching if the same pattern was used over and over again, but when lots of different shadings are created that caused us to create many full page canvases. Instead of creating the full page canvses, create the canvas as the same size as the current path bounding box. This reduces memory consumption by a lot since most paths are pretty small. Also, in real world PDFs it's rare for a shading (non shading fill) to be reused over and over again. Bug 1721949 is an example where the same pattern is reused and it will be slightly slower than before. |
||
---|---|---|
.. | ||
core | ||
display | ||
images | ||
scripting_api | ||
shared | ||
doc_helper.js | ||
interfaces.js | ||
license_header.js | ||
license_header_libre.js | ||
pdf.image_decoders.js | ||
pdf.js | ||
pdf.sandbox.external.js | ||
pdf.sandbox.js | ||
pdf.scripting.js | ||
pdf.worker.entry.js | ||
pdf.worker.js | ||
worker_loader.js |