From 1e7fa9e945d98eab76ff92f37c25040429a6c0a0 Mon Sep 17 00:00:00 2001 From: tedbo Date: Wed, 22 Jun 2011 15:52:53 -0700 Subject: Add method to create a ParcelSurfaceTexture from android.view.Surface. Change-Id: I05e343ab7e327478f60322af9373574b70c148f5 --- libs/gui/Surface.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs') diff --git a/libs/gui/Surface.cpp b/libs/gui/Surface.cpp index 4d1d923a42..9185e1e993 100644 --- a/libs/gui/Surface.cpp +++ b/libs/gui/Surface.cpp @@ -421,6 +421,10 @@ status_t Surface::validate(bool inCancelBuffer) const return NO_ERROR; } +sp Surface::getSurfaceTexture() { + return mSurface != NULL ? mSurface->getSurfaceTexture() : NULL; +} + sp Surface::asBinder() const { return mSurface!=0 ? mSurface->asBinder() : 0; } -- cgit v1.2.3-59-g8ed1b