code: function (clip) {
      var width = this.getUnscaledWidth();
      var height = this.getUnscaledHeight();
      this.draw(clip);
      this.lastClip = clip;
      this.invalid = false;
    }
docs: Paint this canvas using the specified clip.