Merge pull request #3911 from yurydelendik/mem-redux2
Cleaning up fonts when viewer is idle for some time
This commit is contained in:
commit
3132c9e7e9
9 changed files with 93 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue