public CanvasContext(Canvas canvas) {
   this.canvas = canvas;
   resetContext(false);
 }
 @Override
 public void resetContext() {
   resetContext(true);
 }
 public CanvasContext() {
   canvas = new Canvas(DEFAULT_WIDTH, DEFAULT_HEIGHT);
   resetContext(true);
 }