mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Merge working on Nexus S
This commit is contained in:
parent
45f236563b
commit
08dc021a3b
@ -92,6 +92,7 @@ public class LayerView extends FlexibleGLSurfaceView {
|
||||
setFocusable(true);
|
||||
setFocusableInTouchMode(true);
|
||||
|
||||
createGLThread();
|
||||
}
|
||||
|
||||
private void addToEventQueue(MotionEvent event) {
|
||||
|
@ -1077,10 +1077,13 @@ AndroidBridge::RegisterCompositor()
|
||||
|
||||
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);
|
||||
|
||||
__android_log_print(ANDROID_LOG_ERROR, "Gecko", "### Acquire()");
|
||||
sController.Acquire(env, glController);
|
||||
sController.SetGLVersion(2);
|
||||
__android_log_print(ANDROID_LOG_ERROR, "Gecko", "Registered Compositor");
|
||||
}
|
||||
|
||||
EGLSurface
|
||||
|
@ -364,7 +364,6 @@ AndroidGeckoSoftwareLayerClient::InitGeckoSoftwareLayerClientClass(JNIEnv *jEnv)
|
||||
jUnlockBufferMethod = getMethod("unlockBuffer", "()V");
|
||||
jBeginDrawingMethod = getMethod("beginDrawing", "(IIIILjava/lang/String;Z)Z");
|
||||
jEndDrawingMethod = getMethod("endDrawing", "(IIII)V");
|
||||
jGetRenderOffsetMethod = getMethod("getRenderOffset", "()Landroid/graphics/Point;");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user