示例#1
0
 private static void SKBitmapReleaseInternal(IntPtr address, IntPtr context)
 {
     using (var ctx = NativeDelegateContext.Unwrap(context)) {
         ctx.GetDelegate <SKBitmapReleaseDelegate> () (address, ctx.ManagedContext);
     }
 }
示例#2
0
文件: SKImage.cs 项目: mqp/SkiaSharp
 private static void TextureReleaseInternal(IntPtr context)
 {
     using (var ctx = NativeDelegateContext.Unwrap(context)) {
         ctx.GetDelegate <SKImageTextureReleaseDelegate> () (ctx.ManagedContext);
     }
 }
示例#3
0
        private static IntPtr GrGLGetProcInternal(IntPtr context, string name)
        {
            var ctx = NativeDelegateContext.Unwrap(context);

            return(ctx.GetDelegate <GRGlGetProcDelegate> () (ctx.ManagedContext, name));
        }
示例#4
0
文件: SKImage.cs 项目: mqp/SkiaSharp
 private static void RasterReleaseInternal(IntPtr pixels, IntPtr context)
 {
     using (var ctx = NativeDelegateContext.Unwrap(context)) {
         ctx.GetDelegate <SKImageRasterReleaseDelegate> () (pixels, ctx.ManagedContext);
     }
 }