1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Don't enqueue unused properties when sending 'GetOperatorList' data from the worker-thread (PR 11069 follow-up)

With the changes made in PR 11069, it's no longer necessary to include the `pageIndex`/`intent` parameters when sending 'GetOperatorList' data. In the previous implementation these properties were used to associate the `OperatorList` with the correct `RenderTask`, however now that `ReadableStream`s are used that's handled automatically and it's thus dead code at this point.
This commit is contained in:
Jonas Jenwald 2019-09-09 17:35:24 +02:00
parent 4bf61197fa
commit 12e1c91f73
2 changed files with 5 additions and 9 deletions

View file

@ -648,14 +648,10 @@ var OperatorList = (function OperatorListClosure() {
this._totalLength += length;
this._streamSink.enqueue({
operatorList: {
fnArray: this.fnArray,
argsArray: this.argsArray,
lastChunk,
length,
},
pageIndex: this.pageIndex,
intent: this.intent,
fnArray: this.fnArray,
argsArray: this.argsArray,
lastChunk,
length,
}, 1, this._transfers);
this.dependencies = Object.create(null);