Package com.leia.sdk.views
Class InputViewsAsset.Impl
- java.lang.Object
-
- com.leia.sdk.views.InputViewsAsset.Impl
-
- Direct Known Subclasses:
InputViewsAsset.PictureImpl
- Enclosing class:
- InputViewsAsset
public abstract static class InputViewsAsset.Impl extends Object
Represents a concrete asset type implementation. Use it as an extension entry point.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
mIsValid
protected SurfaceTextureReadyCallback
mSurfaceTextureReadyListener
-
Constructor Summary
Constructors Constructor Description Impl(SurfaceTextureReadyCallback surfaceTextureReadyListener)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
protected abstract InputAGSLBinding
createAGSLBinding()
protected abstract InputGLBinding
createGLBinding()
Used by InterlacedRenderer on a GL thread before rendering starts.protected abstract InputGLBinding.SRGBConfig
getPreferredSRGBConfig()
Vector2i
getSize()
Used by InterlacedRenderer to initializeInterlacedSurfaceViewConfig.sourceSize
.boolean
isValid()
protected void
logThread(String subTag)
-
-
-
Field Detail
-
mSurfaceTextureReadyListener
protected final SurfaceTextureReadyCallback mSurfaceTextureReadyListener
-
mIsValid
protected volatile boolean mIsValid
-
-
Constructor Detail
-
Impl
public Impl(SurfaceTextureReadyCallback surfaceTextureReadyListener)
-
-
Method Detail
-
close
public void close()
-
isValid
public boolean isValid()
- Returns:
- whether Impl is still valid or it's been closed via
close()
.
-
getPreferredSRGBConfig
protected abstract InputGLBinding.SRGBConfig getPreferredSRGBConfig()
-
createGLBinding
protected abstract InputGLBinding createGLBinding()
Used by InterlacedRenderer on a GL thread before rendering starts.
-
createAGSLBinding
protected abstract InputAGSLBinding createAGSLBinding()
-
getSize
public Vector2i getSize()
Used by InterlacedRenderer to initializeInterlacedSurfaceViewConfig.sourceSize
. If the size is not known, return null and set it when it's known usingInterlacedSurfaceViewConfigAccessor
.
-
logThread
protected void logThread(String subTag)
-
-