1package org.mozilla.gecko.gfx;
3import android.opengl.GLSurfaceView;
5import java.util.concurrent.LinkedBlockingQueue;
7import javax.microedition.khronos.opengles.GL10;
14 private LinkedBlockingQueue<RenderCommand>
queue =
new LinkedBlockingQueue<RenderCommand>();
29 command =
queue.take();
34 }
catch (InterruptedException exception) {
40 void execute(RenderCommand command) {
54 case SURFACE_DESTROYED:
110 synchronized (
this) {
117 if (renderer !=
null) {
125 if (renderer !=
null) {
void initGLContext()
You must call this on the same thread you intend to use OpenGL on.
EGLSurface getEGLSurface()
A view rendered by the layer compositor.
LayerRenderer getRenderer()
Thread which controls the rendering to OpenGL context.
void surfaceChanged(int width, int height)
void compositionPauseRequested()
GLSurfaceView.Renderer getRenderer()
void doSurfaceDestroyed()
LinkedBlockingQueue< RenderCommand > queue
void compositionResumeRequested(int width, int height)
RenderControllerThread(GLController controller)