Turn on OMTC by default; fix crash when acquiring EGL surface

This commit is contained in:
Patrick Walton
2012-02-01 23:54:01 -08:00
parent dd56a6d155
commit 226011aa85
4 changed files with 31 additions and 0 deletions

View File

@@ -1036,12 +1036,17 @@ AndroidBridge::RegisterCompositor()
return NULL;
AutoLocalJNIFrame jniFrame(env, 3);
jmethodID registerCompositor = env->GetStaticMethodID(jFlexSurfaceView, "registerCxxCompositor", "()Lorg/mozilla/gecko/gfx/GLController;");
jobject glController = env->CallStaticObjectMethod(jFlexSurfaceView, registerCompositor);
sController.Acquire(env, glController);
sController.WaitForValidSurface();
sController.SetGLVersion(2);
sController.InitGLContext();
sController.WaitForValidSurface();
return sController.GetEGLSurface();
}