LibreOffice Module android (master) 1
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.mozilla.gecko.gfx.GLController Class Reference
Collaboration diagram for org.mozilla.gecko.gfx.GLController:
[legend]

Classes

class  GLControllerException
 

Public Member Functions

 GLController (LayerView view)
 
void setGLVersion (int version)
 
void initGLContext ()
 You must call this on the same thread you intend to use OpenGL on. More...
 
void disposeGLContext ()
 
GL getGL ()
 
EGLDisplay getEGLDisplay ()
 
EGLConfig getEGLConfig ()
 
EGLContext getEGLContext ()
 
EGLSurface getEGLSurface ()
 
LayerView getView ()
 
boolean hasSurface ()
 
boolean swapBuffers ()
 
boolean checkForLostContext ()
 
synchronized void resumeCompositorIfValid ()
 
synchronized void waitForValidSurface ()
 
synchronized int getWidth ()
 
synchronized int getHeight ()
 

Private Member Functions

void initEGL ()
 
void initEGLContext ()
 
EGLConfig chooseConfig ()
 
void createEGLSurface ()
 
EGLSurface provideEGLSurface ()
 Provides an EGLSurface without assuming ownership of this surface. More...
 
String getEGLError ()
 

Private Attributes

LayerView mView
 
int mGLVersion
 
boolean mSurfaceValid
 
int mWidth
 
int mHeight
 
EGL10 mEGL
 
EGLDisplay mEGLDisplay
 
EGLConfig mEGLConfig
 
EGLContext mEGLContext
 
EGLSurface mEGLSurface
 
GL mGL
 

Static Private Attributes

static final int EGL_CONTEXT_CLIENT_VERSION = 0x3098
 
static final String LOGTAG = "GeckoGLController"
 
static final int LOCAL_EGL_OPENGL_ES2_BIT = 4
 
static final int[] CONFIG_SPEC
 

Detailed Description

Definition at line 17 of file GLController.java.

Constructor & Destructor Documentation

◆ GLController()

org.mozilla.gecko.gfx.GLController.GLController ( LayerView  view)
inline

Member Function Documentation

◆ checkForLostContext()

boolean org.mozilla.gecko.gfx.GLController.checkForLostContext ( )
inline

◆ chooseConfig()

EGLConfig org.mozilla.gecko.gfx.GLController.chooseConfig ( )
inlineprivate

◆ createEGLSurface()

void org.mozilla.gecko.gfx.GLController.createEGLSurface ( )
inlineprivate

◆ disposeGLContext()

void org.mozilla.gecko.gfx.GLController.disposeGLContext ( )
inline

◆ getEGLConfig()

EGLConfig org.mozilla.gecko.gfx.GLController.getEGLConfig ( )
inline

Definition at line 94 of file GLController.java.

References org.mozilla.gecko.gfx.GLController.mEGLConfig.

◆ getEGLContext()

EGLContext org.mozilla.gecko.gfx.GLController.getEGLContext ( )
inline

Definition at line 95 of file GLController.java.

References org.mozilla.gecko.gfx.GLController.mEGLContext.

◆ getEGLDisplay()

EGLDisplay org.mozilla.gecko.gfx.GLController.getEGLDisplay ( )
inline

Definition at line 93 of file GLController.java.

References org.mozilla.gecko.gfx.GLController.mEGLDisplay.

◆ getEGLError()

String org.mozilla.gecko.gfx.GLController.getEGLError ( )
inlineprivate

◆ getEGLSurface()

EGLSurface org.mozilla.gecko.gfx.GLController.getEGLSurface ( )
inline

◆ getGL()

GL org.mozilla.gecko.gfx.GLController.getGL ( )
inline

◆ getHeight()

synchronized int org.mozilla.gecko.gfx.GLController.getHeight ( )
inline

Definition at line 143 of file GLController.java.

References org.mozilla.gecko.gfx.GLController.mHeight.

◆ getView()

LayerView org.mozilla.gecko.gfx.GLController.getView ( )
inline

◆ getWidth()

synchronized int org.mozilla.gecko.gfx.GLController.getWidth ( )
inline

Definition at line 139 of file GLController.java.

References org.mozilla.gecko.gfx.GLController.mWidth.

◆ hasSurface()

boolean org.mozilla.gecko.gfx.GLController.hasSurface ( )
inline

◆ initEGL()

void org.mozilla.gecko.gfx.GLController.initEGL ( )
inlineprivate

◆ initEGLContext()

void org.mozilla.gecko.gfx.GLController.initEGLContext ( )
inlineprivate

◆ initGLContext()

void org.mozilla.gecko.gfx.GLController.initGLContext ( )
inline

You must call this on the same thread you intend to use OpenGL on.

Definition at line 56 of file GLController.java.

References org.mozilla.gecko.gfx.GLController.createEGLSurface(), and org.mozilla.gecko.gfx.GLController.initEGLContext().

Referenced by org.mozilla.gecko.gfx.RenderControllerThread.doSurfaceCreated().

◆ provideEGLSurface()

EGLSurface org.mozilla.gecko.gfx.GLController.provideEGLSurface ( )
inlineprivate

Provides an EGLSurface without assuming ownership of this surface.

This class does not keep a reference to the provided EGL surface; the caller assumes ownership of the surface once it is returned.

Definition at line 248 of file GLController.java.

References org.mozilla.gecko.gfx.GLController.getEGLError(), org.mozilla.gecko.gfx.LayerView.getNativeWindow(), org.mozilla.gecko.gfx.GLController.initEGL(), org.mozilla.gecko.gfx.GLController.mEGL, org.mozilla.gecko.gfx.GLController.mEGLConfig, org.mozilla.gecko.gfx.GLController.mEGLDisplay, org.mozilla.gecko.gfx.GLController.mView, and Object.

◆ resumeCompositorIfValid()

synchronized void org.mozilla.gecko.gfx.GLController.resumeCompositorIfValid ( )
inline

◆ setGLVersion()

void org.mozilla.gecko.gfx.GLController.setGLVersion ( int  version)
inline

Definition at line 51 of file GLController.java.

References org.mozilla.gecko.gfx.GLController.mGLVersion.

◆ swapBuffers()

boolean org.mozilla.gecko.gfx.GLController.swapBuffers ( )
inline

◆ waitForValidSurface()

synchronized void org.mozilla.gecko.gfx.GLController.waitForValidSurface ( )
inline

Member Data Documentation

◆ CONFIG_SPEC

final int [] org.mozilla.gecko.gfx.GLController.CONFIG_SPEC
staticprivate
Initial value:
= {
EGL10.EGL_RED_SIZE, 5,
EGL10.EGL_GREEN_SIZE, 6,
EGL10.EGL_BLUE_SIZE, 5,
EGL10.EGL_SURFACE_TYPE, EGL10.EGL_WINDOW_BIT,
EGL10.EGL_RENDERABLE_TYPE, LOCAL_EGL_OPENGL_ES2_BIT,
EGL10.EGL_NONE
}
static final int LOCAL_EGL_OPENGL_ES2_BIT

Definition at line 36 of file GLController.java.

Referenced by org.mozilla.gecko.gfx.GLController.chooseConfig().

◆ EGL_CONTEXT_CLIENT_VERSION

final int org.mozilla.gecko.gfx.GLController.EGL_CONTEXT_CLIENT_VERSION = 0x3098
staticprivate

Definition at line 18 of file GLController.java.

Referenced by org.mozilla.gecko.gfx.GLController.initEGLContext().

◆ LOCAL_EGL_OPENGL_ES2_BIT

final int org.mozilla.gecko.gfx.GLController.LOCAL_EGL_OPENGL_ES2_BIT = 4
staticprivate

Definition at line 34 of file GLController.java.

◆ LOGTAG

final String org.mozilla.gecko.gfx.GLController.LOGTAG = "GeckoGLController"
staticprivate

Definition at line 19 of file GLController.java.

◆ mEGL

EGL10 org.mozilla.gecko.gfx.GLController.mEGL
private

◆ mEGLConfig

EGLConfig org.mozilla.gecko.gfx.GLController.mEGLConfig
private

◆ mEGLContext

EGLContext org.mozilla.gecko.gfx.GLController.mEGLContext
private

◆ mEGLDisplay

EGLDisplay org.mozilla.gecko.gfx.GLController.mEGLDisplay
private

◆ mEGLSurface

EGLSurface org.mozilla.gecko.gfx.GLController.mEGLSurface
private

◆ mGL

GL org.mozilla.gecko.gfx.GLController.mGL
private

◆ mGLVersion

int org.mozilla.gecko.gfx.GLController.mGLVersion
private

◆ mHeight

int org.mozilla.gecko.gfx.GLController.mHeight
private

◆ mSurfaceValid

boolean org.mozilla.gecko.gfx.GLController.mSurfaceValid
private

◆ mView

LayerView org.mozilla.gecko.gfx.GLController.mView
private

◆ mWidth

int org.mozilla.gecko.gfx.GLController.mWidth
private

The documentation for this class was generated from the following file: