Skip to content

Commit c0e3977

Browse files
committed
Remove the canvases cache
The cache has been added in #3312 in 2013 and a lot of things changed since. Having too many cached accelerated canvases can lead to have to move their data from the GPU to the RAM which is costly. So this patch: - removes all the cached canvases; - destroys the useless canvases in order to free their associated memory asap; - slightly rewrite canvas.js::_scaleImage to avoid too much canvas creation.
1 parent ae70a5d commit c0e3977

3 files changed

Lines changed: 187 additions & 165 deletions

File tree

0 commit comments

Comments
 (0)