Bug 740898. Merge LayerView and GLSurfaceView. r=pcwalton
Once, GLThread is gone we don't have any need to support both styles of GL rendering. Merging LayerView and FlexibleGLSurfaceView makes it clearer what's going on, and I expect we'll also be able to take out some dead code from the resulting LayerView. This patch is mostly uninteresting. The interesting bits are that implementations of requestRender and the constructors are merged. Everything else is mostly copying over methods and renaming FlexibleGLSurfaceView's mController to mGLController.
This commit is contained in:
@@ -201,7 +201,7 @@ AndroidBridge::Init(JNIEnv *jEnv,
|
||||
jStringClass = (jclass) jEnv->NewGlobalRef(jEnv->FindClass("java/lang/String"));
|
||||
|
||||
#ifdef MOZ_JAVA_COMPOSITOR
|
||||
jFlexSurfaceView = (jclass) jEnv->NewGlobalRef(jEnv->FindClass("org/mozilla/gecko/gfx/FlexibleGLSurfaceView"));
|
||||
jLayerView = (jclass) jEnv->NewGlobalRef(jEnv->FindClass("org/mozilla/gecko/gfx/LayerView"));
|
||||
|
||||
AndroidGLController::Init(jEnv);
|
||||
AndroidEGLObject::Init(jEnv);
|
||||
@@ -1119,9 +1119,9 @@ AndroidBridge::RegisterCompositor()
|
||||
|
||||
AutoLocalJNIFrame jniFrame(env, 3);
|
||||
|
||||
jmethodID registerCompositor = env->GetStaticMethodID(jFlexSurfaceView, "registerCxxCompositor", "()Lorg/mozilla/gecko/gfx/GLController;");
|
||||
jmethodID registerCompositor = env->GetStaticMethodID(jLayerView, "registerCxxCompositor", "()Lorg/mozilla/gecko/gfx/GLController;");
|
||||
|
||||
jobject glController = env->CallStaticObjectMethod(jFlexSurfaceView, registerCompositor);
|
||||
jobject glController = env->CallStaticObjectMethod(jLayerView, registerCompositor);
|
||||
|
||||
sController.Acquire(env, glController);
|
||||
sController.SetGLVersion(2);
|
||||
|
||||
Reference in New Issue
Block a user