Example #1
0
 private static SKPaint ApplyWrapperTo(ref DrawingContextImpl.PaintWrapper wrapper,
                                       ref IDisposable curr, SKPaint paint)
 {
     curr?.Dispose();
     curr = wrapper.ApplyTo(paint);
     return(wrapper.Paint);
 }
Example #2
0
 private static void ApplyWrapperTo(ref SKPaint current, DrawingContextImpl.PaintWrapper wrapper,
                                    ref IDisposable curr, SKPaint paint)
 {
     if (current == wrapper.Paint)
     {
         return;
     }
     curr?.Dispose();
     curr = wrapper.ApplyTo(paint);
 }
 private static void ApplyWrapperTo(ref SKPaint current, DrawingContextImpl.PaintWrapper wrapper,
                                    ref IDisposable curr, SKPaint paint, bool canUseLcdRendering)
 {
     if (current == wrapper.Paint)
     {
         return;
     }
     curr?.Dispose();
     curr = wrapper.ApplyTo(paint);
     paint.LcdRenderText = canUseLcdRendering;
 }