From a35ef9f5ecec00349bfeb69aedbd21f3342ed140 Mon Sep 17 00:00:00 2001 From: Robert Carr Date: Fri, 25 Jan 2019 14:29:21 -0800 Subject: Expose IGBP getter Useful for comparing a SurfaceControl to an existing Surface, but without calling getSurface which may cause the allocation of an as of yet unexisting Surface wrapper. Bug: 122588130 Test: None Change-Id: I5742bf6af06bd48013a2418b583de8eeeecba2df --- libs/gui/SurfaceControl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/gui/SurfaceControl.cpp') diff --git a/libs/gui/SurfaceControl.cpp b/libs/gui/SurfaceControl.cpp index 8e500a4f9b..008f520bb0 100644 --- a/libs/gui/SurfaceControl.cpp +++ b/libs/gui/SurfaceControl.cpp @@ -177,6 +177,12 @@ sp SurfaceControl::getHandle() const return mHandle; } +sp SurfaceControl::getIGraphicBufferProducer() const +{ + Mutex::Autolock _l(mLock); + return mGraphicBufferProducer; +} + sp SurfaceControl::getClient() const { return mClient; -- cgit v1.2.3-59-g8ed1b