Пример #1
0
 void ApplyTransform()
 {
     if (_path == null)
     {
         return;
     }
     if (_transformedPath != null)
     {
         _transformedPath.Dispose();
         _transformedPath = null;
     }
     if (!_transform.IsIdentity)
     {
         _transformedPath =
             new RefCountable <SkPath>(new SkPath(MethodTable.Instance.TransformPath(_path.Handle, Transform)));
     }
 }
Пример #2
0
 public RefCountable(RefCountable <T> other)
 {
     other._shared.Target.CheckDisposed();
     other._shared.AddRef();
     _shared = other._shared;
 }