Create an OptionalContentConfig
-instance once for each task, when running the reference test-suite
This avoids the need to make a round-trip to the worker-thread for *every* single page that's being tested, which should thus be more efficient.
This commit is contained in:
parent
ef5a5c142a
commit
9ba5f9fa34
@ -397,6 +397,8 @@ var Driver = (function DriverClosure() {
|
|||||||
loadingTask.promise.then(
|
loadingTask.promise.then(
|
||||||
doc => {
|
doc => {
|
||||||
task.pdfDoc = doc;
|
task.pdfDoc = doc;
|
||||||
|
task.optionalContentConfigPromise = doc.getOptionalContentConfig();
|
||||||
|
|
||||||
this._nextPage(task, failure);
|
this._nextPage(task, failure);
|
||||||
},
|
},
|
||||||
err => {
|
err => {
|
||||||
@ -605,6 +607,7 @@ var Driver = (function DriverClosure() {
|
|||||||
canvasContext: ctx,
|
canvasContext: ctx,
|
||||||
viewport,
|
viewport,
|
||||||
renderInteractiveForms: renderForms,
|
renderInteractiveForms: renderForms,
|
||||||
|
optionalContentConfigPromise: task.optionalContentConfigPromise,
|
||||||
};
|
};
|
||||||
if (renderPrint) {
|
if (renderPrint) {
|
||||||
const annotationStorage = task.annotationStorage;
|
const annotationStorage = task.annotationStorage;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user