diff options
author | Glenn Kasten <gkasten@google.com> | 2011-11-15 15:25:38 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-11-15 15:25:38 -0800 |
commit | 2c42edf3c04cd6bc11021394f5612827b835a812 (patch) | |
tree | 87339864e71ce6cd3063a21e3b725deb4d5be4bb /native | |
parent | 6a24bb3ec86b85a4b4a41d28fa49850a3e57cdea (diff) | |
parent | 809820e28bdeb13a7625e0ce80e0dc2e2d76929f (diff) | |
download | frameworks_base-2c42edf3c04cd6bc11021394f5612827b835a812.zip frameworks_base-2c42edf3c04cd6bc11021394f5612827b835a812.tar.gz frameworks_base-2c42edf3c04cd6bc11021394f5612827b835a812.tar.bz2 |
Merge "Remove obsolete NativeWindow_fromSurfaceTexture"
Diffstat (limited to 'native')
-rw-r--r-- | native/android/native_window.cpp | 8 | ||||
-rw-r--r-- | native/include/android/native_window_jni.h | 8 |
2 files changed, 0 insertions, 16 deletions
diff --git a/native/android/native_window.cpp b/native/android/native_window.cpp index d266fc6..6b37a12 100644 --- a/native/android/native_window.cpp +++ b/native/android/native_window.cpp @@ -32,14 +32,6 @@ ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface) { return win.get(); } -ANativeWindow* ANativeWindow_fromSurfaceTexture(JNIEnv* env, jobject surfaceTexture) { - sp<ANativeWindow> win = android_SurfaceTexture_getNativeWindow(env, surfaceTexture); - if (win != NULL) { - win->incStrong((void*)ANativeWindow_acquire); - } - return win.get(); -} - void ANativeWindow_acquire(ANativeWindow* window) { window->incStrong((void*)ANativeWindow_acquire); } diff --git a/native/include/android/native_window_jni.h b/native/include/android/native_window_jni.h index 408c263..b9e72ef 100644 --- a/native/include/android/native_window_jni.h +++ b/native/include/android/native_window_jni.h @@ -33,14 +33,6 @@ extern "C" { */ ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface); -/** - * Return the ANativeWindow associated with a Java SurfaceTexture object, - * for interacting with it through native code. This acquires a reference - * on the ANativeWindow that is returned; be sure to use ANativeWindow_release() - * when done with it so that it doesn't leak. - */ -ANativeWindow* ANativeWindow_fromSurfaceTexture(JNIEnv* env, jobject surfaceTexture); - #ifdef __cplusplus }; #endif |