Remove Cairo reference/destroy -- this is handled internally

This commit is contained in:
Joshua Granick
2015-09-22 14:18:22 -07:00
parent 0e42ea9159
commit 1ef975cb93
8 changed files with 11 additions and 222 deletions

View File

@@ -14,6 +14,7 @@ import lime.graphics.Renderer;
@:build(lime.system.CFFI.build())
#end
@:access(lime.graphics.cairo.Cairo)
@:access(lime.ui.Window)
@@ -120,12 +121,6 @@ class NativeRenderer {
if (cacheLock == null || cacheLock.pixels != lock.pixels || cacheLock.width != lock.width || cacheLock.height != lock.height) {
if (primarySurface != null) {
primarySurface.destroy ();
}
primarySurface = CairoImageSurface.create (lock.pixels, CairoFormat.ARGB32, lock.width, lock.height, lock.pitch);
if (cairo != null) {