This needs to be done by calling code (since we don't know when canvases are done being used otherwise). To facilitate this, stitch should have canvasFactory(callback) and releaseCanvas(canvas) methods.
There may be issues with Images as well, so we may need corresponding imageFactory(callback) and releaseImage(image) methods.
This needs to be done by calling code (since we don't know when canvases are done being used otherwise). To facilitate this,
stitch
should havecanvasFactory(callback)
andreleaseCanvas(canvas)
methods.There may be issues with
Image
s as well, so we may need correspondingimageFactory(callback)
andreleaseImage(image)
methods.