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 --- include/surfaceflinger/Surface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/surfaceflinger/Surface.h b/include/surfaceflinger/Surface.h index 8845dc9e1c..dc2a845620 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 getSurfaceTexture(); // the lock/unlock APIs must be used from the same thread status_t lock(SurfaceInfo* info, bool blocking = true); -- cgit v1.2.3-59-g8ed1b