Merge pull request #16881 from Snuffleupagus/InternalRenderTask-tweaks
A couple of small `InternalRenderTask` changes
This commit is contained in:
commit
1e7c907fbf
@ -3378,10 +3378,8 @@ class InternalRenderTask {
|
|||||||
this.running = false;
|
this.running = false;
|
||||||
this.cancelled = true;
|
this.cancelled = true;
|
||||||
this.gfx?.endDrawing();
|
this.gfx?.endDrawing();
|
||||||
|
InternalRenderTask.#canvasInUse.delete(this._canvas);
|
||||||
|
|
||||||
if (this._canvas) {
|
|
||||||
InternalRenderTask.#canvasInUse.delete(this._canvas);
|
|
||||||
}
|
|
||||||
this.callback(
|
this.callback(
|
||||||
error ||
|
error ||
|
||||||
new RenderingCancelledException(
|
new RenderingCancelledException(
|
||||||
@ -3439,10 +3437,9 @@ class InternalRenderTask {
|
|||||||
if (this.operatorListIdx === this.operatorList.argsArray.length) {
|
if (this.operatorListIdx === this.operatorList.argsArray.length) {
|
||||||
this.running = false;
|
this.running = false;
|
||||||
if (this.operatorList.lastChunk) {
|
if (this.operatorList.lastChunk) {
|
||||||
this.gfx.endDrawing(this.pageColors);
|
this.gfx.endDrawing();
|
||||||
if (this._canvas) {
|
InternalRenderTask.#canvasInUse.delete(this._canvas);
|
||||||
InternalRenderTask.#canvasInUse.delete(this._canvas);
|
|
||||||
}
|
|
||||||
this.callback();
|
this.callback();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user