Update doc for FrameView
This commit is contained in:
parent
30f1e2388c
commit
66cb16c5fa
1 changed files with 22 additions and 1 deletions
|
|
@ -17,9 +17,30 @@ import android.view.MotionEvent
|
|||
import android.view.inputmethod.BaseInputConnection
|
||||
import android.view.inputmethod.EditorInfo
|
||||
import com.gaurav.avnc.ui.vnc.gl.Renderer
|
||||
import com.gaurav.avnc.viewmodel.VncViewModel
|
||||
import com.gaurav.avnc.vnc.VncClient
|
||||
|
||||
/**
|
||||
* FrameView renders the VNC framebuffer on screen.
|
||||
* This class renders the VNC framebuffer on screen.
|
||||
*
|
||||
* It derives from [GLSurfaceView], which creates an EGL Display, where we can
|
||||
* render the framebuffer using OpenGL ES. See [GLSurfaceView] for more details.
|
||||
*
|
||||
* Actual rendering is done by [Renderer], which is executed on a dedicated
|
||||
* thread by [GLSurfaceView].
|
||||
*
|
||||
*
|
||||
*- +-------------------+ +--------------------+ +--------------------+
|
||||
*- | [FrameView] | | [VncViewModel] | | [VncClient] |
|
||||
*- +--------+----------+ +----------+---------+ +----------+---------+
|
||||
*- | | |
|
||||
*- | | |
|
||||
*- | Render Request | [FrameState] | Framebuffer
|
||||
*- | v |
|
||||
*- | +----------+---------+ |
|
||||
*- +-------------------> | [Renderer] | <------------------+
|
||||
*- +--------------------+
|
||||
|
||||
*/
|
||||
class FrameView(context: Context?, attrs: AttributeSet? = null) : GLSurfaceView(context, attrs) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue