This commit is contained in:
Benoit Girard 2012-02-08 20:23:27 -05:00
Родитель 67bc14415d
Коммит b7a8f90e50
3 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -92,6 +92,7 @@ public class LayerView extends FlexibleGLSurfaceView {
setFocusable(true); setFocusable(true);
setFocusableInTouchMode(true); setFocusableInTouchMode(true);
createGLThread();
} }
private void addToEventQueue(MotionEvent event) { private void addToEventQueue(MotionEvent event) {

Просмотреть файл

@ -1077,10 +1077,13 @@ AndroidBridge::RegisterCompositor()
jmethodID registerCompositor = env->GetStaticMethodID(jFlexSurfaceView, "registerCxxCompositor", "()Lorg/mozilla/gecko/gfx/GLController;"); jmethodID registerCompositor = env->GetStaticMethodID(jFlexSurfaceView, "registerCxxCompositor", "()Lorg/mozilla/gecko/gfx/GLController;");
__android_log_print(ANDROID_LOG_ERROR, "Gecko", "### registerCxxCompositor()");
jobject glController = env->CallStaticObjectMethod(jFlexSurfaceView, registerCompositor); jobject glController = env->CallStaticObjectMethod(jFlexSurfaceView, registerCompositor);
__android_log_print(ANDROID_LOG_ERROR, "Gecko", "### Acquire()");
sController.Acquire(env, glController); sController.Acquire(env, glController);
sController.SetGLVersion(2); sController.SetGLVersion(2);
__android_log_print(ANDROID_LOG_ERROR, "Gecko", "Registered Compositor");
} }
EGLSurface EGLSurface

Просмотреть файл

@ -364,7 +364,6 @@ AndroidGeckoSoftwareLayerClient::InitGeckoSoftwareLayerClientClass(JNIEnv *jEnv)
jUnlockBufferMethod = getMethod("unlockBuffer", "()V"); jUnlockBufferMethod = getMethod("unlockBuffer", "()V");
jBeginDrawingMethod = getMethod("beginDrawing", "(IIIILjava/lang/String;Z)Z"); jBeginDrawingMethod = getMethod("beginDrawing", "(IIIILjava/lang/String;Z)Z");
jEndDrawingMethod = getMethod("endDrawing", "(IIII)V"); jEndDrawingMethod = getMethod("endDrawing", "(IIII)V");
jGetRenderOffsetMethod = getMethod("getRenderOffset", "()Landroid/graphics/Point;");
#endif #endif
} }