This is a custom class from SurfaceView. This class makes you to create camera app easily.