/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
class t{constructor(){this._updating=new Map}destroy(){this._updating.clear()}add(t){this._updating.set(t.id,new e(t))}remove(t){this._updating.delete(t.id)}run(){let t=!1;return this._updating.forEach(e=>{const s=e.texture.update(e.previousToken);s>=0&&s!==e.previousToken&&(e.previousToken=s,t=!0)}),t}}class e{constructor(t){this.texture=t,this.previousToken=-1}}export{t as TextureUpdater};
