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 SurfaceTexturemSurfaceprotected SurfaceTextureReadyCallbackmSurfaceTextureReadyCallbackprotected InputGLBinding.TexturemTexture-
Fields inherited from class com.leia.sdk.views.InputGLBinding
GL_TEXTURE_PROTECTED_EXT, mIsValid, mWeakAsset, preferredSRGBConfig
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPictureGLBinding(InputViewsAsset.PictureImpl pictureAsset, SurfaceTextureReadyCallback surfaceTextureReadyCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddidCreateSurface()protected voidrender(InterlacedRenderer renderer, int viewportWidth, int viewportHeight, boolean isRoot)Render views using the interlacer.voidreset()Reset to the clean state.protected StringstrIsSurfaceValid()voidupdate(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:InputGLBindingUpdate 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:InputGLBindingReset to the clean state.- Overrides:
resetin classInputGLBinding
-
render
protected void render(InterlacedRenderer renderer, int viewportWidth, int viewportHeight, boolean isRoot)
Description copied from class:InputGLBindingRender views using the interlacer.- Specified by:
renderin classInputGLBinding
-
didCreateSurface
protected void didCreateSurface()
-
strIsSurfaceValid
protected String strIsSurfaceValid()
-
-