LibreOffice Module android (master) 1
|
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 |
Definition at line 17 of file GLController.java.
|
inline |
Definition at line 45 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.mGLVersion, org.mozilla.gecko.gfx.GLController.mSurfaceValid, and org.mozilla.gecko.gfx.GLController.mView.
|
inline |
Definition at line 107 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.mEGL, org.mozilla.gecko.gfx.GLController.mEGLConfig, org.mozilla.gecko.gfx.GLController.mEGLContext, org.mozilla.gecko.gfx.GLController.mEGLDisplay, org.mozilla.gecko.gfx.GLController.mEGLSurface, and org.mozilla.gecko.gfx.GLController.mGL.
|
inlineprivate |
Definition at line 194 of file GLController.java.
References config, org.mozilla.gecko.gfx.GLController.CONFIG_SPEC, org.mozilla.gecko.gfx.GLController.getEGLError(), org.mozilla.gecko.gfx.GLController.mEGL, and org.mozilla.gecko.gfx.GLController.mEGLDisplay.
Referenced by org.mozilla.gecko.gfx.GLController.initEGL().
|
inlineprivate |
Definition at line 222 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.getEGLError(), org.mozilla.gecko.gfx.LayerView.getNativeWindow(), org.mozilla.gecko.gfx.LayerView.getRenderer(), org.mozilla.gecko.gfx.GLController.mEGL, org.mozilla.gecko.gfx.GLController.mEGLConfig, org.mozilla.gecko.gfx.GLController.mEGLContext, org.mozilla.gecko.gfx.GLController.mEGLDisplay, org.mozilla.gecko.gfx.GLController.mEGLSurface, org.mozilla.gecko.gfx.GLController.mGL, org.mozilla.gecko.gfx.GLController.mView, Object, org.mozilla.gecko.gfx.LayerRenderer.onSurfaceChanged(), and org.mozilla.gecko.gfx.LayerRenderer.onSurfaceCreated().
Referenced by org.mozilla.gecko.gfx.GLController.initGLContext().
|
inline |
Definition at line 61 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.getEGLError(), org.mozilla.gecko.gfx.GLController.mEGL, org.mozilla.gecko.gfx.GLController.mEGLContext, org.mozilla.gecko.gfx.GLController.mEGLDisplay, org.mozilla.gecko.gfx.GLController.mEGLSurface, and org.mozilla.gecko.gfx.GLController.mGL.
Referenced by org.mozilla.gecko.gfx.RenderControllerThread.doShutdown(), and org.mozilla.gecko.gfx.RenderControllerThread.doSurfaceDestroyed().
|
inline |
Definition at line 94 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.mEGLConfig.
|
inline |
Definition at line 95 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.mEGLContext.
|
inline |
Definition at line 93 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.mEGLDisplay.
|
inlineprivate |
Definition at line 263 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.mEGL, and String.
Referenced by org.mozilla.gecko.gfx.GLController.chooseConfig(), org.mozilla.gecko.gfx.GLController.createEGLSurface(), org.mozilla.gecko.gfx.GLController.disposeGLContext(), org.mozilla.gecko.gfx.GLController.initEGL(), org.mozilla.gecko.gfx.GLController.initEGLContext(), and org.mozilla.gecko.gfx.GLController.provideEGLSurface().
|
inline |
Definition at line 96 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.mEGLSurface.
Referenced by org.mozilla.gecko.gfx.RenderControllerThread.doRenderFrame().
|
inline |
Definition at line 92 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.mEGLContext.
Referenced by org.mozilla.gecko.gfx.RenderControllerThread.doRenderFrame(), and org.mozilla.gecko.gfx.RenderControllerThread.doSizeChanged().
|
inline |
Definition at line 143 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.mHeight.
|
inline |
Definition at line 97 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.mView.
Referenced by org.mozilla.gecko.gfx.RenderControllerThread.getRenderer().
|
inline |
Definition at line 139 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.mWidth.
|
inline |
Definition at line 99 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.mEGLSurface.
Referenced by org.mozilla.gecko.gfx.RenderControllerThread.doSurfaceCreated().
|
inlineprivate |
Definition at line 159 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.chooseConfig(), org.mozilla.gecko.gfx.GLController.getEGLError(), org.mozilla.gecko.gfx.GLController.mEGL, org.mozilla.gecko.gfx.GLController.mEGLConfig, and org.mozilla.gecko.gfx.GLController.mEGLDisplay.
Referenced by org.mozilla.gecko.gfx.GLController.initEGLContext(), and org.mozilla.gecko.gfx.GLController.provideEGLSurface().
|
inlineprivate |
Definition at line 175 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.EGL_CONTEXT_CLIENT_VERSION, org.mozilla.gecko.gfx.GLController.getEGLError(), org.mozilla.gecko.gfx.LayerView.getRenderer(), org.mozilla.gecko.gfx.GLController.initEGL(), org.mozilla.gecko.gfx.GLController.mEGL, org.mozilla.gecko.gfx.GLController.mEGLConfig, org.mozilla.gecko.gfx.GLController.mEGLContext, org.mozilla.gecko.gfx.GLController.mEGLDisplay, org.mozilla.gecko.gfx.GLController.mGL, org.mozilla.gecko.gfx.GLController.mGLVersion, org.mozilla.gecko.gfx.GLController.mHeight, org.mozilla.gecko.gfx.GLController.mView, org.mozilla.gecko.gfx.GLController.mWidth, org.mozilla.gecko.gfx.LayerRenderer.onSurfaceChanged(), and org.mozilla.gecko.gfx.LayerRenderer.onSurfaceCreated().
Referenced by 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().
|
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.
|
inline |
Definition at line 121 of file GLController.java.
References org.mozilla.gecko.gfx.LayerView.Listener.compositionResumeRequested(), org.mozilla.gecko.gfx.GLController.mHeight, org.mozilla.gecko.gfx.GLController.mSurfaceValid, org.mozilla.gecko.gfx.GLController.mView, and org.mozilla.gecko.gfx.GLController.mWidth.
|
inline |
Definition at line 51 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.mGLVersion.
|
inline |
Definition at line 103 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.mEGL, org.mozilla.gecko.gfx.GLController.mEGLDisplay, and org.mozilla.gecko.gfx.GLController.mEGLSurface.
Referenced by org.mozilla.gecko.gfx.RenderControllerThread.doRenderFrame().
|
inline |
Definition at line 129 of file GLController.java.
References org.mozilla.gecko.gfx.GLController.mSurfaceValid.
|
staticprivate |
Definition at line 36 of file GLController.java.
Referenced by org.mozilla.gecko.gfx.GLController.chooseConfig().
|
staticprivate |
Definition at line 18 of file GLController.java.
Referenced by org.mozilla.gecko.gfx.GLController.initEGLContext().
|
staticprivate |
Definition at line 34 of file GLController.java.
|
staticprivate |
Definition at line 19 of file GLController.java.
|
private |
Definition at line 26 of file GLController.java.
Referenced by org.mozilla.gecko.gfx.GLController.checkForLostContext(), org.mozilla.gecko.gfx.GLController.chooseConfig(), org.mozilla.gecko.gfx.GLController.createEGLSurface(), org.mozilla.gecko.gfx.GLController.disposeGLContext(), org.mozilla.gecko.gfx.GLController.getEGLError(), org.mozilla.gecko.gfx.GLController.initEGL(), org.mozilla.gecko.gfx.GLController.initEGLContext(), org.mozilla.gecko.gfx.GLController.provideEGLSurface(), and org.mozilla.gecko.gfx.GLController.swapBuffers().
|
private |
Definition at line 28 of file GLController.java.
Referenced by org.mozilla.gecko.gfx.GLController.checkForLostContext(), org.mozilla.gecko.gfx.GLController.createEGLSurface(), org.mozilla.gecko.gfx.GLController.getEGLConfig(), org.mozilla.gecko.gfx.GLController.initEGL(), org.mozilla.gecko.gfx.GLController.initEGLContext(), and org.mozilla.gecko.gfx.GLController.provideEGLSurface().
|
private |
Definition at line 29 of file GLController.java.
Referenced by org.mozilla.gecko.gfx.GLController.checkForLostContext(), org.mozilla.gecko.gfx.GLController.createEGLSurface(), org.mozilla.gecko.gfx.GLController.disposeGLContext(), org.mozilla.gecko.gfx.GLController.getEGLContext(), org.mozilla.gecko.gfx.GLController.getGL(), and org.mozilla.gecko.gfx.GLController.initEGLContext().
|
private |
Definition at line 27 of file GLController.java.
Referenced by org.mozilla.gecko.gfx.GLController.checkForLostContext(), org.mozilla.gecko.gfx.GLController.chooseConfig(), org.mozilla.gecko.gfx.GLController.createEGLSurface(), org.mozilla.gecko.gfx.GLController.disposeGLContext(), org.mozilla.gecko.gfx.GLController.getEGLDisplay(), org.mozilla.gecko.gfx.GLController.initEGL(), org.mozilla.gecko.gfx.GLController.initEGLContext(), org.mozilla.gecko.gfx.GLController.provideEGLSurface(), and org.mozilla.gecko.gfx.GLController.swapBuffers().
|
private |
Definition at line 30 of file GLController.java.
Referenced by org.mozilla.gecko.gfx.GLController.checkForLostContext(), org.mozilla.gecko.gfx.GLController.createEGLSurface(), org.mozilla.gecko.gfx.GLController.disposeGLContext(), org.mozilla.gecko.gfx.GLController.getEGLSurface(), org.mozilla.gecko.gfx.GLController.hasSurface(), and org.mozilla.gecko.gfx.GLController.swapBuffers().
|
private |
|
private |
Definition at line 22 of file GLController.java.
Referenced by org.mozilla.gecko.gfx.GLController.GLController(), org.mozilla.gecko.gfx.GLController.initEGLContext(), and org.mozilla.gecko.gfx.GLController.setGLVersion().
|
private |
Definition at line 24 of file GLController.java.
Referenced by org.mozilla.gecko.gfx.GLController.getHeight(), org.mozilla.gecko.gfx.GLController.initEGLContext(), and org.mozilla.gecko.gfx.GLController.resumeCompositorIfValid().
|
private |
Definition at line 23 of file GLController.java.
Referenced by org.mozilla.gecko.gfx.GLController.GLController(), org.mozilla.gecko.gfx.GLController.resumeCompositorIfValid(), and org.mozilla.gecko.gfx.GLController.waitForValidSurface().
|
private |
Definition at line 21 of file GLController.java.
Referenced by org.mozilla.gecko.gfx.GLController.createEGLSurface(), org.mozilla.gecko.gfx.GLController.getView(), org.mozilla.gecko.gfx.GLController.GLController(), org.mozilla.gecko.gfx.GLController.initEGLContext(), org.mozilla.gecko.gfx.GLController.provideEGLSurface(), and org.mozilla.gecko.gfx.GLController.resumeCompositorIfValid().
|
private |
Definition at line 24 of file GLController.java.
Referenced by org.mozilla.gecko.gfx.GLController.getWidth(), org.mozilla.gecko.gfx.GLController.initEGLContext(), and org.mozilla.gecko.gfx.GLController.resumeCompositorIfValid().