title: Prevent drawing beyond canvas with SurfaceView
body: <p>Is there way to prevent drawing of parts of objects, like bitmaps or paths, which go beyond the borders of <code>Canvas</code> in <code>SurfaceView</code>?</p>
  
  <p>When I gradually scale an object beyond the <code>Canvas</code>' size, especially with blurred paint, it all slows down to a stand still and I have to wait few seconds to get the control back -- it is not responsive. I scale an object by moving my finger over the screen; if I do it too fast and scale it up, then it really slows down drawing.</p>
  
  <p>I did not have the same problem when using just ordinary <code>View</code> canvas, so don't know what is slowing it down. It's as though <code>SurfaceView</code> responds too fast and then gets congested.</p>
  
  <p>So one idea to improve this, is to prevent drawing outside canvas, but not sure if <code>SurfaceView</code> has such clipping options. </p>