summaryrefslogtreecommitdiffstats
path: root/core/jni/android_view_Surface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/jni/android_view_Surface.cpp')
-rw-r--r--core/jni/android_view_Surface.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/core/jni/android_view_Surface.cpp b/core/jni/android_view_Surface.cpp
index 1f15370..40b505c 100644
--- a/core/jni/android_view_Surface.cpp
+++ b/core/jni/android_view_Surface.cpp
@@ -331,20 +331,6 @@ static jboolean nativeIsValid(JNIEnv* env, jobject surfaceObj) {
return Surface::isValid(surface) ? JNI_TRUE : JNI_FALSE;
}
-static jint nativeGetIdentity(JNIEnv* env, jobject surfaceObj) {
- sp<SurfaceControl> control(getSurfaceControl(env, surfaceObj));
- if (control != NULL) {
- return jint(control->getIdentity());
- }
-
- sp<Surface> surface(getSurface(env, surfaceObj));
- if (surface != NULL) {
- return jint(surface->getIdentity());
- }
-
- return -1;
-}
-
static jboolean nativeIsConsumerRunningBehind(JNIEnv* env, jobject surfaceObj) {
sp<Surface> surface(getSurface(env, surfaceObj));
if (!Surface::isValid(surface)) {
@@ -813,8 +799,6 @@ static JNINativeMethod gSurfaceMethods[] = {
(void*)nativeDestroy },
{"nativeIsValid", "()Z",
(void*)nativeIsValid },
- {"nativeGetIdentity", "()I",
- (void*)nativeGetIdentity },
{"nativeIsConsumerRunningBehind", "()Z",
(void*)nativeIsConsumerRunningBehind },
{"nativeLockCanvas", "(Landroid/graphics/Rect;)Landroid/graphics/Canvas;",