Package com.leia.sdk.views
Class PictureGLBinding
- java.lang.Object
-
- com.leia.sdk.views.InputGLBinding
-
- com.leia.sdk.views.PictureGLBinding
-
public class PictureGLBinding extends InputGLBinding
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.leia.sdk.views.InputGLBinding
InputGLBinding.SRGBConfig, InputGLBinding.Texture
-
-
Field Summary
Fields Modifier and Type Field Description protected SurfaceTexture
mSurface
protected SurfaceTextureReadyCallback
mSurfaceTextureReadyCallback
protected InputGLBinding.Texture
mTexture
-
Fields inherited from class com.leia.sdk.views.InputGLBinding
GL_TEXTURE_PROTECTED_EXT, mIsValid, mWeakAsset, preferredSRGBConfig
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PictureGLBinding(InputViewsAsset.PictureImpl pictureAsset, SurfaceTextureReadyCallback surfaceTextureReadyCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
didCreateSurface()
protected void
render(InterlacedRenderer renderer, int viewportWidth, int viewportHeight, boolean isRoot)
Render views using the interlacer.void
reset()
Reset to the clean state.protected String
strIsSurfaceValid()
void
update(InterlacedRenderer renderer, boolean isProtected)
Update the state.-
Methods inherited from class com.leia.sdk.views.InputGLBinding
close, getPreferredSRGBConfig, isValidGLContext, logThread, updateAsset, updateViewScreenPosition
-
-
-
-
Field Detail
-
mTexture
protected final InputGLBinding.Texture mTexture
-
mSurface
protected SurfaceTexture mSurface
-
mSurfaceTextureReadyCallback
protected final SurfaceTextureReadyCallback mSurfaceTextureReadyCallback
-
-
Constructor Detail
-
PictureGLBinding
protected PictureGLBinding(InputViewsAsset.PictureImpl pictureAsset, SurfaceTextureReadyCallback surfaceTextureReadyCallback)
-
-
Method Detail
-
update
public void update(InterlacedRenderer renderer, boolean isProtected)
Description copied from class:InputGLBinding
Update the state. This method is used to initialize and/or update views texture. After this method, if the binding is still valid, getViewsTexture must return a valid texture.- Parameters:
renderer
- current renderer that will interlace the views texture.isProtected
- whether the views texture should be configured as protected.- See Also:
InputGLBinding.GL_TEXTURE_PROTECTED_EXT
-
reset
public void reset()
Description copied from class:InputGLBinding
Reset to the clean state.- Overrides:
reset
in classInputGLBinding
-
render
protected void render(InterlacedRenderer renderer, int viewportWidth, int viewportHeight, boolean isRoot)
Description copied from class:InputGLBinding
Render views using the interlacer.- Specified by:
render
in classInputGLBinding
-
didCreateSurface
protected void didCreateSurface()
-
strIsSurfaceValid
protected String strIsSurfaceValid()
-
-