summaryrefslogtreecommitdiffstats
path: root/include/surfaceflinger
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/surfaceflinger
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/surfaceflinger')
-rw-r--r--include/surfaceflinger/Surface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/surfaceflinger/Surface.h b/include/surfaceflinger/Surface.h
index 8845dc9..dc2a845 100644
--- a/include/surfaceflinger/Surface.h
+++ b/include/surfaceflinger/Surface.h
@@ -40,6 +40,7 @@ namespace android {
class GraphicBuffer;
class GraphicBufferMapper;
class IOMX;
+class ISurfaceTexture;
class Rect;
class Surface;
class SurfaceComposerClient;
@@ -154,6 +155,7 @@ public:
bool isValid();
uint32_t getFlags() const { return mFlags; }
uint32_t getIdentity() const { return mIdentity; }
+ sp<ISurfaceTexture> getSurfaceTexture();
// the lock/unlock APIs must be used from the same thread
status_t lock(SurfaceInfo* info, bool blocking = true);