Loading include/surfaceflinger/Surface.h +2 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ namespace android { class GraphicBuffer; class GraphicBufferMapper; class IOMX; class ISurfaceTexture; class Rect; class Surface; class SurfaceComposerClient; Loading Loading @@ -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); Loading libs/gui/Surface.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -421,6 +421,10 @@ status_t Surface::validate(bool inCancelBuffer) const return NO_ERROR; } sp<ISurfaceTexture> Surface::getSurfaceTexture() { return mSurface != NULL ? mSurface->getSurfaceTexture() : NULL; } sp<IBinder> Surface::asBinder() const { return mSurface!=0 ? mSurface->asBinder() : 0; } Loading Loading
include/surfaceflinger/Surface.h +2 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ namespace android { class GraphicBuffer; class GraphicBufferMapper; class IOMX; class ISurfaceTexture; class Rect; class Surface; class SurfaceComposerClient; Loading Loading @@ -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); Loading
libs/gui/Surface.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -421,6 +421,10 @@ status_t Surface::validate(bool inCancelBuffer) const return NO_ERROR; } sp<ISurfaceTexture> Surface::getSurfaceTexture() { return mSurface != NULL ? mSurface->getSurfaceTexture() : NULL; } sp<IBinder> Surface::asBinder() const { return mSurface!=0 ? mSurface->asBinder() : 0; } Loading