private static void SKBitmapReleaseInternal(IntPtr address, IntPtr context) { using (var ctx = NativeDelegateContext.Unwrap(context)) { ctx.GetDelegate <SKBitmapReleaseDelegate> () (address, ctx.ManagedContext); } }
private static void TextureReleaseInternal(IntPtr context) { using (var ctx = NativeDelegateContext.Unwrap(context)) { ctx.GetDelegate <SKImageTextureReleaseDelegate> () (ctx.ManagedContext); } }
private static IntPtr GrGLGetProcInternal(IntPtr context, string name) { var ctx = NativeDelegateContext.Unwrap(context); return(ctx.GetDelegate <GRGlGetProcDelegate> () (ctx.ManagedContext, name)); }
private static void RasterReleaseInternal(IntPtr pixels, IntPtr context) { using (var ctx = NativeDelegateContext.Unwrap(context)) { ctx.GetDelegate <SKImageRasterReleaseDelegate> () (pixels, ctx.ManagedContext); } }