Interface GlObjectsProvider
-
- All Known Implementing Classes:
DefaultGlObjectsProvider
@Deprecated public interface GlObjectsProvider
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.Provider to customize the creation and maintenance of GL objects.
-
-
Field Summary
Fields Modifier and Type Field Description static GlObjectsProviderDEFAULTDeprecated.Please useDefaultGlObjectsProviderincom.google.android.exoplayer2.effect.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description GlTextureInfocreateBuffersForTexture(int texId, int width, int height)Deprecated.Returns aGlTextureInfocontaining the identifiers of the newly created buffers.EGLContextcreateEglContext(EGLDisplay eglDisplay, int openGlVersion, int[] configAttributes)Deprecated.Creates a newEGLContextfor the specifiedEGLDisplay.EGLSurfacecreateEglSurface(EGLDisplay eglDisplay, Object surface, @com.google.android.exoplayer2.C.ColorTransfer int colorTransfer, boolean isEncoderInputSurface)Deprecated.Creates a newEGLSurfacewrapping the specifiedsurface.EGLSurfacecreateFocusedPlaceholderEglSurface(EGLContext eglContext, EGLDisplay eglDisplay, int[] configAttributes)Deprecated.Creates and focuses a placeholderEGLSurface.
-
-
-
Field Detail
-
DEFAULT
@Deprecated static final GlObjectsProvider DEFAULT
Deprecated.Please useDefaultGlObjectsProviderincom.google.android.exoplayer2.effect.
-
-
Method Detail
-
createEglContext
@RequiresApi(17) EGLContext createEglContext(EGLDisplay eglDisplay, @IntRange(from=2L,to=3L) int openGlVersion, int[] configAttributes) throws GlUtil.GlException
Deprecated.Creates a newEGLContextfor the specifiedEGLDisplay.- Parameters:
eglDisplay- TheEGLDisplayto create anEGLContextfor.openGlVersion- The version of OpenGL ES to configure. Accepts either2, for OpenGL ES 2.0, or3, for OpenGL ES 3.0.configAttributes- The attributes to configure EGL with.- Throws:
GlUtil.GlException- If an error occurs during creation.
-
createEglSurface
@RequiresApi(17) EGLSurface createEglSurface(EGLDisplay eglDisplay, Object surface, @com.google.android.exoplayer2.C.ColorTransfer int colorTransfer, boolean isEncoderInputSurface) throws GlUtil.GlException
Deprecated.Creates a newEGLSurfacewrapping the specifiedsurface.- Parameters:
eglDisplay- TheEGLDisplayto attach the surface to.surface- The surface to wrap; must be a surface, surface texture or surface holder.colorTransfer- The color transfer characteristics to which thesurfaceis configured.isEncoderInputSurface- Whether thesurfaceis the input surface of an encoder.- Throws:
GlUtil.GlException- If an error occurs during creation.
-
createFocusedPlaceholderEglSurface
@RequiresApi(17) EGLSurface createFocusedPlaceholderEglSurface(EGLContext eglContext, EGLDisplay eglDisplay, int[] configAttributes) throws GlUtil.GlException
Deprecated.Creates and focuses a placeholderEGLSurface.- Parameters:
eglContext- TheEGLContextto make current.eglDisplay- TheEGLDisplayto attach the surface to.configAttributes- The attributes to configure EGL with.- Returns:
- A placeholder
EGLSurfacethat has been focused to allow rendering to take place, orEGL14.EGL_NO_SURFACEif the current context supports rendering without a surface. - Throws:
GlUtil.GlException- If an error occurs during creation.
-
createBuffersForTexture
GlTextureInfo createBuffersForTexture(int texId, int width, int height) throws GlUtil.GlException
Deprecated.Returns aGlTextureInfocontaining the identifiers of the newly created buffers.- Parameters:
texId- The identifier of the texture to attach to the buffers.width- The width of the texture in pixels.height- The height of the texture in pixels.- Throws:
GlUtil.GlException- If an error occurs during creation.
-
-