summaryrefslogtreecommitdiffstats
path: root/include/android_runtime/android_view_Surface.h
diff options
context:
space:
mode:
authortedbo <tedbo@google.com>2011-06-22 15:52:53 -0700
committertedbo <tedbo@google.com>2011-06-22 16:18:09 -0700
commit4e8a5c922c287ec97fec847194e930f8598a1941 (patch)
tree4cb995f8d142f646a8c99d9818b6cdee456de398 /include/android_runtime/android_view_Surface.h
parent0f5d8441ef3ee88855df71b15d81f4c14f12d63d (diff)
downloadframeworks_base-4e8a5c922c287ec97fec847194e930f8598a1941.zip
frameworks_base-4e8a5c922c287ec97fec847194e930f8598a1941.tar.gz
frameworks_base-4e8a5c922c287ec97fec847194e930f8598a1941.tar.bz2
Add method to create a ParcelSurfaceTexture from android.view.Surface.
Change-Id: I05e343ab7e327478f60322af9373574b70c148f5
Diffstat (limited to 'include/android_runtime/android_view_Surface.h')
-rw-r--r--include/android_runtime/android_view_Surface.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/android_runtime/android_view_Surface.h b/include/android_runtime/android_view_Surface.h
index 317f1e7..fb0b057 100644
--- a/include/android_runtime/android_view_Surface.h
+++ b/include/android_runtime/android_view_Surface.h
@@ -23,10 +23,15 @@
namespace android {
+class Surface;
+
extern sp<ANativeWindow> android_Surface_getNativeWindow(
JNIEnv* env, jobject clazz);
extern bool android_Surface_isInstanceOf(JNIEnv* env, jobject obj);
+/* Gets the underlying Surface from a Surface Java object. */
+extern sp<Surface> Surface_getSurface(JNIEnv* env, jobject thiz);
+
} // namespace android
#endif // _ANDROID_VIEW_SURFACE_H