Merge pull request #3911 from yurydelendik/mem-redux2

Cleaning up fonts when viewer is idle for some time
This commit is contained in:
Brendan Dahl 2013-11-18 13:01:23 -08:00
commit 3132c9e7e9
9 changed files with 93 additions and 9 deletions

View file

@ -26,7 +26,7 @@
var PartialEvaluator = (function PartialEvaluatorClosure() {
function PartialEvaluator(pdfManager, xref, handler, pageIndex,
uniquePrefix, idCounters) {
uniquePrefix, idCounters, fontCache) {
this.state = new EvalState();
this.stateStack = [];
@ -36,7 +36,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
this.pageIndex = pageIndex;
this.uniquePrefix = uniquePrefix;
this.idCounters = idCounters;
this.fontCache = new RefSetCache();
this.fontCache = fontCache;
}
// Specifies properties for each command