diff options
author | Romain Guy <romainguy@google.com> | 2013-02-28 18:13:54 -0800 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2013-02-28 18:16:31 -0800 |
commit | 8b5aa4846939975adacd6ea1d2a57a2493ac0216 (patch) | |
tree | 1236d8faf6760cc4e9d7cffa6f2a94ffe48a84c7 /core/jni/android_view_Surface.cpp | |
parent | 1361dff5eb54b9b02b4d1a2d3e2ed3afd216d79d (diff) | |
download | frameworks_base-8b5aa4846939975adacd6ea1d2a57a2493ac0216.zip frameworks_base-8b5aa4846939975adacd6ea1d2a57a2493ac0216.tar.gz frameworks_base-8b5aa4846939975adacd6ea1d2a57a2493ac0216.tar.bz2 |
Restore the ability to track native Surface changes
Bug #8230990
ViewRootImpl needs to know when the native Surface objects changes
to recreate the EGL surface. A recent refactoring in Surface broke
the behavior of getGenerationId(). This simply restores the old
behavior (every change increments the generation ID by 1.)
Change-Id: Ife1df1ffb2ee7a373b8ebf2431192702ba10f344
Diffstat (limited to 'core/jni/android_view_Surface.cpp')
-rw-r--r-- | core/jni/android_view_Surface.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/core/jni/android_view_Surface.cpp b/core/jni/android_view_Surface.cpp index 02e76e5..1ffb1b8 100644 --- a/core/jni/android_view_Surface.cpp +++ b/core/jni/android_view_Surface.cpp @@ -53,7 +53,6 @@ static const char* const OutOfResourcesException = static struct { jclass clazz; jfieldID mNativeObject; - jfieldID mGenerationId; jfieldID mCanvas; jmethodID ctor; } gSurfaceClassInfo; @@ -384,8 +383,6 @@ int register_android_view_Surface(JNIEnv* env) gSurfaceClassInfo.clazz = jclass(env->NewGlobalRef(clazz)); gSurfaceClassInfo.mNativeObject = env->GetFieldID(gSurfaceClassInfo.clazz, "mNativeObject", "I"); - gSurfaceClassInfo.mGenerationId = - env->GetFieldID(gSurfaceClassInfo.clazz, "mGenerationId", "I"); gSurfaceClassInfo.mCanvas = env->GetFieldID(gSurfaceClassInfo.clazz, "mCanvas", "Landroid/graphics/Canvas;"); gSurfaceClassInfo.ctor = env->GetMethodID(gSurfaceClassInfo.clazz, "<init>", "(I)V"); |