Skija icon indicating copy to clipboard operation
Skija copied to clipboard

Migrate less-punishing close to m119

Open tonsky opened this issue 1 month ago • 2 comments

Thank you very much!

I started using this version, but I ran into this issue. For example, the code: Surface s = Surface.makeRaster(new ImageInfo(5,5, ColorType.N32, ColorAlphaType.PREMUL)); Canvas c = s.getCanvas(); c.close(); // Throw ex

throws a runtime exception and is never reset flag c.isClosed (is always false).

in current branch is image and current master version image

In Skiasharp, for example, they reset this pointer in any case. I don't know which case is the most correct. It's not a problem now, just something to think about. Anyway, thanks for the update.

Originally posted by @vladimirsamsonov in https://github.com/HumbleUI/Skija/issues/90#issuecomment-3607065879

tonsky avatar Dec 03 '25 15:12 tonsky