Do not lock label cache entries

This commit is contained in:
Andreas Hocevar
2020-01-05 11:24:46 +01:00
parent ae336f0a1b
commit da6eed850c
8 changed files with 7 additions and 117 deletions

View File

@@ -131,8 +131,6 @@ class CanvasTextBuilder extends CanvasBuilder {
* @type {string}
*/
this.strokeKey_ = '';
labelCache.prune();
}
/**
@@ -140,6 +138,7 @@ class CanvasTextBuilder extends CanvasBuilder {
*/
finish() {
const instructions = super.finish();
labelCache.expireCache();
instructions.textStates = this.textStates;
instructions.fillStates = this.fillStates;
instructions.strokeStates = this.strokeStates;