diff options
author | Ted Bonkenburg <tedbo@google.com> | 2011-07-26 09:51:18 -0700 |
---|---|---|
committer | Ted Bonkenburg <tedbo@google.com> | 2011-08-11 19:58:25 -0700 |
commit | 1ee60119c4fa51ebfa781cf5fdc33f192e8551b8 (patch) | |
tree | 2fb0ce22107a1d3f0c73f3bd5d63a877f5a16d44 /native | |
parent | 61bb11cfa03abc345f27ec14f63929b6f600edff (diff) | |
download | frameworks_base-1ee60119c4fa51ebfa781cf5fdc33f192e8551b8.zip frameworks_base-1ee60119c4fa51ebfa781cf5fdc33f192e8551b8.tar.gz frameworks_base-1ee60119c4fa51ebfa781cf5fdc33f192e8551b8.tar.bz2 |
Remove ParcelSurfaceTexture and update MediaPlayer
This removes the ParcelSurfaceTexture class since that functionality has been
folded into Surface.java. The change also updates the MediaPlayer to get rid
of setParcelSurfaceTexture() and modifies setTexture() to use the new Surface
functionality in order to simplify the code.
Change-Id: Iafa75ea3188263928128325d8a726786971b4de4
Diffstat (limited to 'native')
-rw-r--r-- | native/android/native_window.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/native/android/native_window.cpp b/native/android/native_window.cpp index 36fc9bf..d266fc6 100644 --- a/native/android/native_window.cpp +++ b/native/android/native_window.cpp @@ -20,20 +20,12 @@ #include <android/native_window_jni.h> #include <surfaceflinger/Surface.h> #include <android_runtime/android_view_Surface.h> -#include <android_runtime/android_graphics_ParcelSurfaceTexture.h> #include <android_runtime/android_graphics_SurfaceTexture.h> using namespace android; ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface) { - sp<ANativeWindow> win; - if (android_Surface_isInstanceOf(env, surface)) { - win = android_Surface_getNativeWindow(env, surface); - } else if (android_SurfaceTexture_isInstanceOf(env, surface)) { - win = android_SurfaceTexture_getNativeWindow(env, surface); - } else if (android_ParcelSurfaceTexture_isInstanceOf(env, surface)) { - win = android_ParcelSurfaceTexture_getNativeWindow(env, surface); - } + sp<ANativeWindow> win = android_Surface_getNativeWindow(env, surface); if (win != NULL) { win->incStrong((void*)ANativeWindow_acquire); } |