Code example for SurfaceHolder

Methods: lockCanvas, unlockCanvasAndPost