[SurfaceView]
class.
When using this interface from a thread different than the one running its [SurfaceView]
, you will want to carefully read the [lockCanvas()]
and [Callback.surfaceCreated]
.
SurfaceHolder是用来操作surface的接口,通过SurfaceView的getHolder来获取Surface、SurfaceView和SurfaceHolder的关系类似MVC。Model为Surface;View为SurfaceView, Control为SurfaceHolder。