This improves performance when canvas backing stores are re-created at the same res, since Ganesh will retrieve them from cache rather than performing a glTexImage2D().
Created attachment 121111 [details] Patch
Comment on attachment 121111 [details] Patch Looks good to me as long as it's been tested. You're sure that this code path in Ganesh won't change GL state in a way that might confuse the caller?
I think we will want to handle the recycling of textures on behalf of the client transparently in skia without changing webkit. This change will work but every canvas will count against the cache budget for skia's internally created textures.
Comment on attachment 121111 [details] Patch After discussion w/Brian, we'll try this another way.