Merge pull request #11130 from Snuffleupagus/GetOperatorList-enqueue-signature
Don't `enqueue` unused properties when sending 'GetOperatorList' data from the worker-thread (PR 11069 follow-up)
This commit is contained in:
commit
b2856b16a5
@ -648,14 +648,10 @@ var OperatorList = (function OperatorListClosure() {
|
|||||||
this._totalLength += length;
|
this._totalLength += length;
|
||||||
|
|
||||||
this._streamSink.enqueue({
|
this._streamSink.enqueue({
|
||||||
operatorList: {
|
fnArray: this.fnArray,
|
||||||
fnArray: this.fnArray,
|
argsArray: this.argsArray,
|
||||||
argsArray: this.argsArray,
|
lastChunk,
|
||||||
lastChunk,
|
length,
|
||||||
length,
|
|
||||||
},
|
|
||||||
pageIndex: this.pageIndex,
|
|
||||||
intent: this.intent,
|
|
||||||
}, 1, this._transfers);
|
}, 1, this._transfers);
|
||||||
|
|
||||||
this.dependencies = Object.create(null);
|
this.dependencies = Object.create(null);
|
||||||
|
@ -1324,7 +1324,7 @@ class PDFPageProxy {
|
|||||||
if (this._transport.destroyed) {
|
if (this._transport.destroyed) {
|
||||||
return; // Ignore any pending requests if the worker was terminated.
|
return; // Ignore any pending requests if the worker was terminated.
|
||||||
}
|
}
|
||||||
this._renderPageChunk(value.operatorList, intentState);
|
this._renderPageChunk(value, intentState);
|
||||||
pump();
|
pump();
|
||||||
}, (reason) => {
|
}, (reason) => {
|
||||||
intentState.streamReader = null;
|
intentState.streamReader = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user