Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a35ef9f5 authored by Robert Carr's avatar Robert Carr
Browse files

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
parent e1f12b08
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -177,6 +177,12 @@ sp<IBinder> SurfaceControl::getHandle() const
    return mHandle;
}

sp<IGraphicBufferProducer> SurfaceControl::getIGraphicBufferProducer() const
{
    Mutex::Autolock _l(mLock);
    return mGraphicBufferProducer;
}

sp<SurfaceComposerClient> SurfaceControl::getClient() const
{
    return mClient;
+2 −0
Original line number Diff line number Diff line
@@ -71,6 +71,8 @@ public:
    sp<Surface> createSurface() const;
    sp<IBinder> getHandle() const;

    sp<IGraphicBufferProducer> getIGraphicBufferProducer() const;

    status_t clearLayerFrameStats() const;
    status_t getLayerFrameStats(FrameStats* outStats) const;