Hi, I am playing with WebViews in Photoshop and canvases.
After some time HTML canvas gets erased. Canvases look empty. Both for 2d and webgl contexts.
getImageData returns non-erased data.
Sometimes it is related to ‘visibilitychange’ events, but sometimes it is triggered on its own.
Solution would get to call getImageData and putImageData, but maybe there is a better way.
get/put are not free to call. And no canvases would confuse the user.