A subclass of SurfaceView is created in order to appear like a normal SurfaceView to jni but can be managed in Java easily. This class implements the SurfaceHolder.Callback interface in order to notify the native PluginSurface when the surface changes.