public DrawContext(DrawContext context, int surfaceType)
 {
     this.device = context.device;
     this.root = context.root;
     this.renderingInstance = context.renderingInstance;
     this.context = context.context;
     this.width = context.width;
     this.height = context.height;
     this.renderer = context.renderer;
     this.surfaceType = surfaceType;
     this.AAFilter = context.AAFilter;
     this.pathError = context.pathError;
 }
 public DrawContext(Render.IRendererCallback callbacks)
 {
     renderer = new Renderer(callbacks);
 }